lol

sunpaper: init at unstable-2022-04-01

jevin 5b898eb8 4eeafebc

+53
+51
pkgs/tools/X11/sunpaper/default.nix
··· 1 + { lib 2 + , stdenvNoCC 3 + , fetchFromGitHub 4 + , sunwait 5 + , wallutils 6 + , rPackages 7 + }: 8 + 9 + stdenvNoCC.mkDerivation rec { 10 + pname = "sunpaper"; 11 + version = "unstable-2022-04-01"; 12 + 13 + src = fetchFromGitHub { 14 + owner = "hexive"; 15 + repo = "sunpaper"; 16 + rev = "8d518dfddb5e80215ef3b884ff009df1d4bb74c2"; 17 + sha256 = "sCG7igD2ZwfHoRpR3Kw7dAded4hG2RbMLR/9nH+nZh8="; 18 + }; 19 + 20 + buildInputs = [ 21 + wallutils 22 + sunwait 23 + ]; 24 + 25 + postPatch = '' 26 + substituteInPlace sunpaper.sh \ 27 + --replace "sunwait" "${sunwait}/bin/sunwait" \ 28 + --replace "setwallpaper" "${wallutils}/bin/setwallpaper" \ 29 + --replace '$HOME/sunpaper/images/' "$out/share/sunpaper/images/" 30 + ''; 31 + 32 + installPhase = '' 33 + mkdir -p "$out/bin" "$out/share/sunpaper/images" 34 + cp sunpaper.sh $out/bin/sunpaper 35 + cp -R images $out/share/sunpaper/ 36 + ''; 37 + 38 + doInstallCheck = true; 39 + 40 + installCheckPhase = '' 41 + $out/bin/sunpaper --help > /dev/null 42 + ''; 43 + 44 + meta = with lib; { 45 + description = "A utility to change wallpaper based on local weather, sunrise and sunset times"; 46 + homepage = "https://github.com/hexive/sunpaper"; 47 + license = lib.licenses.unfree; 48 + maintainers = with maintainers; [ jevy ]; 49 + platforms = platforms.unix; 50 + }; 51 + }
+2
pkgs/top-level/all-packages.nix
··· 10496 10496 10497 10497 sunwait = callPackage ../applications/misc/sunwait { }; 10498 10498 10499 + sunpaper = callPackage ../tools/X11/sunpaper { }; 10500 + 10499 10501 surface-control = callPackage ../applications/misc/surface-control { }; 10500 10502 10501 10503 syntex = callPackage ../tools/graphics/syntex {};