8 stdenvNoCC.mkDerivation (finalAttrs: {
12 src = fetchFromGitHub {
15 rev = "v${finalAttrs.version}";
16 hash = "sha256-koCK0ntzRf8OXoUj5DJdPWsFDD8EAMjnGdM1B5oeBBc=";
25 substituteInPlace sunpaper.sh \
26 --replace-fail "sunwait" "${lib.getExe sunwait}" \
27 --replace-fail "setwallpaper" "${lib.getExe' wallutils "setwallpaper"}" \
28 --replace-fail '$HOME/sunpaper/images/' "$out/share/sunpaper/images/" \
29 --replace-fail '/usr/share' '/etc'
35 install -Dm555 sunpaper.sh $out/bin/sunpaper
36 mkdir -p "$out/share/sunpaper/images"
37 cp -R images $out/share/sunpaper/
42 doInstallCheck = true;
44 installCheckPhase = ''
45 $out/bin/sunpaper --help > /dev/null
49 description = "Utility to change wallpaper based on local weather, sunrise and sunset times";
50 homepage = "https://github.com/hexive/sunpaper";
51 license = lib.licenses.asl20;
52 mainProgram = "sunpaper";
53 maintainers = with lib.maintainers; [ jevy ];
54 platforms = lib.platforms.linux;