summaryrefslogtreecommitdiff
path: root/nix/recv.nix
blob: 6704d41fd81f9b50290eed5ea05fa800909b4018 (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.2";
  src = ../recv;

  phases = [ "buildPhase" "installPhase" ];

  inherit zsh gnutar;

  buildPhase = ''
    substituteAll $src recv
  '';

  installPhase = ''
    mkdir -p $out/bin

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