2020-05-16 05:37:01 +02:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
|
|
|
, go-md2man
|
|
|
|
, installShellFiles
|
|
|
|
}:
|
2019-10-29 16:34:59 +01:00
|
|
|
|
2020-05-16 05:37:01 +02:00
|
|
|
buildGoModule rec {
|
2019-10-29 16:34:59 +01:00
|
|
|
pname = "umoci";
|
2020-02-24 21:52:34 +01:00
|
|
|
version = "0.4.5";
|
2019-10-29 16:34:59 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openSUSE";
|
|
|
|
repo = "umoci";
|
|
|
|
rev = "v${version}";
|
2020-02-24 21:52:34 +01:00
|
|
|
sha256 = "1gzj4nnys73wajdwjn5jsskvnhzh8s2vmyl76ax8drpvw19bd5g3";
|
2019-10-29 16:34:59 +01:00
|
|
|
};
|
|
|
|
|
2020-05-16 05:37:01 +02:00
|
|
|
vendorSha256 = null;
|
2020-02-24 21:52:34 +01:00
|
|
|
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
|
|
|
|
2020-05-16 05:37:01 +02:00
|
|
|
nativeBuildInputs = [ go-md2man installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
sed -i '/SHELL =/d' Makefile
|
|
|
|
make local-doc
|
|
|
|
installManPage doc/man/*.[1-9]
|
|
|
|
'';
|
|
|
|
|
2020-02-24 21:52:34 +01:00
|
|
|
meta = with lib; {
|
2019-10-29 16:34:59 +01:00
|
|
|
description = "umoci modifies Open Container images";
|
2020-02-24 21:52:34 +01:00
|
|
|
homepage = "https://umo.ci";
|
2019-10-29 16:34:59 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ zokrezyl ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|