diff options
author | Aaron Andersen <aaron@fosslib.net> | 2018-08-25 18:08:24 -0400 |
---|---|---|
committer | Aaron Andersen <aaron@fosslib.net> | 2018-08-25 18:08:24 -0400 |
commit | fc03a9f5b7bdd839f9f51f0ec950ae53228643e4 (patch) | |
tree | d253001912e333a473a99a3f26d4b50b028a4840 /pkgs/tools/system/incron/default.nix | |
parent | 3d1331f438b536f65fa4f5a07cbcb9eaaae8ce2f (diff) | |
download | nixlib-fc03a9f5b7bdd839f9f51f0ec950ae53228643e4.tar nixlib-fc03a9f5b7bdd839f9f51f0ec950ae53228643e4.tar.gz nixlib-fc03a9f5b7bdd839f9f51f0ec950ae53228643e4.tar.bz2 nixlib-fc03a9f5b7bdd839f9f51f0ec950ae53228643e4.tar.lz nixlib-fc03a9f5b7bdd839f9f51f0ec950ae53228643e4.tar.xz nixlib-fc03a9f5b7bdd839f9f51f0ec950ae53228643e4.tar.zst nixlib-fc03a9f5b7bdd839f9f51f0ec950ae53228643e4.zip |
initial work on incron service
Diffstat (limited to 'pkgs/tools/system/incron/default.nix')
-rw-r--r-- | pkgs/tools/system/incron/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/tools/system/incron/default.nix b/pkgs/tools/system/incron/default.nix new file mode 100644 index 000000000000..bb320f8d894c --- /dev/null +++ b/pkgs/tools/system/incron/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchurl, bash }: + +stdenv.mkDerivation rec { + name = "incron-0.5.12"; + src = fetchurl { + url = "https://github.com/ar-/incron/archive/0.5.12.tar.gz"; + sha256 = "14cgsfyl43pd86wy40m1xwr7ww023n2jyks66ngybz5s4gbhps6c"; + }; + + patchPhase = '' + sed -i "s|PREFIX = /usr/local|PREFIX = $out|g" Makefile + sed -i "s|/bin/bash|${bash}/bin/bash|g" usertable.cpp + ''; + + installPhase = '' + mkdir -p $out/bin + + # make install doesn't work because setuid and permissions + # just manually install the binaries instead + cp incrond incrontab $out/bin/ + + # make install-man is fine for documentation + make install-man + ''; + + meta = with stdenv.lib; { + description = " + The inotify cron daemon (incrond) is a daemon which monitors filesystem events and executes commands defined in system and user tables. It's use is generally similar to cron."; + license = gpl2; + homepage = https://github.com/ar-/incron; + platforms = platforms.linux; + }; +} |