{ 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 ''; }