diff options
author | Jelle Licht <jlicht@fsfe.org> | 2020-11-04 13:18:46 +0100 |
---|---|---|
committer | Jelle Licht <jlicht@fsfe.org> | 2020-11-04 14:06:23 +0100 |
commit | b4578379e57b59d90c6056b7c241109062c0c2a8 (patch) | |
tree | 49b3ee9ed39c806b8ccd987ac627322453d3decd /gnu/packages | |
parent | 6b0e75bb3f565dfb9ffa084fb232c0b596adbb7e (diff) | |
download | guix-b4578379e57b59d90c6056b7c241109062c0c2a8.tar.gz |
gnu: skopeo: Build documentation.
* gnu/packages/virtualization.scm (skopeo)[native-inputs]: Add go-github-com-go-md2man. [arguments]<phases>{build-docs}: New phase. {install}: Update make target to install manpages. Install example configuration.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/virtualization.scm | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm index ac062dfa15..b20fb70ecb 100644 --- a/gnu/packages/virtualization.scm +++ b/gnu/packages/virtualization.scm @@ -1606,7 +1606,8 @@ Open Container Initiative (OCI) image layout and its tagged images.") "1v7k3ki10i6082r7zswblyirx6zck674y6bw3plssw4p1l2611rd")))) (build-system go-build-system) (native-inputs - `(("pkg-config" ,pkg-config))) + `(("pkg-config" ,pkg-config) + ("go-github-com-go-md2man" ,go-github-com-go-md2man))) (inputs `(("btrfs-progs" ,btrfs-progs) ("eudev" ,eudev) @@ -1625,13 +1626,18 @@ Open Container Initiative (OCI) image layout and its tagged images.") (replace 'build (lambda* (#:key import-path #:allow-other-keys) (with-directory-excursion (string-append "src/" import-path) - ;; TODO: build manpages with 'go-md2man'. (invoke "make" "bin/skopeo")))) + (add-after 'build 'build-docs + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (invoke "make" "docs")))) (replace 'install (lambda* (#:key import-path outputs #:allow-other-keys) (with-directory-excursion (string-append "src/" import-path) (let ((out (assoc-ref outputs "out"))) - (invoke "make" "install-binary" "install-completions" + (install-file "default-policy.json" + (string-append out "/etc/containers")) + (invoke "make" "install-binary" "install-completions" "install-docs" (string-append "PREFIX=" out))))))))) (home-page "https://github.com/containers/skopeo") (synopsis "Interact with container images and container image registries") |