scons_3_1_2: use github instead of sourceforge direct link

+14 -4
+14 -4
pkgs/development/tools/build-managers/scons/3.1.2.nix
··· 1 - { lib, fetchurl, python3 }: 2 3 let 4 pname = "scons"; 5 version = "3.1.2"; 6 - src = fetchurl { 7 - url = "mirror://sourceforge/scons/scons-${version}.tar.gz"; 8 - hash = "sha256-eAHz9i9lRSjict94C+EMDpM36JdlC2Ldzunzn94T+Ps="; 9 }; 10 in 11 python3.pkgs.buildPythonApplication { 12 inherit pname version src; 13 14 setupHook = ./setup-hook.sh; 15 ··· 36 maintainers = with lib.maintainers; [ AndersonTorres ]; 37 }; 38 }
··· 1 + { lib, fetchFromGitHub, python3 }: 2 3 let 4 pname = "scons"; 5 version = "3.1.2"; 6 + src = fetchFromGitHub { 7 + owner = "Scons"; 8 + repo = "scons"; 9 + rev = version; 10 + hash = "sha256-C3U4N7+9vplzoJoevQe5Zeuz0TDmB6/miMwBJLzA3WA="; 11 }; 12 in 13 python3.pkgs.buildPythonApplication { 14 inherit pname version src; 15 + 16 + outputs = [ "out" "man" ]; 17 + 18 + preConfigure = '' 19 + python bootstrap.py 20 + cd build/scons 21 + ''; 22 23 setupHook = ./setup-hook.sh; 24 ··· 45 maintainers = with lib.maintainers; [ AndersonTorres ]; 46 }; 47 } 48 + # TODO: patch to get rid of distutils and other deprecations