depot/third_party/nixpkgs/pkgs/tools/misc/entr/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

29 lines
848 B
Nix

{ lib, stdenv, fetchurl, coreutils }:
stdenv.mkDerivation rec {
pname = "entr";
version = "5.2";
src = fetchurl {
url = "https://eradman.com/entrproject/code/${pname}-${version}.tar.gz";
hash = "sha256-I34wnUawdSEMDky3ib/Qycd37d9sswNBw/49vMZYw4A=";
};
postPatch = ''
substituteInPlace entr.c --replace /bin/cat ${coreutils}/bin/cat
substituteInPlace entr.1 --replace /bin/cat cat
'';
dontAddPrefix = true;
doCheck = true;
checkTarget = "test";
installFlags = [ "PREFIX=$(out)" ];
meta = with lib; {
homepage = "https://eradman.com/entrproject/";
description = "Run arbitrary commands when files change";
changelog = "https://github.com/eradman/entr/raw/${version}/NEWS";
license = licenses.isc;
platforms = platforms.all;
maintainers = with maintainers; [ pSub synthetica ];
};
}