summaryrefslogtreecommitdiff
path: root/nix/monitor-uucp.nix
blob: b1abdda7b7ffed338a299e93d83462f5088565c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv
, fetchgit
, makeWrapper
, zsh, lsof, pv, inotify-tools
}:

stdenv.mkDerivation rec {
  name = "monitor-uucp-${version}";
  version = "0.1";
  src = ../monitor-uucp;

  buildInputs = [ makeWrapper ];

  phases = [ "buildPhase" "installPhase" ];

  inherit zsh lsof pv;
  inotify = inotify-tools;

  buildPhase = ''
    substituteAll $src monitor-uucp
  '';
  
  installPhase = ''
    mkdir -p $out/bin

    install -m 755 -t $out/bin \
      monitor-uucp
  '';
}