cpython: Migrate sha256 occurences to hash
This commit is contained in:
@@ -30,7 +30,7 @@
|
|||||||
, pkgsHostHost
|
, pkgsHostHost
|
||||||
, pkgsTargetTarget
|
, pkgsTargetTarget
|
||||||
, sourceVersion
|
, sourceVersion
|
||||||
, sha256
|
, hash
|
||||||
, passthruFun
|
, passthruFun
|
||||||
, bash
|
, bash
|
||||||
, stripConfig ? false
|
, stripConfig ? false
|
||||||
@@ -215,7 +215,7 @@ in with passthru; stdenv.mkDerivation {
|
|||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = with sourceVersion; "https://www.python.org/ftp/python/${major}.${minor}.${patch}/Python-${version}.tar.xz";
|
url = with sourceVersion; "https://www.python.org/ftp/python/${major}.${minor}.${patch}/Python-${version}.tar.xz";
|
||||||
inherit sha256;
|
inherit hash;
|
||||||
};
|
};
|
||||||
|
|
||||||
prePatch = optionalString stdenv.isDarwin ''
|
prePatch = optionalString stdenv.isDarwin ''
|
||||||
@@ -235,7 +235,7 @@ in with passthru; stdenv.mkDerivation {
|
|||||||
url = "https://github.com/python/cpython/commit/3fae04b10e2655a20a3aadb5e0d63e87206d0c67.diff";
|
url = "https://github.com/python/cpython/commit/3fae04b10e2655a20a3aadb5e0d63e87206d0c67.diff";
|
||||||
revert = true;
|
revert = true;
|
||||||
excludes = [ "Misc/NEWS.d/*" ];
|
excludes = [ "Misc/NEWS.d/*" ];
|
||||||
sha256 = "sha256-PmkXf2D9trtW1gXZilRIWgdg2Y47JfELq1z4DuG3wJY=";
|
hash = "sha256-PmkXf2D9trtW1gXZilRIWgdg2Y47JfELq1z4DuG3wJY=";
|
||||||
})
|
})
|
||||||
] ++ [
|
] ++ [
|
||||||
# Disable the use of ldconfig in ctypes.util.find_library (since
|
# Disable the use of ldconfig in ctypes.util.find_library (since
|
||||||
|
|||||||
@@ -124,7 +124,7 @@
|
|||||||
patch = "10";
|
patch = "10";
|
||||||
suffix = "";
|
suffix = "";
|
||||||
};
|
};
|
||||||
sha256 = "sha256-BBnpCFv1G3pnIAmz9Q2/GFms3xi6cl0OwZqlyFA/DqM=";
|
hash = "sha256-BBnpCFv1G3pnIAmz9Q2/GFms3xi6cl0OwZqlyFA/DqM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
python311 = {
|
python311 = {
|
||||||
@@ -134,7 +134,7 @@
|
|||||||
patch = "2";
|
patch = "2";
|
||||||
suffix = "";
|
suffix = "";
|
||||||
};
|
};
|
||||||
sha256 = "sha256-KeS49fFlhUKowT4t0nc1jJxI8rL3MYZS7xZ15AK50q8=";
|
hash = "sha256-KeS49fFlhUKowT4t0nc1jJxI8rL3MYZS7xZ15AK50q8=";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -148,7 +148,7 @@ in {
|
|||||||
patch = "18";
|
patch = "18";
|
||||||
suffix = ".6"; # ActiveState's Python 2 extended support
|
suffix = ".6"; # ActiveState's Python 2 extended support
|
||||||
};
|
};
|
||||||
sha256 = "sha256-+I0QOBkuTHMIQz71lgNn1X1vjPsjJMtFbgC0xcGTwWY=";
|
hash = "sha256-+I0QOBkuTHMIQz71lgNn1X1vjPsjJMtFbgC0xcGTwWY=";
|
||||||
inherit (darwin) configd;
|
inherit (darwin) configd;
|
||||||
inherit passthruFun;
|
inherit passthruFun;
|
||||||
};
|
};
|
||||||
@@ -161,7 +161,7 @@ in {
|
|||||||
patch = "16";
|
patch = "16";
|
||||||
suffix = "";
|
suffix = "";
|
||||||
};
|
};
|
||||||
sha256 = "sha256-2F27N3QTJHPYCB3LFY80oQzK16kLlsflDqS7YfXORWI=";
|
hash = "sha256-2F27N3QTJHPYCB3LFY80oQzK16kLlsflDqS7YfXORWI=";
|
||||||
inherit (darwin) configd;
|
inherit (darwin) configd;
|
||||||
inherit passthruFun;
|
inherit passthruFun;
|
||||||
};
|
};
|
||||||
@@ -174,7 +174,7 @@ in {
|
|||||||
patch = "16";
|
patch = "16";
|
||||||
suffix = "";
|
suffix = "";
|
||||||
};
|
};
|
||||||
sha256 = "sha256-It3cCZJG3SdgZlVh6K23OU6gzEOnJoTGSA+TgPd4ZDk=";
|
hash = "sha256-It3cCZJG3SdgZlVh6K23OU6gzEOnJoTGSA+TgPd4ZDk=";
|
||||||
inherit (darwin) configd;
|
inherit (darwin) configd;
|
||||||
inherit passthruFun;
|
inherit passthruFun;
|
||||||
};
|
};
|
||||||
@@ -199,7 +199,7 @@ in {
|
|||||||
patch = "0";
|
patch = "0";
|
||||||
suffix = "a5";
|
suffix = "a5";
|
||||||
};
|
};
|
||||||
sha256 = "sha256-1m73o0L+OjVvnO47uXrcHl+0hA9rbP994P991JX4Mjs=";
|
hash = "sha256-1m73o0L+OjVvnO47uXrcHl+0hA9rbP994P991JX4Mjs=";
|
||||||
inherit (darwin) configd;
|
inherit (darwin) configd;
|
||||||
inherit passthruFun;
|
inherit passthruFun;
|
||||||
};
|
};
|
||||||
@@ -242,7 +242,7 @@ in {
|
|||||||
patch = "11";
|
patch = "11";
|
||||||
};
|
};
|
||||||
|
|
||||||
sha256 = "sha256-ERevtmgx2k6m852NIIR4enRon9AineC+MB+e2bJVCTw=";
|
hash = "sha256-ERevtmgx2k6m852NIIR4enRon9AineC+MB+e2bJVCTw=";
|
||||||
pythonVersion = "2.7";
|
pythonVersion = "2.7";
|
||||||
db = db.override { dbmSupport = !stdenv.isDarwin; };
|
db = db.override { dbmSupport = !stdenv.isDarwin; };
|
||||||
python = __splicedPackages.pythonInterpreters.pypy27_prebuilt;
|
python = __splicedPackages.pythonInterpreters.pypy27_prebuilt;
|
||||||
@@ -259,7 +259,7 @@ in {
|
|||||||
patch = "11";
|
patch = "11";
|
||||||
};
|
};
|
||||||
|
|
||||||
sha256 = "sha256-sPMWb7Klqt/VzrnbXN1feSmg7MygK0omwNrgSS98qOo=";
|
hash = "sha256-sPMWb7Klqt/VzrnbXN1feSmg7MygK0omwNrgSS98qOo=";
|
||||||
pythonVersion = "3.9";
|
pythonVersion = "3.9";
|
||||||
db = db.override { dbmSupport = !stdenv.isDarwin; };
|
db = db.override { dbmSupport = !stdenv.isDarwin; };
|
||||||
python = __splicedPackages.pypy27;
|
python = __splicedPackages.pypy27;
|
||||||
@@ -271,7 +271,7 @@ in {
|
|||||||
pypy38 = __splicedPackages.pypy39.override {
|
pypy38 = __splicedPackages.pypy39.override {
|
||||||
self = __splicedPackages.pythonInterpreters.pypy38;
|
self = __splicedPackages.pythonInterpreters.pypy38;
|
||||||
pythonVersion = "3.8";
|
pythonVersion = "3.8";
|
||||||
sha256 = "sha256-TWdpv8pzc06GZv1wUDt86wam4lkRDmFzMbs4mcpOYFg=";
|
hash = "sha256-TWdpv8pzc06GZv1wUDt86wam4lkRDmFzMbs4mcpOYFg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
pypy37 = throw "pypy37 has been removed from nixpkgs since it is no longer supported upstream"; # Added 2023-01-04
|
pypy37 = throw "pypy37 has been removed from nixpkgs since it is no longer supported upstream"; # Added 2023-01-04
|
||||||
@@ -285,7 +285,7 @@ in {
|
|||||||
patch = "11";
|
patch = "11";
|
||||||
};
|
};
|
||||||
|
|
||||||
sha256 = {
|
hash = {
|
||||||
aarch64-linux = "sha256-6pJNod7+kyXvdg4oiwT5hGFOQFWA9TIetqXI9Tm9QVo=";
|
aarch64-linux = "sha256-6pJNod7+kyXvdg4oiwT5hGFOQFWA9TIetqXI9Tm9QVo=";
|
||||||
x86_64-linux = "sha256-uo7ZWKkFwHNaTP/yh1wlCJlU3AIOCH2YKw/6W52jFs0=";
|
x86_64-linux = "sha256-uo7ZWKkFwHNaTP/yh1wlCJlU3AIOCH2YKw/6W52jFs0=";
|
||||||
aarch64-darwin = "sha256-zFaWq0+TzTSBweSZC13t17pgrAYC+hiQ02iImmxb93E=";
|
aarch64-darwin = "sha256-zFaWq0+TzTSBweSZC13t17pgrAYC+hiQ02iImmxb93E=";
|
||||||
@@ -303,7 +303,7 @@ in {
|
|||||||
minor = "3";
|
minor = "3";
|
||||||
patch = "11";
|
patch = "11";
|
||||||
};
|
};
|
||||||
sha256 = {
|
hash = {
|
||||||
aarch64-linux = "sha256-CRddxlLtiV2Y6a1j0haBK/PufjmNkAqb+espBrqDArk=";
|
aarch64-linux = "sha256-CRddxlLtiV2Y6a1j0haBK/PufjmNkAqb+espBrqDArk=";
|
||||||
x86_64-linux = "sha256-1QYXLKEQcSdBdddOnFgcMWZDLQF5sDZHDjuejSDq5YE=";
|
x86_64-linux = "sha256-1QYXLKEQcSdBdddOnFgcMWZDLQF5sDZHDjuejSDq5YE=";
|
||||||
aarch64-darwin = "sha256-ka11APGjlTHb76CzRaPc/5J/+ZcWVOjS6e98WuMR9X4=";
|
aarch64-darwin = "sha256-ka11APGjlTHb76CzRaPc/5J/+ZcWVOjS6e98WuMR9X4=";
|
||||||
|
|||||||
Reference in New Issue
Block a user