From 423f761889100ceb3df4a89d82c63b7c2a0482af Mon Sep 17 00:00:00 2001 From: DPDmancul Date: Fri, 9 Dec 2022 16:49:54 +0100 Subject: [PATCH 1/3] maintainers: add DPDmancul --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 21e53a2ecc94..39b94a5e75b4 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -3704,6 +3704,12 @@ fingerprint = "4749 0887 CF3B 85A1 6355 C671 78C7 DD40 DF23 FB16"; }]; }; + DPDmancul = { + name = "Davide Peressoni"; + email = "davide.peressoni@tuta.io"; + matrix = "@dpd-:matrix.org"; + githubId = 3186857; + }; dpercy = { email = "dpercy@dpercy.dev"; github = "dpercy"; From d68cf2916b7310a54f308fbcdbc0b736658714e7 Mon Sep 17 00:00:00 2001 From: DPDmancul Date: Fri, 9 Dec 2022 16:50:17 +0100 Subject: [PATCH 2/3] wpaperd: init at 0.2.0 --- pkgs/tools/wayland/wpaperd/default.nix | 36 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/tools/wayland/wpaperd/default.nix diff --git a/pkgs/tools/wayland/wpaperd/default.nix b/pkgs/tools/wayland/wpaperd/default.nix new file mode 100644 index 000000000000..b2a749a29e92 --- /dev/null +++ b/pkgs/tools/wayland/wpaperd/default.nix @@ -0,0 +1,36 @@ +{ lib, rustPlatform, fetchFromGitHub, pkg-config, libxkbcommon }: + +rustPlatform.buildRustPackage rec { + pname = "wpaperd"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "danyspin97"; + repo = pname; + rev = version; + sha256 = "n1zlC2afog0UazsJEBAzXpnhVDeP3xqpNGXlJ65umHQ="; + }; + + nativeBuildInputs = [ + pkg-config + ]; + buildInputs = [ + libxkbcommon + ]; + + cargoSha256 = "8ZMdbJvedDqoDr2rhKM1TMB5N4aRde04x/9H212fe68="; + + 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.unix; + maintainers = with maintainers; [ DPDmancul ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 439d7e9e9c7a..1450fe4bf14a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4001,6 +4001,8 @@ with pkgs; wob = callPackage ../tools/wayland/wob { }; + wpaperd = callPackage ../tools/wayland/wpaperd { }; + wshowkeys = callPackage ../tools/wayland/wshowkeys { }; wtype = callPackage ../tools/wayland/wtype { }; From 2bb6a27de825cbdac4c7e083b8ebe163aeb61c7b Mon Sep 17 00:00:00 2001 From: figsoda Date: Fri, 9 Dec 2022 16:29:18 -0500 Subject: [PATCH 3/3] wpaperd: set platform to linux only --- pkgs/tools/wayland/wpaperd/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/wayland/wpaperd/default.nix b/pkgs/tools/wayland/wpaperd/default.nix index b2a749a29e92..433724bcf216 100644 --- a/pkgs/tools/wayland/wpaperd/default.nix +++ b/pkgs/tools/wayland/wpaperd/default.nix @@ -30,7 +30,7 @@ rustPlatform.buildRustPackage rec { ''; homepage = "https://github.com/danyspin97/wpaperd"; license = licenses.gpl3Plus; - platforms = platforms.unix; + platforms = platforms.linux; maintainers = with maintainers; [ DPDmancul ]; }; }