blob: 8770a5858875b768886f0ec8de8dd6bcb8ff4192 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{ stdenv, fetchurl, coreutils, ncurses }:
stdenv.mkDerivation rec {
name = "entr-${version}";
version = "3.2";
src = fetchurl {
url = "http://entrproject.org/code/${name}.tar.gz";
sha256 = "0ikigpfzyjmr8j6snwlvxzqamrjbhlv78m8w1h0h7kzczc5f1vmi";
};
postPatch = ''
substituteInPlace Makefile.bsd --replace /bin/echo echo
substituteInPlace entr.c --replace /bin/cat ${coreutils}/bin/cat
substituteInPlace entr.c --replace /usr/bin/clear ${ncurses}/bin/clear
substituteInPlace entr.1 --replace /bin/cat cat
substituteInPlace entr.1 --replace /usr/bin/clear clear
'';
dontAddPrefix = true;
doCheck = true;
checkTarget = "test";
installFlags = [ "PREFIX=$(out)" ];
meta = {
homepage = http://entrproject.org/;
description = "Run arbitrary commands when files change.";
license = stdenv.lib.licenses.isc;
platforms = stdenv.lib.platforms.all;
};
}
|