mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-24 20:02:58 +03:00
asn2quickder: use python2
This commit is contained in:
parent
051dfa55f7
commit
e84b9e2b20
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, pythonPackages, makeWrapper }:
|
||||
{ stdenv, fetchFromGitHub, python2Packages, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "asn2quickder";
|
||||
@ -12,15 +12,15 @@ stdenv.mkDerivation rec {
|
||||
repo = "${pname}";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with pythonPackages; [ pyparsing makeWrapper ];
|
||||
propagatedBuildInputs = with python2Packages; [ pyparsing makeWrapper ];
|
||||
|
||||
patchPhase = with pythonPackages; ''
|
||||
patchPhase = with python2Packages; ''
|
||||
substituteInPlace Makefile \
|
||||
--replace '..' '..:$(DESTDIR)/${python.sitePackages}:${pythonPackages.pyparsing}/${python.sitePackages}' \
|
||||
--replace '..' '..:$(DESTDIR)/${python.sitePackages}:${python2Packages.pyparsing}/${python.sitePackages}' \
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/${pythonPackages.python.sitePackages}/
|
||||
mkdir -p $out/${python2Packages.python.sitePackages}/
|
||||
mkdir -p $out/bin $out/lib $out/sbin $out/man
|
||||
make DESTDIR=$out PREFIX=/ all
|
||||
make DESTDIR=$out PREFIX=/ install
|
||||
|
Loading…
Reference in New Issue
Block a user