sconsPackages.scons_latest: 4.1.0 -> 4.5.2

This commit is contained in:
Weijia Wang 2023-03-24 17:50:58 +02:00
parent fea3fca22f
commit 9cce401726
4 changed files with 24 additions and 3 deletions

View file

@ -7,12 +7,20 @@ python.pkgs.buildPythonApplication rec {
inherit version;
src = fetchurl {
url = "mirror://sourceforge/scons/${pname}-${version}.tar.gz";
url =
if lib.versionAtLeast version "4.3.0" then
"mirror://sourceforge/project/scons/scons/${version}/SCons-${version}.tar.gz"
else
"mirror://sourceforge/scons/scons-${version}.tar.gz";
inherit sha256;
};
setupHook = ./setup-hook.sh;
patches = lib.optionals (lib.versionAtLeast version "4.3.0") [
./env.patch
];
postPatch = lib.optionalString (lib.versionAtLeast version "4.0.0") ''
substituteInPlace setup.cfg \
--replace "build/dist" "dist"

View file

@ -9,8 +9,12 @@ in {
version = "3.1.2";
sha256 = "1yzq2gg9zwz9rvfn42v5jzl3g4qf1khhny6zfbi2hib55zvg60bq";
});
scons_latest = mkScons {
scons_4_1_0 = mkScons {
version = "4.1.0";
sha256 = "11axk03142ziax6i3wwy9qpqp7r3i7h5jg9y2xzph9i15rv8vlkj";
};
scons_latest = mkScons {
version = "4.5.2";
sha256 = "sha256-ziaqyV01CnmkGSGWsL6sPLJPTMq84BI+so0zcPV28HI=";
};
}

View file

@ -0,0 +1,9 @@
diff --git a/SCons/Platform/posix.py b/SCons/Platform/posix.py
index 4c9f8f9ba..d68da1b08 100644
--- a/SCons/Platform/posix.py
+++ b/SCons/Platform/posix.py
@@ -30,0 +31 @@ selection method.
+import os
@@ -87 +88 @@ def generate(env):
- env['ENV']['PATH'] = '/usr/local/bin:/opt/bin:/bin:/usr/bin:/snap/bin'
+ env['ENV']['PATH'] = os.environ["PATH"]

View file

@ -18798,7 +18798,7 @@ with pkgs;
semantik = libsForQt5.callPackage ../applications/office/semantik { };
sconsPackages = dontRecurseIntoAttrs (callPackage ../development/tools/build-managers/scons { });
scons = sconsPackages.scons_latest;
scons = sconsPackages.scons_4_1_0;
mill = callPackage ../development/tools/build-managers/mill { };