nix: fix build

This commit is contained in:
Will Fancher 2024-01-21 17:16:51 -05:00
parent 3da247cd20
commit 8117fa732b

View File

@ -33,7 +33,7 @@ in stdenv.mkDerivation {
udev udev
] ++ lib.optional fuseSupport fuse3; ] ++ lib.optional fuseSupport fuse3;
BCACHEFS_FUSE = if fuseSupport then "1" else ""; ${if fuseSupport then "BCACHEFS_FUSE" else null} = "1";
cargoRoot = "."; cargoRoot = ".";
# when git-based crates are updated, run: # when git-based crates are updated, run:
@ -49,7 +49,7 @@ in stdenv.mkDerivation {
makeFlags = [ "DESTDIR=${placeholder "out"}" "PREFIX=" "VERSION=${commit}" ]; makeFlags = [ "DESTDIR=${placeholder "out"}" "PREFIX=" "VERSION=${commit}" ];
dontStrip = true; dontStrip = true;
checkPhase = "./bcachefs version"; checkPhase = "./target/release/bcachefs version";
doCheck = true; doCheck = true;
meta = { meta = {