lol

scons: cleanup

The generator files are now useless.

-70
-8
pkgs/development/tools/build-managers/scons/default.nix
··· 1 - { callPackage, python2, python3 }: 2 - 3 - let 4 - mkScons = args: callPackage (import ./make-scons.nix args) { 5 - python = python3; 6 - }; 7 - in { 8 - }
-62
pkgs/development/tools/build-managers/scons/make-scons.nix
··· 1 - { version, sha256 }: 2 - 3 - { fetchurl, python, lib }: 4 - 5 - python.pkgs.buildPythonApplication rec { 6 - pname = "scons"; 7 - inherit version; 8 - 9 - src = fetchurl { 10 - url = 11 - if lib.versionAtLeast version "4.3.0" then 12 - "mirror://sourceforge/project/scons/scons/${version}/SCons-${version}.tar.gz" 13 - else 14 - "mirror://sourceforge/scons/scons-${version}.tar.gz"; 15 - inherit sha256; 16 - }; 17 - 18 - setupHook = ./setup-hook.sh; 19 - 20 - patches = lib.optionals (lib.versionAtLeast version "4.3.0") [ 21 - ./env.patch 22 - ]; 23 - 24 - postPatch = lib.optionalString (lib.versionAtLeast version "4.0.0") '' 25 - substituteInPlace setup.cfg \ 26 - --replace "build/dist" "dist" 27 - '' + lib.optionalString (lib.versionAtLeast version "4.1.0") '' 28 - substituteInPlace setup.cfg \ 29 - --replace "build/doc/man/" "" 30 - ''; 31 - 32 - # The release tarballs don't contain any tests (runtest.py and test/*): 33 - doCheck = lib.versionOlder version "4.0.0"; 34 - 35 - postInstall = lib.optionalString (lib.versionAtLeast version "4.1.0") '' 36 - mkdir -p "$out/share/man/man1" 37 - mv "$out/"*.1 "$out/share/man/man1/" 38 - ''; 39 - 40 - passthru = { 41 - # expose the used python version so tools using this (and extensing scos with other python modules) 42 - # can use the exact same python version. 43 - inherit python; 44 - }; 45 - 46 - meta = with lib; { 47 - description = "An improved, cross-platform substitute for Make"; 48 - longDescription = '' 49 - SCons is an Open Source software construction tool. Think of 50 - SCons as an improved, cross-platform substitute for the classic 51 - Make utility with integrated functionality similar to 52 - autoconf/automake and compiler caches such as ccache. In short, 53 - SCons is an easier, more reliable and faster way to build 54 - software. 55 - ''; 56 - homepage = "https://scons.org/"; 57 - changelog = "https://raw.githubusercontent.com/SConsProject/scons/rel_${version}/src/CHANGES.txt"; 58 - license = licenses.mit; 59 - platforms = platforms.all; 60 - maintainers = with lib.maintainers; [ AndersonTorres ]; 61 - }; 62 - }