From 69f9ca4bc0108ebbc47b8aa416c7f74ca81b0629 Mon Sep 17 00:00:00 2001 From: ppenguin Date: Thu, 5 Dec 2024 02:38:02 +0100 Subject: [PATCH] enkei: init at 0.9.3 (#233095) enkei: init @ v0.9.3 Update pkgs/by-name/en/enkei/package.nix Co-authored-by: Arne Keller <2012gdwu+github@posteo.de> Update pkgs/by-name/en/enkei/package.nix Co-authored-by: Arne Keller <2012gdwu+github@posteo.de> enkei: init @ v0.9.3 Cleanup / remove top-level attr (since using pkgs/by-name) nixfmt --- pkgs/by-name/en/enkei/package.nix | 49 +++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 pkgs/by-name/en/enkei/package.nix diff --git a/pkgs/by-name/en/enkei/package.nix b/pkgs/by-name/en/enkei/package.nix new file mode 100644 index 000000000000..e2abf1870afe --- /dev/null +++ b/pkgs/by-name/en/enkei/package.nix @@ -0,0 +1,49 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + pkg-config, + glib, + cairo, + wayland, + libGL, +}: +rustPlatform.buildRustPackage rec { + pname = "enkei"; + version = "0.9.3"; + + src = fetchFromGitHub { + owner = "fia0"; + repo = "enkei"; + rev = "v${version}"; + sha256 = "sha256-COU2JtiJcPRA3Jno0qLEIVgimYBWfn5Pgc1OMImsJtI="; + }; + + cargoHash = "sha256-nf9JM5FfXBNEKzZrfu3jphupL9PdoQLVpqGoZ/X9p5E="; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + wayland + libGL + glib + cairo + ]; + + doCheck = false; # no tests + + meta = with lib; { + description = "Wallpaper daemon and control tool for Wayland"; + longDescription = '' + Created to allow displaying dynamic wallpapers based on the specification format used for example in the `Gnome` desktop environment. + It is designed to offer a _smooth_ transition between wallpapers and gradual change over long and short periods of time. + For a fast handling `enkei` uses `OpenGL` to render images and blending them for transitions. + ''; + homepage = "https://github.com/jwuensche/enkei"; + license = licenses.gpl3Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ ppenguin ]; + }; +}