From d421186dc5ba39963d4b37ef0bfb9dda49d0ba4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 26 Oct 2022 17:07:16 +0200 Subject: [PATCH] onmetal-image: init at unstable-2022-09-28 --- .../virtualization/onmetal-image/default.nix | 41 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 43 insertions(+) create mode 100644 pkgs/tools/virtualization/onmetal-image/default.nix diff --git a/pkgs/tools/virtualization/onmetal-image/default.nix b/pkgs/tools/virtualization/onmetal-image/default.nix new file mode 100644 index 000000000000..7ae6c6f89e09 --- /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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a3a1dc02dc13..0a94df5966ff 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -30465,6 +30465,8 @@ with pkgs; onlyoffice-bin = callPackage ../applications/office/onlyoffice-bin { }; + onmetal-image = callPackage ../tools/virtualization/onmetal-image { }; + opcr-policy = callPackage ../development/tools/opcr-policy { }; open-policy-agent = callPackage ../development/tools/open-policy-agent { };