sconsPackages.scons_latest: 4.1.0 -> 4.5.2
This commit is contained in:
parent
fea3fca22f
commit
9cce401726
4 changed files with 24 additions and 3 deletions
|
@ -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"
|
||||
|
|
|
@ -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=";
|
||||
};
|
||||
}
|
||||
|
|
9
pkgs/development/tools/build-managers/scons/env.patch
Normal file
9
pkgs/development/tools/build-managers/scons/env.patch
Normal 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"]
|
|
@ -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 { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue