callHackage: ensure we're always using the latest available Hackage database

This commit is contained in:
Peter Simons 2016-10-05 19:03:40 +02:00
parent 529a4050cd
commit 2a2a3c796a

View File

@ -6,12 +6,13 @@
let
allCabalFiles = pkgs.fetchFromGitHub {
owner = "commercialhaskell";
repo = "all-cabal-hashes";
rev = "72f1318540eff69544eb8c14a16f630d0c5448b8";
sha256 = "1czi1rajk2726mqrw3qp7a43h26acbjw54ll3ns063yzg9hg469m";
};
allCabalFiles = stdenv.mkDerivation {
name = "all-cabal-hashes-0";
buildCommand = ''
mkdir -p $out
tar -C $out --strip-components=1 -x -f ${builtins.fetchurl "https://github.com/commercialhaskell/all-cabal-hashes/archive/hackage.tar.gz"}
'';
};
inherit (stdenv.lib) fix' extends;