partition-all-cabal-hashes: cross-compile safe

This commit is contained in:
Shea Levy 2017-10-14 08:03:53 -04:00
parent 843e0992ca
commit 3ef3fc43a2
No known key found for this signature in database
GPG Key ID: 5C0BD6957D86FE27

View File

@ -19,7 +19,8 @@ let partition-all-cabal-hashes = stdenv.mkDerivation
{ name = "partition-all-cabal-hashes";
src = ./partition-all-cabal-hashes.c;
unpackPhase = "true";
buildInputs = [ pkgconfig libarchive glib ];
buildInputs = [ libarchive glib ];
nativeBuildInputs = [ pkgconfig ];
buildPhase =
"cc -O3 $(pkg-config --cflags --libs libarchive glib-2.0) $src -o partition-all-cabal-hashes";
installPhase =