nixpkgs/pkgs/applications/virtualization/umoci/default.nix

41 lines
822 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";
version = "0.4.6";
2019-10-29 15:34:59 +00:00
src = fetchFromGitHub {
owner = "opencontainers";
2019-10-29 15:34:59 +00:00
repo = "umoci";
rev = "v${version}";
sha256 = "0jaar26l940yh77cs31c3zndiycp85m3fz4zivcibzi68g6n6yzg";
2019-10-29 15:34:59 +00:00
};
vendorSha256 = null;
2020-02-24 20:52:34 +00:00
doCheck = false;
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 docs
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.unix;
2019-10-29 15:34:59 +00:00
};
}