2022-12-02 08:20:57 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "onmetal-image";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.1.1";
|
2022-12-02 08:20:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "onmetal";
|
|
|
|
repo = "onmetal-image";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-KvOBvAIE9V2bj5prdcc8G5ifHsvybHBCYWrI4fWtdvE=";
|
2022-12-02 08:20:57 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
vendorHash = "sha256-aCL8hLcBnIs5BJM7opIwcOLvOS3uL9mYXs1vOAMlX/M=";
|
2022-12-02 08:20:57 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/cmd $out/bin/onmetal-image
|
|
|
|
|
2023-07-15 17:15:38 +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-12-02 08:20:57 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Onmetal OCI Image Specification, Library and Tooling";
|
|
|
|
homepage = "https://github.com/onmetal/onmetal-image";
|
|
|
|
license = licenses.asl20;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "onmetal-image";
|
2022-12-02 08:20:57 +00:00
|
|
|
};
|
|
|
|
}
|