mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
onmetal-image: init at unstable-2022-09-28
This commit is contained in:
parent
8191089900
commit
d421186dc5
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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue