Merge pull request #197923 from SuperSandro2000/onmetal-image
This commit is contained in:
commit
1ffa33bf09
2 changed files with 43 additions and 0 deletions
41
pkgs/tools/virtualization/onmetal-image/default.nix
Normal file
41
pkgs/tools/virtualization/onmetal-image/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -30747,6 +30747,8 @@ with pkgs;
|
||||||
|
|
||||||
onlyoffice-bin = callPackage ../applications/office/onlyoffice-bin { };
|
onlyoffice-bin = callPackage ../applications/office/onlyoffice-bin { };
|
||||||
|
|
||||||
|
onmetal-image = callPackage ../tools/virtualization/onmetal-image { };
|
||||||
|
|
||||||
opcr-policy = callPackage ../development/tools/opcr-policy { };
|
opcr-policy = callPackage ../development/tools/opcr-policy { };
|
||||||
|
|
||||||
open-policy-agent = callPackage ../development/tools/open-policy-agent { };
|
open-policy-agent = callPackage ../development/tools/open-policy-agent { };
|
||||||
|
|
Loading…
Reference in a new issue