Commit 9cce4017 authored by Weijia Wang's avatar Weijia Wang
Browse files

sconsPackages.scons_latest: 4.1.0 -> 4.5.2

parent fea3fca2
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -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"
+5 −1
Original line number Diff line number Diff line
@@ -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 −0
Original line number Diff line number Diff line
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"]
+1 −1
Original line number Diff line number Diff line
@@ -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 { };