File tree 1 file changed +29
-26
lines changed
1 file changed +29
-26
lines changed Original file line number Diff line number Diff line change @@ -83,39 +83,42 @@ pkgs.mkShell {
83
83
export DYLD_LIBRARY_PATH="${ lib . getLib openssl } /lib"
84
84
'' ;
85
85
86
- buildInputs = [
86
+ buildInputs =
87
+ let
88
+ inherit ( pkgs ) lib stdenv ;
89
+ inherit ( lib ) attrValues optional optionals ;
90
+ in [
87
91
wrapped-cabal
88
92
fixup-nix-deps
89
93
compiler
90
- ] ++ ( with pkgs ; [
91
- ( pkgs . pkg-config or pkgconfig )
92
94
# for libstdc++; ghc not being able to find this properly is bad,
93
95
# it _should_ probably call out to a g++ or clang++ but doesn't.
94
96
stdenv . cc . cc . lib
95
- ] ) ++ map pkgs . lib . getDev (
96
- with pkgs ;
97
- [
98
- zlib
99
- pcre
100
- openssl
101
- ]
102
- ++ pkgs . lib . optional pkgs . stdenv . hostPlatform . isLinux systemd
103
- )
104
- ++ builtins . attrValues haskell-tools
105
- ++ pkgs . lib . optional withIOG
106
- ( with pkgs ; [
107
- cddl
108
- cbor-diag
109
- gh
110
- jq
111
- yq-go
97
+ ]
98
+ ++ ( with pkgs ; [
99
+ openssl
100
+ pcre
101
+ pkg-config
102
+ zlib
103
+ ] )
104
+ ++ optional stdenv . hostPlatform . isLinux pkgs . systemd
105
+ ++ optionals withIOG (
106
+ with pkgs ; [
107
+ cbor-diag
108
+ cddl
109
+ gh
110
+ icu
111
+ jq
112
+ libblst
113
+ libsodium-vrf
114
+ secp256k1
115
+ yq-go
112
116
]
113
- ++ map pkgs . lib . getDev ( with pkgs ; [ libblst libsodium-vrf secp256k1 icu ]
114
- ++ pkgs . lib . optional ( withIOGFull ) [
115
- ( if pkgs . stdenv . hostPlatform . isAarch64 then null else R ) # for plutus; R is broken on aarch64
116
- postgresql # for db-sync
117
- ] ) )
118
- ;
117
+ ++ optionals withIOGFull (
118
+ [ postgresql ] ++ ( optional stdenv . hostPlatform . isAarch64 R )
119
+ )
120
+ ++ attrValues haskell-tools
121
+ ) ;
119
122
120
123
passthru = {
121
124
plans = if haskell-tools == { } then { } else
You can’t perform that action at this time.
0 commit comments