mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
mlton: switch sf downloads to mirror://
This allows fallback to all configured mirrors for sourceforge to download, instead of relying on just downloads.sourceforge.net
This commit is contained in:
parent
aa1ff9ef7d
commit
8e3eae86d6
@ -15,22 +15,22 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
binSrc =
|
binSrc =
|
||||||
if stdenv.system == "i686-linux" then (fetchurl {
|
if stdenv.system == "i686-linux" then (fetchurl {
|
||||||
url = "http://sourceforge.net/projects/mlton/files/mlton/${version}/${name}-1.x86-linux.tgz";
|
url = "mirror://sourceforge/project/mlton/mlton/${version}/${name}-1.x86-linux.tgz";
|
||||||
sha256 = "1kxjjmnw4xk2d9hpvz43w9dvyhb3025k4zvjx785c33nrwkrdn4j";
|
sha256 = "1kxjjmnw4xk2d9hpvz43w9dvyhb3025k4zvjx785c33nrwkrdn4j";
|
||||||
})
|
})
|
||||||
else if stdenv.system == "x86_64-linux" then (fetchurl {
|
else if stdenv.system == "x86_64-linux" then (fetchurl {
|
||||||
url = "http://sourceforge.net/projects/mlton/files/mlton/${version}/${name}-1.amd64-linux.tgz";
|
url = "mirror://sourceforge/project/mlton/mlton/${version}/${name}-1.amd64-linux.tgz";
|
||||||
sha256 = "0fyhwxb4nmpirjbjcvk9f6w67gmn2gkz7xcgz0xbfih9kc015ygn";
|
sha256 = "0fyhwxb4nmpirjbjcvk9f6w67gmn2gkz7xcgz0xbfih9kc015ygn";
|
||||||
})
|
})
|
||||||
else if stdenv.system == "x86_64-darwin" then (fetchurl {
|
else if stdenv.system == "x86_64-darwin" then (fetchurl {
|
||||||
url = "http://sourceforge.net/projects/mlton/files/mlton/${version}/${name}-1.amd64-darwin.gmp-macports.tgz";
|
url = "mirror://sourceforge/project/mlton/mlton/${version}/${name}-1.amd64-darwin.gmp-macports.tgz";
|
||||||
sha256 = "044wnh9hhg6if886xy805683k0as347xd37r0r1yi4x7qlxzzgx9";
|
sha256 = "044wnh9hhg6if886xy805683k0as347xd37r0r1yi4x7qlxzzgx9";
|
||||||
})
|
})
|
||||||
else throw "Architecture not supported";
|
else throw "Architecture not supported";
|
||||||
|
|
||||||
codeSrc =
|
codeSrc =
|
||||||
fetchurl {
|
fetchurl {
|
||||||
url = "http://sourceforge.net/projects/mlton/files/mlton/${version}/${name}.src.tgz";
|
url = "mirror://sourceforge/project/mlton/mlton/${version}/${name}.src.tgz";
|
||||||
sha256 = "0v1x2hrh9hiqkvnbq11kf34v4i5a2x0ffxbzqaa8skyl26nmfn11";
|
sha256 = "0v1x2hrh9hiqkvnbq11kf34v4i5a2x0ffxbzqaa8skyl26nmfn11";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user