scons_4_5_2: detach from sconsPackages
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
{ lib, fetchurl, python3 }:
|
||||
|
||||
let
|
||||
pname = "scons";
|
||||
version = "4.5.2";
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/project/scons/scons/${version}/SCons-${version}.tar.gz";
|
||||
hash = "sha256-ziaqyV01CnmkGSGWsL6sPLJPTMq84BI+so0zcPV28HI=";
|
||||
};
|
||||
in
|
||||
python3.pkgs.buildPythonApplication {
|
||||
inherit pname version src;
|
||||
|
||||
patches = [
|
||||
./env.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "build/dist" "dist" \
|
||||
--replace "build/doc/man/" ""
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p "$out/share/man/man1"
|
||||
mv "$out/"*.1 "$out/share/man/man1/"
|
||||
'';
|
||||
|
||||
setupHook = ./setup-hook.sh;
|
||||
|
||||
# The release tarballs don't contain any tests (runtest.py and test/*):
|
||||
doCheck = false;
|
||||
|
||||
passthru = {
|
||||
# expose the used python version so tools using this (and extensing scos
|
||||
# with other python modules) can use the exact same python version.
|
||||
inherit python3;
|
||||
python = python3;
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "An improved, cross-platform substitute for Make";
|
||||
longDescription = ''
|
||||
SCons is an Open Source software construction tool. Think of SCons as an
|
||||
improved, cross-platform substitute for the classic Make utility with
|
||||
integrated functionality similar to autoconf/automake and compiler caches
|
||||
such as ccache. In short, SCons is an easier, more reliable and faster way
|
||||
to build software.
|
||||
'';
|
||||
homepage = "https://scons.org/";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ AndersonTorres ];
|
||||
};
|
||||
}
|
||||
@@ -5,8 +5,4 @@ let
|
||||
python = python3;
|
||||
};
|
||||
in {
|
||||
scons_latest = mkScons {
|
||||
version = "4.5.2";
|
||||
sha256 = "sha256-ziaqyV01CnmkGSGWsL6sPLJPTMq84BI+so0zcPV28HI=";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -20064,13 +20064,14 @@ with pkgs;
|
||||
|
||||
sca2d = callPackage ../development/tools/sca2d { };
|
||||
|
||||
scons = scons_4_5_2;
|
||||
scons_3_1_2 = callPackage ../development/tools/build-managers/scons/3.1.2.nix { };
|
||||
|
||||
scons_4_1_0 = callPackage ../development/tools/build-managers/scons/4.1.0.nix { };
|
||||
|
||||
sconsPackages = dontRecurseIntoAttrs (callPackage ../development/tools/build-managers/scons { });
|
||||
scons = sconsPackages.scons_latest;
|
||||
scons_4_5_2 = callPackage ../development/tools/build-managers/scons/4.5.2.nix { };
|
||||
|
||||
sconsPackages = dontRecurseIntoAttrs (callPackage ../development/tools/build-managers/scons { });
|
||||
mill = callPackage ../development/tools/build-managers/mill { };
|
||||
|
||||
sbt = callPackage ../development/tools/build-managers/sbt { };
|
||||
|
||||
Reference in New Issue
Block a user