2020-05-16 06:37:01 +03:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
|
|
|
, go-md2man
|
|
|
|
, installShellFiles
|
|
|
|
}:
|
2019-10-29 18:34:59 +03:00
|
|
|
|
2020-05-16 06:37:01 +03:00
|
|
|
buildGoModule rec {
|
2019-10-29 18:34:59 +03:00
|
|
|
pname = "umoci";
|
2020-06-28 06:49:13 +03:00
|
|
|
version = "0.4.6";
|
2019-10-29 18:34:59 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-06-28 06:49:13 +03:00
|
|
|
owner = "opencontainers";
|
2019-10-29 18:34:59 +03:00
|
|
|
repo = "umoci";
|
|
|
|
rev = "v${version}";
|
2020-06-28 06:49:13 +03:00
|
|
|
sha256 = "0jaar26l940yh77cs31c3zndiycp85m3fz4zivcibzi68g6n6yzg";
|
2019-10-29 18:34:59 +03:00
|
|
|
};
|
|
|
|
|
2020-05-16 06:37:01 +03:00
|
|
|
vendorSha256 = null;
|
2020-02-24 23:52:34 +03:00
|
|
|
|
2020-08-04 03:26:27 +03:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-02-24 23:52:34 +03:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
|
|
|
|
2020-05-16 06:37:01 +03:00
|
|
|
nativeBuildInputs = [ go-md2man installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
sed -i '/SHELL =/d' Makefile
|
2020-06-28 06:49:13 +03:00
|
|
|
make docs
|
2020-05-16 06:37:01 +03:00
|
|
|
installManPage doc/man/*.[1-9]
|
|
|
|
'';
|
|
|
|
|
2020-02-24 23:52:34 +03:00
|
|
|
meta = with lib; {
|
2019-10-29 18:34:59 +03:00
|
|
|
description = "umoci modifies Open Container images";
|
2020-02-24 23:52:34 +03:00
|
|
|
homepage = "https://umo.ci";
|
2019-10-29 18:34:59 +03:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ zokrezyl ];
|
2020-06-28 06:49:13 +03:00
|
|
|
platforms = platforms.unix;
|
2019-10-29 18:34:59 +03:00
|
|
|
};
|
|
|
|
}
|