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