podman: install manpages
This commit is contained in:
parent
6f10a0de83
commit
b02d871652
@ -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; {
|
||||||
|
Loading…
Reference in New Issue
Block a user