X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=build.nix;h=4a4b7b069c8b6e1aacb27aae6d29d9aaaf3a1b7d;hb=HEAD;hp=a37a6c6ee774f4872989b01672dc33c47ccdef6b;hpb=f5baaf48e3e82b1caf9f5cd1207d4d6feba3a2e5;p=bcachefs-tools-debian diff --git a/build.nix b/build.nix index a37a6c6..4a4b7b0 100644 --- a/build.nix +++ b/build.nix @@ -33,7 +33,7 @@ in stdenv.mkDerivation { udev ] ++ lib.optional fuseSupport fuse3; - BCACHEFS_FUSE = if fuseSupport then "1" else ""; + ${if fuseSupport then "BCACHEFS_FUSE" else null} = "1"; cargoRoot = "."; # when git-based crates are updated, run: @@ -41,15 +41,12 @@ in stdenv.mkDerivation { # to update the hashes cargoDeps = rustPlatform.importCargoLock { lockFile = "${src}/Cargo.lock"; - outputHashes = { - "bindgen-0.64.0" = "sha256-GNG8as33HLRYJGYe0nw6qBzq86aHiGonyynEM7gaEE4="; - }; }; makeFlags = [ "DESTDIR=${placeholder "out"}" "PREFIX=" "VERSION=${commit}" ]; dontStrip = true; - checkPhase = "./bcachefs version"; + checkPhase = "./target/release/bcachefs version"; doCheck = true; meta = {