entr: 5.1 -> 5.2

https://github.com/eradman/entr/raw/5.2/NEWS
This commit is contained in:
Mario Rodas 2022-06-01 04:20:00 +00:00
parent e6123938ca
commit 539a971f6d

View File

@ -1,20 +1,17 @@
{ lib, stdenv, fetchurl, coreutils, ncurses, fetchpatch }:
{ lib, stdenv, fetchurl, coreutils }:
stdenv.mkDerivation rec {
pname = "entr";
version = "5.1";
version = "5.2";
src = fetchurl {
url = "https://eradman.com/entrproject/code/${pname}-${version}.tar.gz";
hash = "sha256-D4f1d7zodkHFJa3bm8xgu6pXn+mB2rdZBD484VVtu5I=";
hash = "sha256-I34wnUawdSEMDky3ib/Qycd37d9sswNBw/49vMZYw4A=";
};
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.out}/bin/clear
substituteInPlace entr.1 --replace /bin/cat cat
substituteInPlace entr.1 --replace /usr/bin/clear clear
'';
dontAddPrefix = true;
doCheck = true;