mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-29 03:10:19 +00:00
kubernix: modernize (#567911)
This commit is contained in:
@@ -2,17 +2,20 @@
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
rustPlatform,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "kubernix";
|
||||
version = "0.4.1";
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "saschagrunert";
|
||||
repo = "kubernix";
|
||||
tag = "v${finalAttrs.version}";
|
||||
sha256 = "sha256-LO6WXXNkUf1rkjRuSHRWtfHtCL9oj+36cewrRc/KLdw=";
|
||||
hash = "sha256-LO6WXXNkUf1rkjRuSHRWtfHtCL9oj+36cewrRc/KLdw=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-l1LMqGh7DGZAJdSRsbCqr1/5pA9rZYN8nJ3cMRuSR+Q=";
|
||||
@@ -20,6 +23,9 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
# Tests require network access
|
||||
doCheck = false;
|
||||
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
doInstallCheck = true;
|
||||
|
||||
meta = {
|
||||
description = "Single dependency Kubernetes clusters for local testing, experimenting and development";
|
||||
mainProgram = "kubernix";
|
||||
|
||||
Reference in New Issue
Block a user