about summary refs log tree commit diff
path: root/pkgs/by-name/wp/wpaperd/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/wp/wpaperd/package.nix')
-rw-r--r--pkgs/by-name/wp/wpaperd/package.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/by-name/wp/wpaperd/package.nix b/pkgs/by-name/wp/wpaperd/package.nix
new file mode 100644
index 0000000000000..fce9bc27cd857
--- /dev/null
+++ b/pkgs/by-name/wp/wpaperd/package.nix
@@ -0,0 +1,39 @@
+{ lib, rustPlatform, fetchFromGitHub, pkg-config, libxkbcommon, wayland, libGL }:
+
+rustPlatform.buildRustPackage rec {
+  pname = "wpaperd";
+  version = "1.0.1";
+
+  src = fetchFromGitHub {
+    owner = "danyspin97";
+    repo = "wpaperd";
+    rev = version;
+    hash = "sha256-5riZ/6yjgsW++SUIyJP5rFG65tkjJKgtvDLIGaoiHN0=";
+  };
+
+  cargoHash = "sha256-EkCGLxUQeSCR88Y95Hog9TAjpYMmZHlOqEM//ENiCco=";
+
+  nativeBuildInputs = [
+    pkg-config
+  ];
+  buildInputs = [
+    wayland
+    libGL
+    libxkbcommon
+  ];
+
+  meta = with lib; {
+    description = "Minimal wallpaper daemon for Wayland";
+    longDescription = ''
+      It allows the user to choose a different image for each output (aka for each monitor)
+      just as swaybg. Moreover, a directory can be chosen and wpaperd will randomly choose
+      an image from it. Optionally, the user can set a duration, after which the image
+      displayed will be changed with another random one.
+    '';
+    homepage = "https://github.com/danyspin97/wpaperd";
+    license = licenses.gpl3Plus;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ DPDmancul fsnkty ];
+    mainProgram = "wpaperd";
+  };
+}