From 002823adceee104f061a90f2c53f4dffeec73436 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 13 May 2018 12:29:00 +0200 Subject: recv --- nix/recv.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 nix/recv.nix (limited to 'nix/recv.nix') 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 @@ +{ stdenv +, zsh, gnutar +}: + +stdenv.mkDerivation rec { + name = "recv-${version}"; + version = "0.1"; + src = ../recv; + + phases = [ "buildPhase" "installPhase" ]; + + inherit zsh gnutar; + + buildPhase = '' + substituteAll $src recv + ''; + + installPhase = '' + mkdir -p $out/bin + + install -m 755 -t $out/bin \ + recv + ''; +} -- cgit v1.2.3