tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
entr: init at 3.2
John Chee
10 years ago
6c14111c
d27b0bc5
+34
2 changed files
expand all
collapse all
unified
split
pkgs
tools
misc
entr
default.nix
top-level
all-packages.nix
+32
pkgs/tools/misc/entr/default.nix
···
1
1
+
{ stdenv, fetchurl, coreutils, ncurses }:
2
2
+
3
3
+
stdenv.mkDerivation rec {
4
4
+
name = "entr-${version}";
5
5
+
version = "3.2";
6
6
+
7
7
+
src = fetchurl {
8
8
+
url = "http://entrproject.org/code/${name}.tar.gz";
9
9
+
sha256 = "0ikigpfzyjmr8j6snwlvxzqamrjbhlv78m8w1h0h7kzczc5f1vmi";
10
10
+
};
11
11
+
12
12
+
postPatch = ''
13
13
+
substituteInPlace Makefile.bsd --replace /bin/echo echo
14
14
+
substituteInPlace entr.c --replace /bin/cat ${coreutils}/bin/cat
15
15
+
substituteInPlace entr.c --replace /usr/bin/clear ${ncurses}/bin/clear
16
16
+
substituteInPlace entr.1 --replace /bin/cat cat
17
17
+
substituteInPlace entr.1 --replace /usr/bin/clear clear
18
18
+
'';
19
19
+
dontAddPrefix = true;
20
20
+
doCheck = true;
21
21
+
checkTarget = "test";
22
22
+
installFlags = [ "PREFIX=$(out)" ];
23
23
+
24
24
+
meta = {
25
25
+
homepage = http://entrproject.org/;
26
26
+
description = "Run arbitrary commands when files change.";
27
27
+
28
28
+
license = stdenv.lib.licenses.isc;
29
29
+
30
30
+
platforms = stdenv.lib.platforms.all;
31
31
+
};
32
32
+
}
+2
pkgs/top-level/all-packages.nix
···
1415
1415
1416
1416
enscript = callPackage ../tools/text/enscript { };
1417
1417
1418
1418
+
entr = callPackage ../tools/misc/entr { };
1419
1419
+
1418
1420
eplot = callPackage ../tools/graphics/eplot { };
1419
1421
1420
1422
ethtool = callPackage ../tools/misc/ethtool { };