f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
39 lines
784 B
Nix
39 lines
784 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildGoModule
|
|
, go-md2man
|
|
, installShellFiles
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "umoci";
|
|
version = "0.4.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "opencontainers";
|
|
repo = "umoci";
|
|
rev = "v${version}";
|
|
sha256 = "0in8kyi4jprvbm3zsl3risbjj8b0ma62yl3rq8rcvcgypx0mn7d4";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
doCheck = false;
|
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
|
|
|
nativeBuildInputs = [ go-md2man installShellFiles ];
|
|
|
|
postInstall = ''
|
|
make docs SHELL="$SHELL"
|
|
installManPage doc/man/*.[1-9]
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "umoci modifies Open Container images";
|
|
homepage = "https://umo.ci";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ zokrezyl ];
|
|
mainProgram = "umoci";
|
|
};
|
|
}
|