nixpkgs/pkgs/tools/misc/entr/default.nix
R. RyanTM 56b6771e09 entr: 4.0 -> 4.1
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/entr/versions.

These checks were done:

- built on NixOS
- Warning: no invocation of /nix/store/10c98102g693y06k81q97z6akq0a87i8-entr-4.1/bin/entr had a zero exit code or showed the expected version
- 0 of 1 passed binary check by having a zero exit code.
- 0 of 1 passed binary check by having the new version present in output.
- found 4.1 with grep in /nix/store/10c98102g693y06k81q97z6akq0a87i8-entr-4.1
- directory tree listing: https://gist.github.com/fd156bc7a5f670e3b90073b60678bee9
- du listing: https://gist.github.com/3a2e6fc964562e2a7d597aeb4c95b46d
2018-06-19 11:47:55 -07:00

32 lines
957 B
Nix

{ stdenv, fetchurl, coreutils, ncurses }:
stdenv.mkDerivation rec {
name = "entr-${version}";
version = "4.1";
src = fetchurl {
url = "http://entrproject.org/code/${name}.tar.gz";
sha256 = "0y7gvyf0iykpf3gfw09m21hy51m6qn4cpkbrm4nnn7pwrwycj0y5";
};
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;
checkTarget = "test";
installFlags = [ "PREFIX=$(out)" ];
meta = with stdenv.lib; {
homepage = http://entrproject.org/;
description = "Run arbitrary commands when files change";
license = licenses.isc;
platforms = platforms.all;
maintainers = with maintainers; [ pSub ];
};
}