diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-09-01 18:13:07 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-09-02 14:03:41 +0200 |
commit | e3887562bc1b64c5aaabfae6191593b4e222c305 (patch) | |
tree | 558ec8625769ffbb91e9f7ee5d91acc609e28832 /pkgs/tools/X11 | |
parent | 2a0a6bf909ff3a1296a190d17f6ef472fc54054e (diff) | |
download | nixpkgs-e3887562bc1b64c5aaabfae6191593b4e222c305.tar nixpkgs-e3887562bc1b64c5aaabfae6191593b4e222c305.tar.gz nixpkgs-e3887562bc1b64c5aaabfae6191593b4e222c305.tar.bz2 nixpkgs-e3887562bc1b64c5aaabfae6191593b4e222c305.tar.lz nixpkgs-e3887562bc1b64c5aaabfae6191593b4e222c305.tar.xz nixpkgs-e3887562bc1b64c5aaabfae6191593b4e222c305.tar.zst nixpkgs-e3887562bc1b64c5aaabfae6191593b4e222c305.zip |
smart-wallpaper: init at unstable-2022-09-01
Diffstat (limited to 'pkgs/tools/X11')
-rw-r--r-- | pkgs/tools/X11/smart-wallpaper/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/tools/X11/smart-wallpaper/default.nix b/pkgs/tools/X11/smart-wallpaper/default.nix new file mode 100644 index 00000000000..20779e6e07b --- /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; + }; +} |