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