mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 09:14:28 +00:00
onmetal-image: unstable-2022-09-28 -> 0.1.1
This commit is contained in:
parent
b31c968ff2
commit
2e824d9b96
@ -6,18 +6,16 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "onmetal-image";
|
||||
version = "unstable-2022-09-28";
|
||||
version = "0.1.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "onmetal";
|
||||
repo = "onmetal-image";
|
||||
rev = "26f6ac2607e1cac19c35fac94aa8cd963b19628a";
|
||||
sha256 = "sha256-ITUm7CEaz8X7LhArGJXk4YKQcX+kOvju6Go+fGfFOcw=";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-KvOBvAIE9V2bj5prdcc8G5ifHsvybHBCYWrI4fWtdvE=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-ISDNqXoJEYy6kfCZGqHoie0jMOw9bgjYGHqBGx6mymc=";
|
||||
|
||||
subPackages = [ "cmd" ];
|
||||
vendorHash = "sha256-aCL8hLcBnIs5BJM7opIwcOLvOS3uL9mYXs1vOAMlX/M=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
@ -26,10 +24,10 @@ buildGoModule rec {
|
||||
postInstall = ''
|
||||
mv $out/bin/cmd $out/bin/onmetal-image
|
||||
|
||||
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)
|
||||
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)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user