From e3887562bc1b64c5aaabfae6191593b4e222c305 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Thu, 1 Sep 2022 18:13:07 +0200 Subject: [PATCH] smart-wallpaper: init at unstable-2022-09-01 --- pkgs/tools/X11/smart-wallpaper/default.nix | 36 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/tools/X11/smart-wallpaper/default.nix diff --git a/pkgs/tools/X11/smart-wallpaper/default.nix b/pkgs/tools/X11/smart-wallpaper/default.nix new file mode 100644 index 000000000000..20779e6e07b9 --- /dev/null +++ b/pkgs/tools/X11/smart-wallpaper/default.nix @@ -0,0 +1,36 @@ +{ stdenvNoCC +, lib +, fetchFromGitHub +, makeWrapper +, xdpyinfo +, killall +, xwinwrap +}: + +stdenvNoCC.mkDerivation { + pname = "smart-wallpaper"; + version = "unstable-2022-09-01"; + + src = fetchFromGitHub { + owner = "Baitinq"; + repo = "smart-wallpaper"; + rev = "d175695d3485fb14144c1908eb3569b20caa6ba5"; + sha256 = "sha256-cFgvuntdKPzdQJ7xE2DIT+aNAazocIhM6BBbcQOlryU="; + }; + + nativeBuildInputs = [ makeWrapper ]; + + installPhase = '' + install -Dm755 -t $out/bin smart-wallpaper + wrapProgram $out/bin/smart-wallpaper \ + --prefix PATH : ${lib.makeBinPath [ xdpyinfo killall xwinwrap ]} + ''; + + meta = with lib; { + homepage = "https://github.com/Baitinq/smart-wallpaper"; + description = "A simple bash script that automatically changes your wallpaper depending on if its daytime or nighttime"; + license = licenses.bsd2; + maintainers = with maintainers; [ baitinq ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 946f87d3ffc9..11c3a7adb08b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9224,6 +9224,8 @@ with pkgs; nitrogen = callPackage ../tools/X11/nitrogen {}; + smart-wallpaper = callPackage ../tools/X11/smart-wallpaper { }; + nms = callPackage ../tools/misc/nms { }; nomachine-client = callPackage ../tools/admin/nomachine-client { };