Merge pull request #87923 from zowoq/umoci

umoci: install manpages, switch to buildGoModule
This commit is contained in:
Mario Rodas 2020-05-16 06:56:41 -05:00 committed by GitHub
commit b5f2cb7620
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,11 @@
{ lib, fetchFromGitHub, buildGoPackage }:
{ lib
, fetchFromGitHub
, buildGoModule
, go-md2man
, installShellFiles
}:
buildGoPackage rec {
buildGoModule rec {
pname = "umoci";
version = "0.4.5";
@ -11,10 +16,18 @@ buildGoPackage rec {
sha256 = "1gzj4nnys73wajdwjn5jsskvnhzh8s2vmyl76ax8drpvw19bd5g3";
};
goPackagePath = "github.com/openSUSE/umoci";
vendorSha256 = null;
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
nativeBuildInputs = [ go-md2man installShellFiles ];
postInstall = ''
sed -i '/SHELL =/d' Makefile
make local-doc
installManPage doc/man/*.[1-9]
'';
meta = with lib; {
description = "umoci modifies Open Container images";
homepage = "https://umo.ci";