tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
pell: 0.0.3 -> 0.0.4
Rommel Martinez
8 years ago
e20def22
fa2f609c
+7
-5
1 changed file
expand all
collapse all
unified
split
pkgs
applications
misc
pell
default.nix
+7
-5
pkgs/applications/misc/pell/default.nix
···
2
2
3
3
stdenv.mkDerivation rec {
4
4
pname = "pell";
5
5
-
version = "0.0.3";
5
5
+
version = "0.0.4";
6
6
name = "${pname}-${version}";
7
7
8
8
src = fetchFromGitHub {
9
9
owner = "ebzzry";
10
10
repo = pname;
11
11
-
rev = "c25ddd257dd1d1481df5ccac0f99f6bee1ee1ebb";
12
12
-
sha256 = "0fharadbf63mgpmafs8d4k9h83jj9naxldp240xnc5gkna32a07y";
11
11
+
rev = "f251625ece6bb5517227970287119e7d2dfcea8b";
12
12
+
sha256 = "0k8m1lv2kyrs8fylxmbgxg3jn65g57frf2bndc82gkr5svwb554a";
13
13
};
14
14
15
15
installPhase = ''
16
16
mkdir -p $out/bin
17
17
mkdir -p $out/share
18
18
cp pell $out/bin
19
19
-
cp resources/notification.mp3 $out/share
19
19
+
cp resources/online.mp3 $out/share
20
20
+
cp resources/offline.mp3 $out/share
20
21
chmod +x $out/bin/pell
21
22
'';
22
23
···
24
25
substituteInPlace $out/bin/pell --replace "/usr/bin/env scsh" "${scsh}/bin/scsh"
25
26
substituteInPlace $out/bin/pell --replace "(play " "(${sox}/bin/play "
26
27
substituteInPlace $out/bin/pell --replace "(notify-send " "(${libnotify}/bin/notify-send "
27
27
-
substituteInPlace $out/bin/pell --replace "/usr/share/pell/notification.mp3" "$out/share/notification.mp3"
28
28
+
substituteInPlace $out/bin/pell --replace "/usr/share/pell/online.mp3" "$out/share/online.mp3"
29
29
+
substituteInPlace $out/bin/pell --replace "/usr/share/pell/offline.mp3" "$out/share/offline.mp3"
28
30
'';
29
31
30
32
meta = with stdenv.lib; {