podman: install manpages

This commit is contained in:
tilpner 2019-02-08 13:38:46 +01:00
parent 6f10a0de83
commit b02d871652
No known key found for this signature in database
GPG Key ID: 6A13327225BE51F6

View File

@ -1,5 +1,6 @@
{ stdenv, fetchFromGitHub, pkgconfig { stdenv, fetchFromGitHub, pkgconfig
, buildGoPackage, gpgme, lvm2, btrfs-progs, libseccomp , buildGoPackage, gpgme, lvm2, btrfs-progs, libseccomp
, go-md2man
}: }:
buildGoPackage rec { buildGoPackage rec {
@ -15,9 +16,11 @@ buildGoPackage rec {
goPackagePath = "github.com/containers/libpod"; goPackagePath = "github.com/containers/libpod";
outputs = [ "bin" "out" "man" ];
# Optimizations break compilation of libseccomp c bindings # Optimizations break compilation of libseccomp c bindings
hardeningDisable = [ "fortify" ]; hardeningDisable = [ "fortify" ];
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig go-md2man ];
buildInputs = [ buildInputs = [
btrfs-progs libseccomp gpgme lvm2 btrfs-progs libseccomp gpgme lvm2
@ -26,11 +29,12 @@ buildGoPackage rec {
buildPhase = '' buildPhase = ''
pushd $NIX_BUILD_TOP/go/src/${goPackagePath} pushd $NIX_BUILD_TOP/go/src/${goPackagePath}
patchShebangs . patchShebangs .
make binaries make binaries docs
''; '';
installPhase = '' installPhase = ''
install -Dm555 bin/podman $bin/bin/podman install -Dm555 bin/podman $bin/bin/podman
MANDIR=$man/share/man make install.man
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {