2020-05-29 06:06:01 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
|
|
|
, go-md2man
|
|
|
|
, installShellFiles
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "umoci";
|
2021-04-08 16:26:57 +00:00
|
|
|
version = "0.4.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-07-18 16:06:22 +00:00
|
|
|
owner = "opencontainers";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "umoci";
|
|
|
|
rev = "v${version}";
|
2021-04-08 16:26:57 +00:00
|
|
|
sha256 = "0in8kyi4jprvbm3zsl3risbjj8b0ma62yl3rq8rcvcgypx0mn7d4";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = null;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-08-06 21:57:35 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
nativeBuildInputs = [ go-md2man installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2022-10-06 18:32:54 +00:00
|
|
|
make docs SHELL="$SHELL"
|
2020-05-29 06:06:01 +00:00
|
|
|
installManPage doc/man/*.[1-9]
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "umoci modifies Open Container images";
|
|
|
|
homepage = "https://umo.ci";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ zokrezyl ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "umoci";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|