summaryrefslogtreecommitdiff
path: root/nix/recv.nix
blob: 6bdc55963917abcf686ad48030ecb9e45036e5dc (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.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
  '';
}