From 3f9c147fde164ec2583c70ea784fd92ec08f2341 Mon Sep 17 00:00:00 2001 From: TheSola10 Date: Fri, 1 Nov 2024 17:12:03 +0000 Subject: [PATCH] bootc: init at 1.1.0 --- pkgs/by-name/bo/bootc/package.nix | 49 +++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 pkgs/by-name/bo/bootc/package.nix diff --git a/pkgs/by-name/bo/bootc/package.nix b/pkgs/by-name/bo/bootc/package.nix new file mode 100644 index 000000000000..c1d496512b5a --- /dev/null +++ b/pkgs/by-name/bo/bootc/package.nix @@ -0,0 +1,49 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + libz, + zstd, + pkg-config, + openssl, + glib, + ostree, + versionCheckHook, +}: + +rustPlatform.buildRustPackage rec { + pname = "bootc"; + version = "1.1.0"; + cargoHash = "sha256-2Ka3n6sT1RUlReNjtV6tMe4ow/M7DFNvWPZktwcEi/w="; + doInstallCheck = true; + + src = fetchFromGitHub { + owner = "containers"; + repo = "bootc"; + rev = "v${version}"; + hash = "sha256-vsJwJHPE5Puv9xCnDRDtHzNuFj1U7s1HzZ2vQKTavhs="; + }; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ + libz + zstd + openssl + glib + ostree + ]; + + nativeInstallCheckInputs = [ + versionCheckHook + ]; + + meta = { + description = "Boot and upgrade via container images"; + homepage = "https://containers.github.io/bootc"; + license = lib.licenses.mit; + mainProgram = "bootc"; + maintainers = with lib.maintainers; [ thesola10 ]; + platforms = lib.platforms.linux; + }; +}