nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 48 lines 1.1 kB view raw
1{ 2 stdenvNoCC, 3 lib, 4 fetchFromGitHub, 5 makeWrapper, 6 xdpyinfo, 7 killall, 8 xwinwrap, 9 swaybg, 10 redshift, 11}: 12 13stdenvNoCC.mkDerivation { 14 pname = "smart-wallpaper"; 15 version = "0-unstable-2022-09-15"; 16 17 src = fetchFromGitHub { 18 owner = "Baitinq"; 19 repo = "smart-wallpaper"; 20 rev = "a23e6ed658342a405544ebe055ec1ac2fd464484"; 21 sha256 = "sha256-IymFjyfqNycTLalZBiqmjJP5U6AFefe9BSWn3Mpoz4c="; 22 }; 23 24 nativeBuildInputs = [ makeWrapper ]; 25 26 installPhase = '' 27 install -Dm755 -t $out/bin smart-wallpaper 28 wrapProgram $out/bin/smart-wallpaper \ 29 --prefix PATH : ${ 30 lib.makeBinPath [ 31 xdpyinfo 32 killall 33 xwinwrap 34 swaybg 35 redshift 36 ] 37 } 38 ''; 39 40 meta = { 41 homepage = "https://github.com/Baitinq/smart-wallpaper"; 42 description = "Simple bash script that automatically changes your wallpaper depending on if its daytime or nighttime"; 43 license = lib.licenses.bsd2; 44 maintainers = with lib.maintainers; [ baitinq ]; 45 platforms = lib.platforms.linux; 46 mainProgram = "smart-wallpaper"; 47 }; 48}