{ stdenv , python38 }: stdenv.mkDerivation rec { pname = "notmuch-tcp"; version = "1.0"; src = [../notmuch-tcp-client ../notmuch-tcp-server]; phases = [ "unpackPhase" "buildPhase" "installPhase" ]; python = python38; unpackPhase = '' for srcFile in $src; do cp $srcFile $(stripHash $srcFile) done ''; buildPhase = '' substituteAllInPlace notmuch-tcp-client substituteAllInPlace notmuch-tcp-server ''; installPhase = '' install -m 0755 -D -t $out/bin \ notmuch-tcp-client notmuch-tcp-server ln -s notmuch-tcp-client $out/bin/notmuch-tcp ''; }