summaryrefslogtreecommitdiff
path: root/nix/notmuch-links.nix
blob: 67ebe3b8bed83ae125bd15ab5484af62f1d06a14 (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
, notmuch-tcp
, zsh, coreutils, gawk, gnused
}:

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

  phases = [ "buildPhase" "installPhase" ];

  inherit zsh coreutils gawk gnused;
  notmuchtcp = notmuch-tcp;

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

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