ocamlPackages.mirage-xen: init at 6.0.0
Unfortunately this requires a bit of trickery with pkg-config to get to work. The root issue is that the mirage-xen assumes that we use the default libdir of dune ($out/lib) whereas we install to an OCaml version-specific site-lib directory. Thus the manually created pkg-config file makes wrong assumptions (which warrants a patch) and the .pc file is installed to the wrong location (which is fixed with a mv invocation).
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
diff --git a/lib/bindings/mirage-xen.pc b/lib/bindings/mirage-xen.pc
|
||||
index a03a217..8499aa4 100644
|
||||
--- a/lib/bindings/mirage-xen.pc
|
||||
+++ b/lib/bindings/mirage-xen.pc
|
||||
@@ -1,6 +1,6 @@
|
||||
-prefix=${pcfiledir}/../..
|
||||
+prefix=@out@
|
||||
exec_prefix=${prefix}
|
||||
-libdir=${exec_prefix}/lib
|
||||
+libdir=@OCAMLFIND_DESTDIR@
|
||||
|
||||
Name: mirage-xen
|
||||
Version: 6.0.0
|
||||
Reference in New Issue
Block a user