3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #55444 from tilpner/podman-docs

podman: install manpages
This commit is contained in:
Matthew Bauer 2019-02-08 17:24:48 -05:00 committed by GitHub
commit 8d0fb48034
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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; {