mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-28 07:43:43 +00:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
41 lines
965 B
Nix
41 lines
965 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "onmetal-image";
|
|
version = "0.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "onmetal";
|
|
repo = "onmetal-image";
|
|
rev = "v${version}";
|
|
hash = "sha256-KvOBvAIE9V2bj5prdcc8G5ifHsvybHBCYWrI4fWtdvE=";
|
|
};
|
|
|
|
vendorHash = "sha256-aCL8hLcBnIs5BJM7opIwcOLvOS3uL9mYXs1vOAMlX/M=";
|
|
|
|
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 = [ ];
|
|
mainProgram = "onmetal-image";
|
|
};
|
|
}
|