@@ -37,18 +37,6 @@ oself: osuper:
37
37
let
38
38
nativeCairo = cairo ;
39
39
lmdb-pkg = lmdb ;
40
- pkg-config-script =
41
- let
42
- pkg-config-pkg =
43
- if stdenv . cc . targetPrefix == ""
44
- then "${ pkg-config } /bin/pkg-config"
45
- else "${ stdenv . cc . targetPrefix } pkg-config" ;
46
- in
47
- writeScriptBin "pkg-config" ''
48
- #!${ stdenv . shell }
49
- ${ pkg-config-pkg } $@
50
- '' ;
51
-
52
40
disableTests = d : d . overrideAttrs ( _ : { doCheck = false ; } ) ;
53
41
addBase = p : p . overrideAttrs ( o : {
54
42
propagatedBuildInputs = o . propagatedBuildInputs ++ [ oself . base ] ;
@@ -152,11 +140,19 @@ with oself;
152
140
} ) ;
153
141
154
142
bigarray-overlap = osuper . bigarray-overlap . overrideAttrs ( o : {
155
- nativeBuildInputs = o . nativeBuildInputs ++ [ pkg-config-script pkg-config ] ;
143
+ postPatch = ''
144
+ substituteInPlace ./freestanding/Makefile --replace "pkg-config" "\$(PKG_CONFIG)"
145
+ '' ;
156
146
} ) ;
157
147
158
148
bigstringaf = osuper . bigstringaf . overrideAttrs ( o : {
159
- nativeBuildInputs = o . nativeBuildInputs ++ [ pkg-config-script pkg-config ] ;
149
+ buildInputs = [ dune-configurator ] ;
150
+ src = fetchFromGitHub {
151
+ owner = "inhabitedtype" ;
152
+ repo = "bigstringaf" ;
153
+ rev = "0.9.1" ;
154
+ hash = "sha256-SFp5QBb4GDcTzEzvgkGKCiuUUm1k8jlgjP6ndzcQBP8=" ;
155
+ } ;
160
156
} ) ;
161
157
162
158
binaryen = callPackage ./binaryen { } ;
@@ -227,7 +223,6 @@ with oself;
227
223
url = https://github.com/mirage/checkseum/releases/download/v0.5.0/checkseum-0.5.0.tbz ;
228
224
sha256 = "0bnyzxvagc4cvpz0a434xngk9ra1mjjh67nhyv3qz5ghk5s6a5bv" ;
229
225
} ;
230
- nativeBuildInputs = o . nativeBuildInputs ++ [ pkg-config-script ] ;
231
226
} ) ;
232
227
233
228
coin = osuper . coin . overrideAttrs ( _ : {
@@ -403,9 +398,6 @@ with oself;
403
398
] ;
404
399
} ;
405
400
406
- angstrom = osuper . angstrom . overrideAttrs ( _ : {
407
- doCheck = false ;
408
- } ) ;
409
401
cookie = callPackage ./cookie { } ;
410
402
session-cookie = callPackage ./cookie/session.nix { } ;
411
403
session-cookie-lwt = callPackage ./cookie/session-lwt.nix { } ;
@@ -429,7 +421,7 @@ with oself;
429
421
sha256 = "sha256-YMaKJK8gqsUdYglB4xGdMUpTXbgUgZLLvUG/lSvJesE=" ;
430
422
} ;
431
423
432
- nativeBuildInputs = [ pkg-config pkg-config-script ] ;
424
+ nativeBuildInputs = [ pkg-config ] ;
433
425
buildInputs = [ dune-configurator ] ;
434
426
propagatedBuildInputs = [ integers bigarray-compat libffi-oc . dev ] ;
435
427
@@ -562,8 +554,8 @@ with oself;
562
554
repo = "dune" ;
563
555
# rev = "649031728346482a83441c26c0bbe06ecd89cce2";
564
556
# hash = "sha256-IbvAumstRp7JE+UQDArrwYWyZtbe8q8bZo05eVzA/MU=";
565
- rev = "69bc73c86a45fb72408994e0cbd49e5314e5c2ff " ;
566
- hash = "sha256-SxCSQZZDHcu29ULdmQ+n9LAzxvUbzCj7IaiuB30zuZg =" ;
557
+ rev = "1264b11fa71257acb4a396e74dd1a7b63d4f321f " ;
558
+ hash = "sha256-t6qEDUrVlJcq0REjDMqmThPjejQIwPyg6MfIraYYP0I =" ;
567
559
} ;
568
560
nativeBuildInputs = o . nativeBuildInputs ++ [ makeWrapper ] ;
569
561
@@ -940,10 +932,6 @@ with oself;
940
932
propagatedBuildInputs = [ lev-fiber csexp ] ;
941
933
} else null ;
942
934
943
- digestif = osuper . digestif . overrideAttrs ( o : {
944
- nativeBuildInputs = o . nativeBuildInputs ++ [ pkg-config-script pkg-config ] ;
945
- } ) ;
946
-
947
935
lmdb = buildDunePackage {
948
936
pname = "lmdb" ;
949
937
version = "1.0" ;
@@ -953,7 +941,7 @@ with oself;
953
941
rev = "1.0" ;
954
942
sha256 = "sha256-NbiM7xNpuihzqAMiAaYXVeItspWufnr1/e3WZEkMhsA=" ;
955
943
} ;
956
- nativeBuildInputs = [ pkg-config-script pkg-config ] ;
944
+ nativeBuildInputs = [ pkg-config ] ;
957
945
buildInputs = [ lmdb-pkg dune-configurator ] ;
958
946
propagatedBuildInputs = [ bigstringaf ] ;
959
947
} ;
@@ -993,9 +981,7 @@ with oself;
993
981
sha256 = "sha256-QIxKQEoA5EOGqhwCKdIWQ09RhPKYoleTWdbT1GI397o=" ;
994
982
} ;
995
983
996
- nativeBuildInputs = o . nativeBuildInputs ++ [ pkg-config-script pkg-config cppo ] ;
997
984
propagatedBuildInputs = [ libev-oc ocplib-endian ] ;
998
-
999
985
postPatch = ''
1000
986
substituteInPlace src/unix/dune --replace "bigarray" ""
1001
987
'' ;
@@ -1025,12 +1011,6 @@ with oself;
1025
1011
sha256 = "176dywi6d1s1jn1g1c8f9bznj1r6ajgqp5g196fgszld52598dfq" ;
1026
1012
} ;
1027
1013
} ) ;
1028
- mirage-crypto = osuper . mirage-crypto . overrideAttrs ( o : {
1029
- nativeBuildInputs = o . nativeBuildInputs ++ [ pkg-config-script pkg-config ] ;
1030
- } ) ;
1031
- mirage-crypto-ec = osuper . mirage-crypto-ec . overrideAttrs ( o : {
1032
- nativeBuildInputs = o . nativeBuildInputs ++ [ pkg-config-script pkg-config ] ;
1033
- } ) ;
1034
1014
mirage-crypto-pk = osuper . mirage-crypto-pk . override { gmp = gmp-oc ; } ;
1035
1015
1036
1016
# `mirage-fs` needs to be updated to match `mirage-kv`'s new interface
@@ -1194,7 +1174,11 @@ with oself;
1194
1174
ocamlformat-rpc-lib = callPackage ./ocamlformat/rpc-lib.nix { } ;
1195
1175
1196
1176
ocaml_sqlite3 = osuper . ocaml_sqlite3 . overrideAttrs ( o : {
1197
- nativeBuildInputs = o . nativeBuildInputs ++ [ pkg-config-script pkg-config ] ;
1177
+ postPatch = ''
1178
+ substituteInPlace "src/config/discover.ml" --replace \
1179
+ 'let cmd = pkg_export ^ " pkg-config ' \
1180
+ 'let cmd = let pkg_config = match Sys.getenv "PKG_CONFIG" with | s -> s | exception Not_found -> "pkg-config" in pkg_export ^ " " ^ pkg_config ^ " '
1181
+ '' ;
1198
1182
} ) ;
1199
1183
1200
1184
odep = buildDunePackage {
@@ -1331,7 +1315,7 @@ with oself;
1331
1315
sha256 = "0n621cxb9012pj280c7821qqsdhypj8qy9qgrah79dkh6a8h2py6" ;
1332
1316
} ;
1333
1317
1334
- nativeBuildInputs = [ pkg-config-script pkg-config ocaml findlib ] ;
1318
+ nativeBuildInputs = [ pkg-config ocaml findlib ] ;
1335
1319
propagatedBuildInputs = [ curl lwt ] ;
1336
1320
createFindlibDestdir = true ;
1337
1321
} ;
@@ -1450,7 +1434,6 @@ with oself;
1450
1434
postPatch = ''
1451
1435
substituteInPlace src/dune --replace " bigarray" ""
1452
1436
'' ;
1453
- nativeBuildInputs = o . nativeBuildInputs ++ [ pkg-config-script pkg-config ] ;
1454
1437
propagatedBuildInputs = [ libpq ] ;
1455
1438
} ) ;
1456
1439
0 commit comments