Merge pull request #175881 from marsam/update-entr

entr: 5.1 -> 5.2
This commit is contained in:
Mario Rodas 2022-06-02 08:22:13 -05:00 committed by GitHub
commit 63f15db529
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;