Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
zeme-wana committed Mar 26, 2024
1 parent 32539c0 commit 6810cb0
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions nix/project.nix
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,10 @@ let
marlowe-cli.ghcOptions = [ "-Werror" ] ++
lib.optional pkgs.stdenv.hostPlatform.isMusl "-L${static-bzip2.out}/lib";


# NOTE this is important or the static builds will fail with:
# Error: pg_config not found
postgresql-libpq.flags."use-pkg-config" = pkgs.stdenv.hostPlatform.isMusl;

# marlowe-cli.components.exes.marlowe-cli.build-tools =

# marlowe-cli.components.exes.marlowe-cli.preCheck =
# lib.optionalString pkgs.stdenv.hostPlatform.isMusl ''
# PATH=${lib.makeBinPath [ pkgs.postgresql ]}:$PATH
# '';

# We need to be a bit more careful with setting the static-bzip2 flag here.
# We do not want it to end up in the library component of marlowe-apps.
marlowe-apps.ghcOptions = [ "-Werror" ] ++ lib.optional pkgs.stdenv.hostPlatform.isMusl "-L${static-bzip2.out}/lib";
Expand All @@ -121,3 +115,5 @@ let
in

project


0 comments on commit 6810cb0

Please sign in to comment.