bcachefs-tools: fixup for version 1.4.1

This commit is contained in:
Madoura 2024-01-09 09:09:02 -06:00
parent b1ce631c29
commit 6b8dc42ee1
No known key found for this signature in database
GPG Key ID: 9086473B4D809BD2

View File

@ -19,6 +19,7 @@
, rustPlatform
, makeWrapper
, writeScript
, python3
, fuseSupport ? false
}:
@ -26,7 +27,6 @@ stdenv.mkDerivation (finalAttrs: {
pname = "bcachefs-tools";
version = "1.4.1";
src = fetchFromGitHub {
owner = "koverstreet";
repo = "bcachefs-tools";
@ -69,8 +69,7 @@ stdenv.mkDerivation (finalAttrs: {
checkFlags = [ "BCACHEFS_TEST_USE_VALGRIND=no" ];
makeFlags = [
"DESTDIR=${placeholder "out"}"
"PREFIX="
"PREFIX=${placeholder "out"}"
"VERSION=${finalAttrs.version}"
"INITRAMFS_DIR=${placeholder "out"}/etc/initramfs-tools"
];
@ -79,6 +78,17 @@ stdenv.mkDerivation (finalAttrs: {
rm tests/test_fuse.py
'';
# Tries to install to the 'systemd-minimal' and 'udev' nix installation paths
installFlags = [
"PKGCONFIG_SERVICEDIR=$(out)/lib/systemd/system"
"PKGCONFIG_UDEVDIR=$(out)/lib/udev"
];
postInstall = ''
substituteInPlace $out/libexec/bcachefsck_all \
--replace "/usr/bin/python3" "${python3}/bin/python3"
'';
passthru = {
tests = {
smoke-test = nixosTests.bcachefs;