summaryrefslogtreecommitdiff
path: root/nix/recv.nix
blob: 1634b611272ed91745617eb112849ed58aaedb9a (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
{ stdenv
, zsh, gnutar
}:

stdenv.mkDerivation rec {
  name = "recv-${version}";
  version = "0.4";
  src = ../recv;

  phases = [ "buildPhase" "installPhase" ];

  inherit zsh gnutar;

  buildPhase = ''
    substituteAll $src recv
  '';

  installPhase = ''
    mkdir -p $out/bin

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