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:
@@ -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
|
||||
];
|
||||
|
||||
@@ -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
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user