Merge pull request #117593 from FRidh/python2alias

Python: be explicit on whether it is python2 or python3 that is used
This commit is contained in:
Frederik Rietdijk
2021-04-03 18:01:09 +02:00
committed by GitHub
62 changed files with 222 additions and 339 deletions
@@ -1,4 +1,4 @@
{ coreutils, fetchFromGitHub, file, libcaca, makeWrapper, python, openssl, qrencode, lib, stdenv, yubikey-manager }:
{ coreutils, fetchFromGitHub, file, libcaca, makeWrapper, python3, openssl, qrencode, lib, stdenv, yubikey-manager }:
stdenv.mkDerivation rec {
pname = "gen-oath-safe";
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
file
libcaca.bin
openssl.bin
python
python3
qrencode
yubikey-manager
];
+3 -3
View File
@@ -1,7 +1,7 @@
{ lib, stdenv, fetchFromGitHub, pythonPackages, unbound, libreswan }:
{ lib, stdenv, fetchFromGitHub, python2Packages, unbound, libreswan }:
let
inherit (pythonPackages) python;
pythonPackages = python2Packages;
in stdenv.mkDerivation rec {
pname = "hash-slinger";
version = "2.7";
@@ -31,7 +31,7 @@ in stdenv.mkDerivation rec {
'';
installPhase = ''
mkdir -p $out/bin $out/man $out/${python.sitePackages}/
mkdir -p $out/bin $out/man $out/${pythonPackages.python.sitePackages}/
make install
wrapPythonPrograms
'';