diff --git a/pkgs/by-name/bo/bootc/package.nix b/pkgs/by-name/bo/bootc/package.nix new file mode 100644 index 0000000000000..fa4883878e90b --- /dev/null +++ b/pkgs/by-name/bo/bootc/package.nix @@ -0,0 +1,35 @@ +{ lib, rustPlatform, fetchFromGitHub +, libz, zstd, pkg-config, openssl, glib, ostree }: + +rustPlatform.buildRustPackage rec { + pname = "bootc"; + version = "1.1.0"; + cargoHash = "sha256-2Ka3n6sT1RUlReNjtV6tMe4ow/M7DFNvWPZktwcEi/w="; + + src = fetchFromGitHub { + owner = "containers"; + repo = pname; + rev = "v${version}"; + hash = "sha256-vsJwJHPE5Puv9xCnDRDtHzNuFj1U7s1HzZ2vQKTavhs="; + }; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + libz + zstd + openssl + glib + ostree + ]; + + meta = with lib; { + description = "Boot and upgrade via container images"; + homepage = "https://containers.github.io/bootc"; + license = licenses.mit; + maintainers = with maintainers; [ thesola10 ]; + platforms = platforms.linux; + }; +}