From 4eeafebc3c5c2273b53090ebe79db1aede839575 Mon Sep 17 00:00:00 2001 From: jevin Date: Fri, 3 Jun 2022 06:51:36 -0400 Subject: maintainers: add Jevin Maltais --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 99a75fa6bfea3..c9de43fcd316b 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -5937,6 +5937,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"; -- cgit 1.4.1 From 5b898eb8deadc8ba46342c715615af60e62a1e2b Mon Sep 17 00:00:00 2001 From: jevin Date: Fri, 3 Jun 2022 06:53:10 -0400 Subject: sunpaper: init at unstable-2022-04-01 --- pkgs/tools/X11/sunpaper/default.nix | 51 +++++++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 53 insertions(+) create mode 100644 pkgs/tools/X11/sunpaper/default.nix 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 b2b8f14efb1b2..22e20189ac31f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10496,6 +10496,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 {}; -- cgit 1.4.1