3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #3116 from bennofs/cabal-hackage-mirror

cabal-builder: Use hackage mirror
This commit is contained in:
Austin Seipp 2014-06-28 20:35:12 -05:00
commit 4f933af158

View file

@ -82,9 +82,7 @@ assert !enableStaticLibraries -> versionOlder "7.7" ghc.version;
# the default download location for Cabal packages is Hackage,
# you still have to specify the checksum
src = fetchurl {
# cannot use mirrors system because of subtly different directory structures
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"];
url = "mirror://hackage/${self.pname}/${self.fname}.tar.gz";
inherit (self) sha256;
};