2022-10-26 15:07:16 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "onmetal-image";
|
2023-05-24 02:22:10 +00:00
|
|
|
version = "0.1.1";
|
2022-10-26 15:07:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "onmetal";
|
|
|
|
repo = "onmetal-image";
|
2023-05-24 02:22:10 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-KvOBvAIE9V2bj5prdcc8G5ifHsvybHBCYWrI4fWtdvE=";
|
2022-10-26 15:07:16 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 02:22:10 +00:00
|
|
|
vendorHash = "sha256-aCL8hLcBnIs5BJM7opIwcOLvOS3uL9mYXs1vOAMlX/M=";
|
2022-10-26 15:07:16 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/cmd $out/bin/onmetal-image
|
|
|
|
|
2023-05-24 02:22:10 +00:00
|
|
|
installShellCompletion --cmd onmetal-image \
|
|
|
|
--bash <($out/bin/onmetal-image completion bash) \
|
|
|
|
--fish <($out/bin/onmetal-image completion fish) \
|
|
|
|
--zsh <($out/bin/onmetal-image completion zsh)
|
2022-10-26 15:07:16 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Onmetal OCI Image Specification, Library and Tooling";
|
|
|
|
homepage = "https://github.com/onmetal/onmetal-image";
|
|
|
|
license = licenses.asl20;
|
2023-07-23 17:30:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2023-11-23 21:09:35 +00:00
|
|
|
mainProgram = "onmetal-image";
|
2022-10-26 15:07:16 +00:00
|
|
|
};
|
|
|
|
}
|