scons_4_1_0: use github instead of sourceforge direct link

+15 -8
+15 -8
pkgs/development/tools/build-managers/scons/4.1.0.nix
··· 1 - { lib, fetchurl, python3 }: 2 3 let 4 pname = "scons"; 5 version = "4.1.0"; 6 - src = fetchurl { 7 - url = "mirror://sourceforge/scons/scons-${version}.tar.gz"; 8 - hash = "sha256-ctKNdi4hJnh/Fz49WeCJI5+LL06e8xFNV/ELEgaYXYU="; 9 }; 10 in 11 python3.pkgs.buildPythonApplication { 12 inherit pname version src; 13 14 postPatch = '' 15 substituteInPlace setup.cfg \ 16 - --replace "build/dist" "dist" \ 17 - --replace "build/doc/man/" "" 18 ''; 19 20 postInstall = '' 21 - mkdir -p "$out/share/man/man1" 22 - mv "$out/"*.1 "$out/share/man/man1/" 23 ''; 24 25 setupHook = ./setup-hook.sh;
··· 1 + { lib, fetchFromGitHub, python3 }: 2 3 let 4 pname = "scons"; 5 version = "4.1.0"; 6 + src = fetchFromGitHub { 7 + owner = "Scons"; 8 + repo = "scons"; 9 + rev = version; 10 + hash = "sha256-ldus/9ghqAMB7A+NrHiCQm7saCdIpqzufGCLxWRhYKU="; 11 }; 12 in 13 python3.pkgs.buildPythonApplication { 14 inherit pname version src; 15 + 16 + outputs = [ "out" "man" ]; 17 18 postPatch = '' 19 substituteInPlace setup.cfg \ 20 + --replace "build/dist" "dist" 21 + ''; 22 + 23 + preConfigure = '' 24 + python scripts/scons.py 25 ''; 26 27 postInstall = '' 28 + mkdir -pv "$man/share/man/man1" 29 + mv -v "$out/"*.1 "$man/share/man/man1/" 30 ''; 31 32 setupHook = ./setup-hook.sh;