sox: use fetchgit instead of sourceforge unreliable snapshot url

See also discussion at: https://github.com/NixOS/nixpkgs/pull/240866

+8 -3
+8 -3
pkgs/applications/misc/audio/sox/default.nix
··· 1 1 { config 2 2 , lib 3 3 , stdenv 4 - , fetchzip 4 + , fetchgit 5 5 , autoreconfHook 6 6 , autoconf-archive 7 7 , pkg-config ··· 39 39 pname = "sox"; 40 40 version = "unstable-2021-05-09"; 41 41 42 - src = fetchzip { 43 - url = "https://sourceforge.net/code-snapshots/git/s/so/sox/code.git/sox-code-42b3557e13e0fe01a83465b672d89faddbe65f49.zip"; 42 + src = fetchgit { 43 + # not really needed, but when this src was updated from `fetchurl -> 44 + # fetchgit`, we spared the mass rebuild by changing this `name` and 45 + # therefor merge this to `master` and not to `staging`. 46 + name = "source"; 47 + url = "https://git.code.sf.net/p/sox/code"; 48 + rev = "42b3557e13e0fe01a83465b672d89faddbe65f49"; 44 49 hash = "sha256-9cpOwio69GvzVeDq79BSmJgds9WU5kA/KUlAkHcpN5c="; 45 50 }; 46 51