core/pkgs/by-name/sc/scons/3.1.2.nix
2024-05-13 22:24:10 +01:00

48 lines
1.3 KiB
Nix

{ lib, fetchFromGitHub, python3 }:
let
pname = "scons";
version = "3.1.2";
src = fetchFromGitHub {
owner = "Scons";
repo = "scons";
rev = version;
hash = "sha256-C3U4N7+9vplzoJoevQe5Zeuz0TDmB6/miMwBJLzA3WA=";
};
in python3.pkgs.buildPythonApplication {
inherit pname version src;
outputs = [ "out" "man" ];
preConfigure = ''
python bootstrap.py
cd build/scons
'';
setupHook = ./setup-hook.sh;
doCheck = true;
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 ];
};
}
# TODO: patch to get rid of distutils and other deprecations