diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-03-29 16:20:29 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-03-29 16:22:40 +0100 |
| commit | d768c5c27345d335e9d29932d8219ab31a9ae8b4 (patch) | |
| tree | df085708032283957a13289ff86a53f76ed5db55 /gnu/packages/virtualization.scm | |
| parent | 76e3a33a1df09da4892e7d62f0bd73b63131a119 (diff) | |
gnu: umoci: Install man pages, adjust inputs.
* gnu/packages/virtualization.scm (umoci):
[phases]{build-and-install-man-pages}: New phase.
[propagated-inputs]: Move from here ...
[native-inputs]: ... to here; add go-md2man.
Change-Id: Ia01a814fbbc41ae025522986c40cec20a00c0f3a
Diffstat (limited to 'gnu/packages/virtualization.scm')
| -rw-r--r-- | gnu/packages/virtualization.scm | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm index af743917f97..270565bb8ea 100644 --- a/gnu/packages/virtualization.scm +++ b/gnu/packages/virtualization.scm | |||
| @@ -2467,9 +2467,23 @@ Open Container Initiative specification.") | |||
| 2467 | #:build-flags | 2467 | #:build-flags |
| 2468 | #~(list (string-append "-ldflags=" | 2468 | #~(list (string-append "-ldflags=" |
| 2469 | "-X github.com/opencontainers/umoci.version=" | 2469 | "-X github.com/opencontainers/umoci.version=" |
| 2470 | #$version)))) | 2470 | #$version)) |
| 2471 | ;; TODO: build manpages from <doc/man> with 'go-md2man'. | 2471 | #:phases |
| 2472 | (propagated-inputs | 2472 | #~(modify-phases %standard-phases |
| 2473 | (add-after 'install 'build-and-install-man-pages | ||
| 2474 | (lambda* (#:key unpack-path #:allow-other-keys) | ||
| 2475 | (with-directory-excursion | ||
| 2476 | (string-append "src/" unpack-path "/doc/man") | ||
| 2477 | (mkdir-p (string-append #$output "/share/man/man1")) | ||
| 2478 | (for-each | ||
| 2479 | (lambda (file) | ||
| 2480 | (let* ((file (string-drop-right file 3)) ;cut .md | ||
| 2481 | (in-md (string-append file ".md")) | ||
| 2482 | (out-man (string-append #$output | ||
| 2483 | "/share/man/man1/" file))) | ||
| 2484 | (invoke "go-md2man" "-in" in-md "-out" out-man))) | ||
| 2485 | (find-files "." "\\.md$")))))))) | ||
| 2486 | (native-inputs | ||
| 2473 | (list go-github-com-adalogics-go-fuzz-headers | 2487 | (list go-github-com-adalogics-go-fuzz-headers |
| 2474 | go-github-com-apex-log | 2488 | go-github-com-apex-log |
| 2475 | go-github-com-blang-semver-v4 | 2489 | go-github-com-blang-semver-v4 |
| @@ -2489,7 +2503,8 @@ Open Container Initiative specification.") | |||
| 2489 | go-github-com-stretchr-testify | 2503 | go-github-com-stretchr-testify |
| 2490 | go-github-com-urfave-cli | 2504 | go-github-com-urfave-cli |
| 2491 | go-golang-org-x-sys | 2505 | go-golang-org-x-sys |
| 2492 | go-google-golang-org-protobuf)) | 2506 | go-google-golang-org-protobuf |
| 2507 | go-md2man)) | ||
| 2493 | (home-page "https://umo.ci/") | 2508 | (home-page "https://umo.ci/") |
| 2494 | (synopsis "Tool for modifying Open Container images") | 2509 | (synopsis "Tool for modifying Open Container images") |
| 2495 | (description | 2510 | (description |
