diff options
Diffstat (limited to 'nix/notmuch-tcp.nix')
-rw-r--r-- | nix/notmuch-tcp.nix | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/nix/notmuch-tcp.nix b/nix/notmuch-tcp.nix index 59d2e39..1a1947b 100644 --- a/nix/notmuch-tcp.nix +++ b/nix/notmuch-tcp.nix | |||
@@ -1,22 +1,30 @@ | |||
1 | { stdenv | 1 | { stdenv |
2 | , zsh, socat, nettools, coreutils | 2 | , python38 |
3 | }: | 3 | }: |
4 | 4 | ||
5 | stdenv.mkDerivation rec { | 5 | stdenv.mkDerivation rec { |
6 | pname = "notmuch-tcp"; | 6 | pname = "notmuch-tcp"; |
7 | version = "0.1"; | 7 | version = "1.0"; |
8 | src = ../notmuch-tcp; | 8 | src = [../notmuch-tcp-client ../notmuch-tcp-server]; |
9 | 9 | ||
10 | phases = [ "buildPhase" "installPhase" ]; | 10 | phases = [ "unpackPhase" "buildPhase" "installPhase" ]; |
11 | 11 | ||
12 | inherit zsh socat nettools coreutils; | 12 | python = python38; |
13 | |||
14 | unpackPhase = '' | ||
15 | for srcFile in $src; do | ||
16 | cp $srcFile $(stripHash $srcFile) | ||
17 | done | ||
18 | ''; | ||
13 | 19 | ||
14 | buildPhase = '' | 20 | buildPhase = '' |
15 | substituteAll $src notmuch-tcp | 21 | substituteAllInPlace notmuch-tcp-client |
22 | substituteAllInPlace notmuch-tcp-server | ||
16 | ''; | 23 | ''; |
17 | 24 | ||
18 | installPhase = '' | 25 | installPhase = '' |
19 | install -m 0755 -D -t $out/bin \ | 26 | install -m 0755 -D -t $out/bin \ |
20 | notmuch-tcp | 27 | notmuch-tcp-client notmuch-tcp-server |
28 | ln -s notmuch-tcp-client $out/bin/notmuch-tcp | ||
21 | ''; | 29 | ''; |
22 | } | 30 | } |