bcachefs-tools: 1.31.7 -> 1.31.8 (#452314)
This commit is contained in:
@@ -38,11 +38,12 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
inherit (bcachefs-tools.meta)
|
inherit (bcachefs-tools.meta)
|
||||||
homepage
|
homepage
|
||||||
|
downloadPage
|
||||||
license
|
license
|
||||||
maintainers
|
maintainers
|
||||||
platforms
|
platforms
|
||||||
;
|
;
|
||||||
|
|
||||||
broken = !(lib.versionAtLeast kernel.version "6.16" && lib.versionOlder kernel.version "6.18");
|
broken = !(lib.versionAtLeast kernel.version "6.16" && lib.versionOlder kernel.version "6.19");
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
rustPlatform,
|
rustPlatform,
|
||||||
makeWrapper,
|
makeWrapper,
|
||||||
nix-update-script,
|
nix-update-script,
|
||||||
testers,
|
versionCheckHook,
|
||||||
nixosTests,
|
nixosTests,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
fuseSupport ? false,
|
fuseSupport ? false,
|
||||||
@@ -28,15 +28,25 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "bcachefs-tools";
|
pname = "bcachefs-tools";
|
||||||
version = "1.31.7";
|
version = "1.31.11";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "koverstreet";
|
owner = "koverstreet";
|
||||||
repo = "bcachefs-tools";
|
repo = "bcachefs-tools";
|
||||||
tag = "v${finalAttrs.version}";
|
tag = "v${finalAttrs.version}";
|
||||||
hash = "sha256-gKtOyaDN9hQo45Rk9hMabKRefOG+ooaCrtLBCPx0fT8=";
|
hash = "sha256-CnRB/iS1NZ0Ebsi12wXFvVb0qdv0V9q1oC3nLj13mqs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
cargoDeps = rustPlatform.fetchCargoVendor {
|
||||||
|
inherit (finalAttrs) src;
|
||||||
|
hash = "sha256-50xy1nqDctgz/lXd5JsfaU6yxDoRCQRtiYBwuEuiKFA=";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace Makefile \
|
||||||
|
--replace-fail "target/release/bcachefs" "target/${stdenv.hostPlatform.rust.rustcTargetSpec}/release/bcachefs"
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkg-config
|
pkg-config
|
||||||
cargo
|
cargo
|
||||||
@@ -45,14 +55,12 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
rustPlatform.bindgenHook
|
rustPlatform.bindgenHook
|
||||||
makeWrapper
|
makeWrapper
|
||||||
installShellFiles
|
installShellFiles
|
||||||
udevCheckHook
|
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
libaio
|
libaio
|
||||||
keyutils
|
keyutils
|
||||||
lz4
|
lz4
|
||||||
|
|
||||||
libsodium
|
libsodium
|
||||||
liburcu
|
liburcu
|
||||||
libuuid
|
libuuid
|
||||||
@@ -63,16 +71,6 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
]
|
]
|
||||||
++ lib.optional fuseSupport fuse3;
|
++ lib.optional fuseSupport fuse3;
|
||||||
|
|
||||||
cargoDeps = rustPlatform.fetchCargoVendor {
|
|
||||||
src = finalAttrs.src;
|
|
||||||
hash = "sha256-INnv9kRgM8RRMwBnC6Vwj9S5FfI5gMscU//aNzHF+8w=";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = [
|
|
||||||
"out"
|
|
||||||
"dkms"
|
|
||||||
];
|
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"PREFIX=${placeholder "out"}"
|
"PREFIX=${placeholder "out"}"
|
||||||
"VERSION=${finalAttrs.version}"
|
"VERSION=${finalAttrs.version}"
|
||||||
@@ -84,6 +82,9 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
"PKGCONFIG_UDEVDIR=$(out)/lib/udev"
|
"PKGCONFIG_UDEVDIR=$(out)/lib/udev"
|
||||||
]
|
]
|
||||||
++ lib.optional fuseSupport "BCACHEFS_FUSE=1";
|
++ lib.optional fuseSupport "BCACHEFS_FUSE=1";
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
installFlags = [
|
installFlags = [
|
||||||
"install"
|
"install"
|
||||||
"install_dkms"
|
"install_dkms"
|
||||||
@@ -97,18 +98,18 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
# FIXME: Try enabling this once the default linux kernel is at least 6.7
|
# FIXME: Try enabling this once the default linux kernel is at least 6.7
|
||||||
doCheck = false; # needs bcachefs module loaded on builder
|
doCheck = false; # needs bcachefs module loaded on builder
|
||||||
|
|
||||||
doInstallCheck = true;
|
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace Makefile \
|
|
||||||
--replace-fail "target/release/bcachefs" "target/${stdenv.hostPlatform.rust.rustcTargetSpec}/release/bcachefs"
|
|
||||||
'';
|
|
||||||
|
|
||||||
preCheck = lib.optionalString (!fuseSupport) ''
|
preCheck = lib.optionalString (!fuseSupport) ''
|
||||||
rm tests/test_fuse.py
|
rm tests/test_fuse.py
|
||||||
'';
|
'';
|
||||||
checkFlags = [ "BCACHEFS_TEST_USE_VALGRIND=no" ];
|
checkFlags = [ "BCACHEFS_TEST_USE_VALGRIND=no" ];
|
||||||
|
|
||||||
|
doInstallCheck = true;
|
||||||
|
nativeInstallCheckInputs = [
|
||||||
|
udevCheckHook
|
||||||
|
versionCheckHook
|
||||||
|
];
|
||||||
|
versionCheckProgramArg = "version";
|
||||||
|
|
||||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd bcachefs \
|
installShellCompletion --cmd bcachefs \
|
||||||
--bash <($out/sbin/bcachefs completions bash) \
|
--bash <($out/sbin/bcachefs completions bash) \
|
||||||
@@ -116,16 +117,16 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
--fish <($out/sbin/bcachefs completions fish)
|
--fish <($out/sbin/bcachefs completions fish)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
outputs = [
|
||||||
|
"out"
|
||||||
|
"dkms"
|
||||||
|
];
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
# See NOTE in linux-kernels.nix
|
# See NOTE in linux-kernels.nix
|
||||||
kernelModule = import ./kernel-module.nix finalAttrs.finalPackage;
|
kernelModule = import ./kernel-module.nix finalAttrs.finalPackage;
|
||||||
|
|
||||||
tests = {
|
tests = {
|
||||||
version = testers.testVersion {
|
|
||||||
package = finalAttrs.finalPackage;
|
|
||||||
command = "${finalAttrs.meta.mainProgram} version";
|
|
||||||
version = "${finalAttrs.version}";
|
|
||||||
};
|
|
||||||
smoke-test = nixosTests.bcachefs;
|
smoke-test = nixosTests.bcachefs;
|
||||||
inherit (nixosTests.installer) bcachefsSimple bcachefsEncrypted bcachefsMulti;
|
inherit (nixosTests.installer) bcachefsSimple bcachefsEncrypted bcachefsMulti;
|
||||||
};
|
};
|
||||||
@@ -133,11 +134,10 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
updateScript = nix-update-script { };
|
updateScript = nix-update-script { };
|
||||||
};
|
};
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Tool for managing bcachefs filesystems";
|
description = "Tool for managing bcachefs filesystems";
|
||||||
homepage = "https://bcachefs.org/";
|
homepage = "https://bcachefs.org/";
|
||||||
|
downloadPage = "https://github.com/koverstreet/bcachefs-tools";
|
||||||
license = lib.licenses.gpl2Only;
|
license = lib.licenses.gpl2Only;
|
||||||
maintainers = with lib.maintainers; [
|
maintainers = with lib.maintainers; [
|
||||||
davidak
|
davidak
|
||||||
|
|||||||
Reference in New Issue
Block a user