scons_4_5_2: use github instead of sourceforge direct link

+14 -6
+14 -6
pkgs/development/tools/build-managers/scons/4.5.2.nix
··· 1 - { lib, fetchurl, python3 }: 1 + { lib, fetchFromGitHub, python3 }: 2 2 3 3 let 4 4 pname = "scons"; 5 5 version = "4.5.2"; 6 - src = fetchurl { 7 - url = "mirror://sourceforge/project/scons/scons/${version}/SCons-${version}.tar.gz"; 8 - hash = "sha256-ziaqyV01CnmkGSGWsL6sPLJPTMq84BI+so0zcPV28HI="; 6 + src = fetchFromGitHub { 7 + owner = "Scons"; 8 + repo = "scons"; 9 + rev = version; 10 + hash = "sha256-vxJsz24jDsPcttwPXq9+ztc/N7W4Gkydgykk/FLgZLo="; 9 11 }; 10 12 in 11 13 python3.pkgs.buildPythonApplication { 12 14 inherit pname version src; 13 15 16 + outputs = [ "out" "man" ]; 17 + 14 18 patches = [ 15 19 ./env.patch 16 20 ]; ··· 21 25 --replace "build/doc/man/" "" 22 26 ''; 23 27 28 + preConfigure = '' 29 + python scripts/scons.py 30 + ''; 31 + 24 32 postInstall = '' 25 - mkdir -p "$out/share/man/man1" 26 - mv "$out/"*.1 "$out/share/man/man1/" 33 + mkdir -p "$man/share/man/man1" 34 + mv "$out/"*.1 "$man/share/man/man1/" 27 35 ''; 28 36 29 37 setupHook = ./setup-hook.sh;