1 { lib, stdenv, fetchFromGitHub, bash, nixosTests }:
3 stdenv.mkDerivation rec {
6 src = fetchFromGitHub {
9 rev = "${pname}-${version}";
10 sha256 = "11d5f98cjafiv9h9zzzrw2s06s2fvdg8gp64km7mdprd2xmy6dih";
13 patches = [ ./default_path.patch ];
16 sed -i "s|/bin/bash|${bash}/bin/bash|g" usertable.cpp
19 installFlags = [ "PREFIX=$(out)" ];
20 installTargets = [ "install-man" ];
25 # make install doesn't work because setuid and permissions
26 # just manually install the binaries instead
27 cp incrond incrontab $out/bin/
30 passthru.tests = { inherit (nixosTests) incron; };
33 description = "Cron-like daemon which handles filesystem events";
34 homepage = "https://github.com/ar-/incron";
35 license = licenses.gpl2Only;
36 maintainers = [ maintainers.aanderse ];
37 platforms = platforms.linux;