Skip to content

Commit

Permalink
flake: depend on libiconv
Browse files Browse the repository at this point in the history
  • Loading branch information
elopez committed Jul 12, 2024
1 parent ba4958b commit cbc512d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,10 @@
ps = if pkgs.stdenv.isDarwin then pkgs else pkgs.pkgsStatic;
in (with ps; lib.pipe
(hevmBase ps)
[
([
(haskell.lib.compose.overrideCabal (old: { testTarget = "test"; }))
(haskell.lib.compose.addTestToolDepends testDeps)
(haskell.lib.compose.addTestToolDepends testDeps)
(haskell.lib.compose.appendBuildFlags ["-v3"])
(haskell.lib.compose.appendConfigureFlags (
[ "-fci"
Expand All @@ -115,7 +116,11 @@
"--ghc-options=-pgml=${cc-workaround-nix-23138}/bin/cc-workaround-nix-23138"
]))
haskell.lib.dontHaddock
]);
] ++ lib.optionals stdenv.isDarwin
[
(haskell.lib.compose.addExtraLibraries [ pkgs.libiconv-darwin ])
])
);

# wrapped binary for use on systems with nix available. ensures all
# required runtime deps are available and on path
Expand Down

0 comments on commit cbc512d

Please sign in to comment.