diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-05-13 12:29:00 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-05-13 12:29:00 +0200 |
commit | 002823adceee104f061a90f2c53f4dffeec73436 (patch) | |
tree | e7cbffb8275726ccd80ae33572f01740117f6b3d /nix/recv.nix | |
parent | 03098e6f024260480ccd8002b9e20e70e05c11cf (diff) | |
download | utils-002823adceee104f061a90f2c53f4dffeec73436.tar utils-002823adceee104f061a90f2c53f4dffeec73436.tar.gz utils-002823adceee104f061a90f2c53f4dffeec73436.tar.bz2 utils-002823adceee104f061a90f2c53f4dffeec73436.tar.xz utils-002823adceee104f061a90f2c53f4dffeec73436.zip |
recv
Diffstat (limited to 'nix/recv.nix')
-rw-r--r-- | nix/recv.nix | 24 |
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 | |||
5 | stdenv.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 | } | ||