cp -a $src $out
chmod u+w -R $out
cd $out
- sed -i -e "s@host: 'http://localhost',@host: 'https://iri.trytes.eu',@" index.js
+ sed -i -e "s@host: 'http://localhost',@host: 'https://nodes.thetangle.org',@" index.js
sed -i -e "s@port: 14265@port: 443@" index.js
'';
});
-{ stdenv, fetchurl, makeWrapper, coreutils, python2, duplicity, gawk, gnupg1, bash, gnugrep, txt2man, which }:
+{ stdenv, fetchurl, makeWrapper, coreutils, python3, duplicity, gawk, gnupg1, bash, gnugrep, txt2man, which }:
stdenv.mkDerivation rec {
name = "duply-${version}";
version = "2.1";
mkdir -p "$out/share/man/man1"
install -vD duply "$out/bin"
sed -i $out/bin/duply -e "1a \
- export PATH='${stdenv.lib.makeBinPath [ coreutils python2 duplicity gawk gnupg1 bash gnugrep txt2man which ]}'
+ export PATH='${stdenv.lib.makeBinPath [ coreutils python3 duplicity gawk gnupg1 bash gnugrep txt2man which ]}'
" -e "1a \
export DUPL_PYTHON_BIN=$(basename ${duplicity}/lib/python*)
"