core/pkgs/by-name/sc/scons/4.1.0.nix

65 lines
1.5 KiB
Nix
Raw Normal View History

2024-06-30 08:12:46 +00:00
{
lib,
fetchFromGitHub,
python3,
}:
2024-05-02 00:46:19 +00:00
let
pname = "scons";
version = "4.1.0";
src = fetchFromGitHub {
owner = "Scons";
repo = "scons";
rev = version;
hash = "sha256-ldus/9ghqAMB7A+NrHiCQm7saCdIpqzufGCLxWRhYKU=";
};
in
python3.pkgs.buildPythonApplication {
inherit pname version src;
2024-06-30 08:12:46 +00:00
outputs = [
"out"
"man"
];
2024-05-02 00:46:19 +00:00
postPatch = ''
substituteInPlace setup.cfg \
--replace "build/dist" "dist"
'';
preConfigure = ''
python scripts/scons.py
'';
postInstall = ''
mkdir -pv "$man/share/man/man1"
mv -v "$out/"*.1 "$man/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 ];
};
}