bootc: add composefs support (#354498)

This commit is contained in:
Masum Reza
2024-12-20 20:49:14 +05:30
committed by GitHub
3 changed files with 17 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
pkg-config,
openssl,
glib,
ostree,
ostree-full,
versionCheckHook,
}:
@@ -31,7 +31,7 @@ rustPlatform.buildRustPackage rec {
zstd
openssl
glib
ostree
ostree-full
];
nativeInstallCheckInputs = [

View File

@@ -0,0 +1,7 @@
{
ostree,
}:
ostree.override {
withComposefs = true;
}

View File

@@ -33,6 +33,10 @@
, docbook-xsl-nons
, docbook_xml_dtd_42
, python3
# Optional ComposeFS support
, withComposefs ? false
, composefs
}:
let
@@ -87,6 +91,8 @@ in stdenv.mkDerivation rec {
# for installed tests
testPython
gjs
] ++ lib.optionals withComposefs [
(lib.getDev composefs)
];
enableParallelBuilding = true;
@@ -97,6 +103,8 @@ in stdenv.mkDerivation rec {
"--with-systemdsystemgeneratordir=${placeholder "out"}/lib/systemd/system-generators"
"--enable-installed-tests"
"--with-ed25519-libsodium"
] ++ lib.optionals withComposefs [
"--with-composefs"
];
makeFlags = [