summaryrefslogtreecommitdiff
path: root/nix/notmuch-tcp.nix
blob: 438a08647929b38a8e2a050672c284c5e58a441d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ stdenv
, zsh, socat, nettools
}:

stdenv.mkDerivation rec {
  pname = "notmuch-tcp";
  version = "0.1";
  src = ../notmuch-tcp;

  phases = [ "buildPhase" "installPhase" ];

  inherit zsh socat nettools;

  buildPhase = ''
    substituteAll $src notmuch-tcp
  '';

  installPhase = ''
    install -m 0755 -D -t $out/bin \
      notmuch-tcp
  '';
}