3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/virtualization/umoci/default.nix

39 lines
802 B
Nix
Raw Normal View History

{ lib
, fetchFromGitHub
, buildGoModule
, go-md2man
, installShellFiles
}:
2019-10-29 15:34:59 +00:00
buildGoModule rec {
2019-10-29 15:34:59 +00:00
pname = "umoci";
2020-02-24 20:52:34 +00:00
version = "0.4.5";
2019-10-29 15:34:59 +00:00
src = fetchFromGitHub {
owner = "openSUSE";
repo = "umoci";
rev = "v${version}";
2020-02-24 20:52:34 +00:00
sha256 = "1gzj4nnys73wajdwjn5jsskvnhzh8s2vmyl76ax8drpvw19bd5g3";
2019-10-29 15:34:59 +00:00
};
vendorSha256 = null;
2020-02-24 20:52:34 +00:00
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]
'';
2020-02-24 20:52:34 +00:00
meta = with lib; {
2019-10-29 15:34:59 +00:00
description = "umoci modifies Open Container images";
2020-02-24 20:52:34 +00:00
homepage = "https://umo.ci";
2019-10-29 15:34:59 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ zokrezyl ];
platforms = platforms.linux;
};
}