diff options
author | ckie <25263210+ckiee@users.noreply.github.com> | 2022-06-11 20:51:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-11 20:51:40 +0300 |
commit | 4d63c8b732c3eac840999e35874df803250d5480 (patch) | |
tree | cd8c41aa3e7f7d30fa6a1d83d95b65f9ec31ee71 | |
parent | 8d168d2d12e1591c13063ad836a45783c1a3e903 (diff) | |
parent | 5b898eb8deadc8ba46342c715615af60e62a1e2b (diff) |
Merge pull request #174156 from jevy/sunpaper
sunpaper: init at unstable-2022-04-01
-rw-r--r-- | maintainers/maintainer-list.nix | 6 | ||||
-rw-r--r-- | pkgs/tools/X11/sunpaper/default.nix | 51 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
3 files changed, 59 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 30af6fb59491b..aba866d0db1ca 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -5960,6 +5960,12 @@ githubId = 1667473; name = "Jethro Kuan"; }; + jevy = { + email = "jevin@quickjack.ca"; + github = "jevy"; + githubId = 110620; + name = "Jevin Maltais"; + }; jfb = { email = "james@yamtime.com"; github = "tftio"; diff --git a/pkgs/tools/X11/sunpaper/default.nix b/pkgs/tools/X11/sunpaper/default.nix new file mode 100644 index 0000000000000..419aa046909fe --- /dev/null +++ b/pkgs/tools/X11/sunpaper/default.nix @@ -0,0 +1,51 @@ +{ lib +, stdenvNoCC +, fetchFromGitHub +, sunwait +, wallutils +, rPackages +}: + +stdenvNoCC.mkDerivation rec { + pname = "sunpaper"; + version = "unstable-2022-04-01"; + + src = fetchFromGitHub { + owner = "hexive"; + repo = "sunpaper"; + rev = "8d518dfddb5e80215ef3b884ff009df1d4bb74c2"; + sha256 = "sCG7igD2ZwfHoRpR3Kw7dAded4hG2RbMLR/9nH+nZh8="; + }; + + buildInputs = [ + wallutils + sunwait + ]; + + postPatch = '' + substituteInPlace sunpaper.sh \ + --replace "sunwait" "${sunwait}/bin/sunwait" \ + --replace "setwallpaper" "${wallutils}/bin/setwallpaper" \ + --replace '$HOME/sunpaper/images/' "$out/share/sunpaper/images/" + ''; + + installPhase = '' + mkdir -p "$out/bin" "$out/share/sunpaper/images" + cp sunpaper.sh $out/bin/sunpaper + cp -R images $out/share/sunpaper/ + ''; + + doInstallCheck = true; + + installCheckPhase = '' + $out/bin/sunpaper --help > /dev/null + ''; + + meta = with lib; { + description = "A utility to change wallpaper based on local weather, sunrise and sunset times"; + homepage = "https://github.com/hexive/sunpaper"; + license = lib.licenses.unfree; + maintainers = with maintainers; [ jevy ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 392a607717a17..27e1d6058a540 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10508,6 +10508,8 @@ with pkgs; sunwait = callPackage ../applications/misc/sunwait { }; + sunpaper = callPackage ../tools/X11/sunpaper { }; + surface-control = callPackage ../applications/misc/surface-control { }; syntex = callPackage ../tools/graphics/syntex {}; |