diff options
Diffstat (limited to 'nix/monitor-uucp.nix')
| -rw-r--r-- | nix/monitor-uucp.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/nix/monitor-uucp.nix b/nix/monitor-uucp.nix new file mode 100644 index 0000000..b1abdda --- /dev/null +++ b/nix/monitor-uucp.nix | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | { stdenv | ||
| 2 | , fetchgit | ||
| 3 | , makeWrapper | ||
| 4 | , zsh, lsof, pv, inotify-tools | ||
| 5 | }: | ||
| 6 | |||
| 7 | stdenv.mkDerivation rec { | ||
| 8 | name = "monitor-uucp-${version}"; | ||
| 9 | version = "0.1"; | ||
| 10 | src = ../monitor-uucp; | ||
| 11 | |||
| 12 | buildInputs = [ makeWrapper ]; | ||
| 13 | |||
| 14 | phases = [ "buildPhase" "installPhase" ]; | ||
| 15 | |||
| 16 | inherit zsh lsof pv; | ||
| 17 | inotify = inotify-tools; | ||
| 18 | |||
| 19 | buildPhase = '' | ||
| 20 | substituteAll $src monitor-uucp | ||
| 21 | ''; | ||
| 22 | |||
| 23 | installPhase = '' | ||
| 24 | mkdir -p $out/bin | ||
| 25 | |||
| 26 | install -m 755 -t $out/bin \ | ||
| 27 | monitor-uucp | ||
| 28 | ''; | ||
| 29 | } | ||
