mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 21:09:00 +02:00
dmtcp: stay with python2
This commit is contained in:
parent
11aa8b3b89
commit
3ae47a343c
|
@ -1,4 +1,6 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, bash, perl, python }:
|
{ lib, stdenv, fetchFromGitHub, bash, perl, python2 }:
|
||||||
|
|
||||||
|
# There are fixes for python3 compatibility on master
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "dmtcp";
|
pname = "dmtcp";
|
||||||
|
@ -28,7 +30,7 @@ stdenv.mkDerivation rec {
|
||||||
substituteInPlace test/autotest.py \
|
substituteInPlace test/autotest.py \
|
||||||
--replace /bin/bash ${bash}/bin/bash \
|
--replace /bin/bash ${bash}/bin/bash \
|
||||||
--replace /usr/bin/perl ${perl}/bin/perl \
|
--replace /usr/bin/perl ${perl}/bin/perl \
|
||||||
--replace /usr/bin/python ${python}/bin/python \
|
--replace /usr/bin/python ${python2}/bin/python \
|
||||||
--replace "os.environ['USER']" "\"nixbld1\"" \
|
--replace "os.environ['USER']" "\"nixbld1\"" \
|
||||||
--replace "os.getenv('USER')" "\"nixbld1\""
|
--replace "os.getenv('USER')" "\"nixbld1\""
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue