Merge pull request #55444 from tilpner/podman-docs
podman: install manpages
This commit is contained in:
commit
8d0fb48034
@ -1,5 +1,6 @@
|
||||
{ stdenv, fetchFromGitHub, pkgconfig
|
||||
, buildGoPackage, gpgme, lvm2, btrfs-progs, libseccomp
|
||||
, go-md2man
|
||||
}:
|
||||
|
||||
buildGoPackage rec {
|
||||
@ -15,9 +16,11 @@ buildGoPackage rec {
|
||||
|
||||
goPackagePath = "github.com/containers/libpod";
|
||||
|
||||
outputs = [ "bin" "out" "man" ];
|
||||
|
||||
# Optimizations break compilation of libseccomp c bindings
|
||||
hardeningDisable = [ "fortify" ];
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
nativeBuildInputs = [ pkgconfig go-md2man ];
|
||||
|
||||
buildInputs = [
|
||||
btrfs-progs libseccomp gpgme lvm2
|
||||
@ -26,11 +29,12 @@ buildGoPackage rec {
|
||||
buildPhase = ''
|
||||
pushd $NIX_BUILD_TOP/go/src/${goPackagePath}
|
||||
patchShebangs .
|
||||
make binaries
|
||||
make binaries docs
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -Dm555 bin/podman $bin/bin/podman
|
||||
MANDIR=$man/share/man make install.man
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user