summaryrefslogtreecommitdiff
path: root/nix/notmuch-tcp.nix
blob: 59d2e39c5ba32e25ee56c7d7426013de46d8cca6 (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, coreutils
}:

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

  phases = [ "buildPhase" "installPhase" ];

  inherit zsh socat nettools coreutils;

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

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