summaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix')
-rw-r--r--nix/default.nix1
-rw-r--r--nix/monitor-uucp.nix29
2 files changed, 30 insertions, 0 deletions
diff --git a/nix/default.nix b/nix/default.nix
index ad181fa..1c0105f 100644
--- a/nix/default.nix
+++ b/nix/default.nix
@@ -6,4 +6,5 @@ in rec {
6 cliparg = pkgs.callPackage ./cliparg.nix {}; 6 cliparg = pkgs.callPackage ./cliparg.nix {};
7 rebuild-system = pkgs.callPackage ./rebuild-system.nix {}; 7 rebuild-system = pkgs.callPackage ./rebuild-system.nix {};
8 pulseaudio-ctl = pkgs.callPackage ./pulseaudio-ctl.nix {}; 8 pulseaudio-ctl = pkgs.callPackage ./pulseaudio-ctl.nix {};
9 monitor-uucp = pkgs.callPackage ./monitor-uucp.nix {};
9} 10}
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
7stdenv.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}