depot/pkgs/by-name/bo/bootc/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

49 lines
919 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
libz,
zstd,
pkg-config,
openssl,
glib,
ostree,
versionCheckHook,
}:
rustPlatform.buildRustPackage rec {
pname = "bootc";
version = "1.1.2";
cargoHash = "sha256-i8eYypTgm43Ib1HZ2e9WBLUyDAGCZPpvpzmjTS8d9e0=";
doInstallCheck = true;
src = fetchFromGitHub {
owner = "containers";
repo = "bootc";
rev = "v${version}";
hash = "sha256-p1+j62MllmPcvWnijieSZmlgwYy76X17fv12Haetz78=";
};
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;
};
}