forked from mirrors/nixpkgs
Merge pull request #3116 from bennofs/cabal-hackage-mirror
cabal-builder: Use hackage mirror
This commit is contained in:
commit
4f933af158
|
@ -82,9 +82,7 @@ assert !enableStaticLibraries -> versionOlder "7.7" ghc.version;
|
||||||
# the default download location for Cabal packages is Hackage,
|
# the default download location for Cabal packages is Hackage,
|
||||||
# you still have to specify the checksum
|
# you still have to specify the checksum
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
# cannot use mirrors system because of subtly different directory structures
|
url = "mirror://hackage/${self.pname}/${self.fname}.tar.gz";
|
||||||
urls = ["http://hackage.haskell.org/packages/archive/${self.pname}/${self.version}/${self.fname}.tar.gz"
|
|
||||||
"http://hdiff.luite.com/packages/archive/${self.pname}/${self.fname}.tar.gz"];
|
|
||||||
inherit (self) sha256;
|
inherit (self) sha256;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue