onmetal-image: init at unstable-2022-09-28

This commit is contained in:
Sandro Jäckel 2022-10-26 17:07:16 +02:00
parent 8191089900
commit d421186dc5
No known key found for this signature in database
GPG key ID: B1763F8651144063
2 changed files with 43 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -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 { };