Skip to content

Fix dependencies for iog-full flavor #175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 29 additions & 26 deletions dynamic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -83,39 +83,42 @@ pkgs.mkShell {
export DYLD_LIBRARY_PATH="${lib.getLib openssl}/lib"
'';

buildInputs = [
buildInputs =
let
inherit (pkgs) lib stdenv;
inherit (lib) attrValues optional optionals;
in [
wrapped-cabal
fixup-nix-deps
compiler
] ++ (with pkgs; [
(pkgs.pkg-config or pkgconfig)
# for libstdc++; ghc not being able to find this properly is bad,
# it _should_ probably call out to a g++ or clang++ but doesn't.
stdenv.cc.cc.lib
]) ++ map pkgs.lib.getDev (
with pkgs;
[
zlib
pcre
openssl
]
++ pkgs.lib.optional pkgs.stdenv.hostPlatform.isLinux systemd
)
++ builtins.attrValues haskell-tools
++ pkgs.lib.optional withIOG
(with pkgs; [
cddl
cbor-diag
gh
jq
yq-go
]
++ (with pkgs; [
openssl
pcre
pkg-config
zlib
])
++ optional stdenv.hostPlatform.isLinux pkgs.systemd
++ optionals withIOG (
with pkgs; [
cbor-diag
cddl
gh
icu
jq
libblst
libsodium-vrf
secp256k1
yq-go
]
++ map pkgs.lib.getDev (with pkgs; [ libblst libsodium-vrf secp256k1 icu ]
++ pkgs.lib.optional (withIOGFull) [
(if pkgs.stdenv.hostPlatform.isAarch64 then null else R) # for plutus; R is broken on aarch64
postgresql # for db-sync
]))
;
++ optionals withIOGFull (
[ postgresql ] ++ (optional stdenv.hostPlatform.isAarch64 R)
)
++ attrValues haskell-tools
);

passthru = {
plans = if haskell-tools == {} then {} else
Expand Down