Skip to content
Snippets Groups Projects
Commit 7be69ea0 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Get zlib onto PKG_CONFIG_PATH for the cabal-test flake app

parent 388e44b6
No related branches found
No related tags found
1 merge request!1Simplistic implementation of download
...@@ -49,11 +49,21 @@ ...@@ -49,11 +49,21 @@
program = "${ program = "${
pkgs.writeShellApplication { pkgs.writeShellApplication {
name = "cabal-build-and-test"; name = "cabal-build-and-test";
runtimeInputs = with pkgs; [pkg-config haskell.compiler.${ghcVersion} cabal-install zlib]; # Only put packages with things that need to be on PATH here
# because that's all t hat runtimeInputs buys us. Packages with
# different requirements need to be handled differently.
runtimeInputs = with pkgs; [
pkg-config
haskell.compiler.${ghcVersion}
cabal-install
];
text = '' text = ''
# Here we make zlib discoverable by pkg-config so cabal can find
# headers and stuff.
export PKG_CONFIG_PATH=${pkgs.lib.makeSearchPath "lib/pkgconfig" [pkgs.zlib.dev]}
cabal update hackage.haskell.org cabal update hackage.haskell.org
cabal build --enable-tests
cabal run gbs-downloader-test cabal run gbs-downloader-test
''; '';
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment