Merge pull request #189301 from Baitinq/smart-wallpaper

This commit is contained in:
Sandro 2022-09-04 01:13:00 +02:00 committed by GitHub
commit ba46966013
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 0 deletions

View File

@ -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;
};
}

View File

@ -9234,6 +9234,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 { };