gnu: lablgtk3: Install with version information.
authorJulien Lepiller <julien@lepiller.eu>
Mon, 5 Jul 2021 15:52:03 +0000 (17:52 +0200)
committerJulien Lepiller <julien@lepiller.eu>
Sat, 31 Jul 2021 21:06:12 +0000 (23:06 +0200)
This is required so recent versions of coq can check version
requirements.

* gnu/packages/ocaml.scm (lablgtk3)[arguments]: Ensure version is added
to the META file.

gnu/packages/ocaml.scm

index f75755c..bf92424 100644 (file)
@@ -6902,8 +6902,12 @@ support for Mparser.")))
            (lambda _
              (for-each (lambda (file)
                          (chmod file #o644))
-                       (find-files "." "."))
-             #t)))))
+                       (find-files "." "."))))
+         (add-before 'build 'set-version
+           (lambda _
+             (substitute* "dune-project"
+               (("\\(name lablgtk3\\)")
+                (string-append "(name lablgtk3)\n(version " ,version ")"))))))))
     (propagated-inputs
      `(("ocaml-cairo2" ,ocaml-cairo2)))
     (inputs