fork/wpaperd

git clone https://git.julia.blue/fork/wpaperd

Danilo SpinellaMerge pull request #52 from yunfachi/feature/nix-flakea84a107

follow-links
1.1 KiB47 linesraw
1{
2  lib,
3  rustPlatform,
4  pkg-config,
5  wayland,
6  glew-egl,
7  version ? "git",
8}:
9rustPlatform.buildRustPackage rec {
10  pname = "wpaperd";
11  inherit version;
12
13  src = lib.cleanSourceWith {
14    filter = name: _type: let
15      baseName = baseNameOf (toString name);
16    in
17      !(lib.hasSuffix ".nix" baseName);
18    src = lib.cleanSource ../.;
19  };
20
21  nativeBuildInputs = [
22    pkg-config
23  ];
24
25  buildInputs =
26    [
27      wayland
28      glew-egl
29    ];
30
31  cargoLock.lockFile = ../Cargo.lock;
32
33  meta = with lib; {
34    description = "Wallpaper daemon for Wayland";
35    longDescription = ''
36      It allows the user to choose a different image for each output (aka for each monitor)
37      just as swaybg. Moreover, a directory can be chosen and wpaperd will randomly choose
38      an image from it. Optionally, the user can set a duration, after which the image
39      displayed will be changed with another random one.
40    '';
41    homepage = "https://github.com/danyspin97/wpaperd";
42    license = licenses.gpl3Plus;
43    platforms = platforms.linux;
44    maintainers = with maintainers; [yunfachi];
45    mainProgram = "wpaperd";
46  };
47}