tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
pell: init at 0.0.1
Rommel M. Martinez
9 years ago
bfc979c8
ad8857a8
+41
2 changed files
expand all
collapse all
unified
split
pkgs
applications
misc
pell
default.nix
top-level
all-packages.nix
+39
pkgs/applications/misc/pell/default.nix
···
1
1
+
{ stdenv, fetchFromGitHub, scsh, sox, libnotify }:
2
2
+
3
3
+
stdenv.mkDerivation rec {
4
4
+
pname = "pell";
5
5
+
version = "0.0.1";
6
6
+
name = "${pname}-${version}";
7
7
+
8
8
+
src = fetchFromGitHub {
9
9
+
owner = "ebzzry";
10
10
+
repo = pname;
11
11
+
rev = "3f95341eb9439c7a6be1f3c6366c0552ab8208f0";
12
12
+
sha256 = "183aj3ys080g2kahl8x8rkhzlsb6h5ls9xm1v2kasfbn1pi5i6nn";
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
20
20
+
chmod +x $out/bin/pell
21
21
+
'';
22
22
+
23
23
+
postFixup = ''
24
24
+
substituteInPlace $out/bin/pell --replace "/usr/bin/env scsh" "${scsh}/bin/scsh"
25
25
+
substituteInPlace $out/bin/pell --replace "(play " "(${sox}/bin/play "
26
26
+
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
+
'';
29
29
+
30
30
+
meta = with stdenv.lib; {
31
31
+
homepage = https://github.com/ebzzry/pell;
32
32
+
description = "A simple periodic host monitor using ping";
33
33
+
license = licenses.mit;
34
34
+
maintainers = [ maintainers.ebzzry ];
35
35
+
platforms = platforms.unix;
36
36
+
};
37
37
+
38
38
+
dontBuild = true;
39
39
+
}
+2
pkgs/top-level/all-packages.nix
···
2718
2718
2719
2719
parted = callPackage ../tools/misc/parted { hurd = null; };
2720
2720
2721
2721
+
pell = callPackage ../applications/misc/pell { };
2722
2722
+
2721
2723
pitivi = callPackage ../applications/video/pitivi {
2722
2724
gst = gst_all_1 //
2723
2725
{ gst-plugins-bad = gst_all_1.gst-plugins-bad.overrideDerivation