Explicitly specify the pythonVersion and use that together with versionOlder/versionAtLeast to specify bounds
This commit is contained in:
@@ -56,6 +56,7 @@ let
|
||||
# external dependencies.
|
||||
python = stdenv.mkDerivation {
|
||||
name = "python${if includeModules then "" else "-minimal"}-${version}";
|
||||
pythonVersion = majorVersion;
|
||||
|
||||
inherit majorVersion version src patches buildInputs preConfigure;
|
||||
|
||||
|
||||
@@ -55,6 +55,7 @@ let
|
||||
# external dependencies.
|
||||
python = stdenv.mkDerivation {
|
||||
name = "python-${version}";
|
||||
pythonVersion = majorVersion;
|
||||
|
||||
inherit majorVersion version src patches buildInputs preConfigure;
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@ let
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "python3-${version}";
|
||||
pythonVersion = majorVersion;
|
||||
inherit majorVersion version;
|
||||
|
||||
src = fetchurl {
|
||||
|
||||
@@ -20,6 +20,7 @@ with stdenv.lib;
|
||||
|
||||
let
|
||||
majorVersion = "3.3";
|
||||
pythonVersion = majorVersion;
|
||||
version = "${majorVersion}.6";
|
||||
|
||||
buildInputs = filter (p: p != null) [
|
||||
@@ -28,6 +29,7 @@ let
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "python3-${version}";
|
||||
pythonVersion = majorVersion;
|
||||
inherit majorVersion version;
|
||||
|
||||
src = fetchurl {
|
||||
|
||||
@@ -20,6 +20,7 @@ with stdenv.lib;
|
||||
|
||||
let
|
||||
majorVersion = "3.4";
|
||||
pythonVersion = majorVersion;
|
||||
version = "${majorVersion}.2";
|
||||
fullVersion = "${version}";
|
||||
|
||||
@@ -29,6 +30,7 @@ let
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "python3-${fullVersion}";
|
||||
pythonVersion = majorVersion;
|
||||
inherit majorVersion version;
|
||||
|
||||
src = fetchurl {
|
||||
|
||||
Reference in New Issue
Block a user