blob: 6d8bb6c46d785d398d96a307c17be114dbb72071 (
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
25
26
27
28
29
30
31
32
33
34
|
{ stdenv
, python38
, zsh
, notmuch
, openssh
}:
stdenv.mkDerivation rec {
pname = "notmuch-ssh";
version = "1.0";
src = [../notmuch-ssh-client ../notmuch-ssh-server];
phases = [ "unpackPhase" "buildPhase" "installPhase" ];
python = python38.withPackages (ps: with ps; [pyxdg configparser]);
inherit zsh notmuch openssh;
unpackPhase = ''
for srcFile in $src; do
cp $srcFile $(stripHash $srcFile)
done
'';
buildPhase = ''
substituteAllInPlace notmuch-ssh-client
substituteAllInPlace notmuch-ssh-server
'';
installPhase = ''
install -m 0755 -D -t $out/bin \
notmuch-ssh-client notmuch-ssh-server
ln -s notmuch-ssh-client $out/bin/notmuch-ssh
'';
}
|