summaryrefslogtreecommitdiff
path: root/nix/recv.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/recv.nix')
-rw-r--r--nix/recv.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/nix/recv.nix b/nix/recv.nix
new file mode 100644
index 0000000..6bdc559
--- /dev/null
+++ b/nix/recv.nix
@@ -0,0 +1,24 @@
1{ stdenv
2, zsh, gnutar
3}:
4
5stdenv.mkDerivation rec {
6 name = "recv-${version}";
7 version = "0.1";
8 src = ../recv;
9
10 phases = [ "buildPhase" "installPhase" ];
11
12 inherit zsh gnutar;
13
14 buildPhase = ''
15 substituteAll $src recv
16 '';
17
18 installPhase = ''
19 mkdir -p $out/bin
20
21 install -m 755 -t $out/bin \
22 recv
23 '';
24}