Skip to content

Commit 6546d04

Browse files
committed
[Chore] Add hack for octez-proto-libs
Problem: `octez-protocol-compiler` requires some docs to be present in the `octez-proto-libs`. Solution: Add dummy docs.
1 parent 3187307 commit 6546d04

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

nix/build/hacks.nix

+16-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# This file needs to become empty.
55
self: super: rec {
6-
# For some reason octez-protocol-compiler wants some docs to be present in octez-libs
6+
# For some reason octez-protocol-compiler wants some docs to be present in octez libs
77
octez-libs = super.octez-libs.overrideAttrs (o: {
88
postFixup = ''
99
DUMMY_DOCS_DIR="$OCAMLFIND_DESTDIR/../doc/${o.pname}"
@@ -19,6 +19,21 @@ self: super: rec {
1919
done
2020
'';
2121
});
22+
octez-proto-libs = super.octez-proto-libs.overrideAttrs (o: {
23+
postFixup = ''
24+
DUMMY_DOCS_DIR="$OCAMLFIND_DESTDIR/../doc/${o.pname}"
25+
mkdir -p "$DUMMY_DOCS_DIR"
26+
for doc in "README.md" "CHANGES.rst" "LICENSE"; do
27+
touch "$DUMMY_DOCS_DIR/$doc"
28+
done
29+
30+
DUMMY_ODOC_PAGES_DIR="$DUMMY_DOCS_DIR/odoc-pages"
31+
mkdir -p "$DUMMY_ODOC_PAGES_DIR"
32+
for doc in "tezos_workers.mld" "tezos_lwt_result_stdlib.mld" "index.mld"; do
33+
touch "$DUMMY_ODOC_PAGES_DIR/$doc"
34+
done
35+
'';
36+
});
2237
octez-admin-client = super.octez-client.overrideAttrs (_ : {
2338
name = "octez-admin-client";
2439
postInstall = "rm $out/bin/octez-client $out/bin/*.sh";

0 commit comments

Comments
 (0)