about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/wayland/swww/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/wayland/swww/default.nix')
-rw-r--r--nixpkgs/pkgs/tools/wayland/swww/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/wayland/swww/default.nix b/nixpkgs/pkgs/tools/wayland/swww/default.nix
new file mode 100644
index 000000000000..34b43347afbf
--- /dev/null
+++ b/nixpkgs/pkgs/tools/wayland/swww/default.nix
@@ -0,0 +1,25 @@
+{ config, lib, pkgs, fetchFromGitHub, rustPlatform, pkg-config, lz4, libxkbcommon }:
+rustPlatform.buildRustPackage rec {
+  pname = "swww";
+  version = "0.7.3";
+
+  src = fetchFromGitHub {
+    owner = "Horus645";
+    repo = pname;
+    rev = "refs/tags/v${version}";
+    hash = "sha256-58zUi6tftTvNoc/R/HO4RDC7n+NODKOrBCHH8QntKSY=";
+  };
+
+  cargoSha256 = "sha256-hL5rOf0G+UBO8kyRXA1TqMCta00jGSZtF7n8ibjGi9k=";
+  buildInputs = [ lz4 libxkbcommon ];
+  doCheck = false; # Integration tests do not work in sandbox environment
+  nativeBuildInputs = [ pkg-config ];
+
+  meta = with lib; {
+    description = "Efficient animated wallpaper daemon for wayland, controlled at runtime";
+    homepage = "https://github.com/Horus645/swww";
+    license = licenses.gpl3;
+    maintainers = with maintainers; [ mateodd25 ];
+    platforms = platforms.linux;
+  };
+}