diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-11-27 22:55:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-27 22:55:01 +0100 |
commit | 1ffa33bf09d4ef9cf45ae2cc8de6669a497c38ff (patch) | |
tree | 13096d7c8c3c8c2d41349d11915fb24988cf2a5e /pkgs/tools/virtualization | |
parent | cdad0ce127b0b32ae8c5c07233f44dd63a85661a (diff) | |
parent | d421186dc5ba39963d4b37ef0bfb9dda49d0ba4f (diff) |
Merge pull request #197923 from SuperSandro2000/onmetal-image
Diffstat (limited to 'pkgs/tools/virtualization')
-rw-r--r-- | pkgs/tools/virtualization/onmetal-image/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/tools/virtualization/onmetal-image/default.nix b/pkgs/tools/virtualization/onmetal-image/default.nix new file mode 100644 index 0000000000000..7ae6c6f89e091 --- /dev/null +++ b/pkgs/tools/virtualization/onmetal-image/default.nix @@ -0,0 +1,41 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, installShellFiles +}: + +buildGoModule rec { + pname = "onmetal-image"; + version = "unstable-2022-09-28"; + + src = fetchFromGitHub { + owner = "onmetal"; + repo = "onmetal-image"; + rev = "26f6ac2607e1cac19c35fac94aa8cd963b19628a"; + sha256 = "sha256-ITUm7CEaz8X7LhArGJXk4YKQcX+kOvju6Go+fGfFOcw="; + }; + + vendorSha256 = "sha256-ISDNqXoJEYy6kfCZGqHoie0jMOw9bgjYGHqBGx6mymc="; + + subPackages = [ "cmd" ]; + + nativeBuildInputs = [ + installShellFiles + ]; + + 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) + ''; + + meta = with lib; { + description = "Onmetal OCI Image Specification, Library and Tooling"; + homepage = "https://github.com/onmetal/onmetal-image"; + license = licenses.asl20; + maintainers = with maintainers; [ SuperSandro2000 ]; + }; +} |