]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - build.nix
move Rust sources to top level, C sources into c_src
[bcachefs-tools-debian] / build.nix
index 831c7e9f1e4d2f9db6818d272888f6589b384721..a37a6c6ee774f4872989b01672dc33c47ccdef6b 100644 (file)
--- a/build.nix
+++ b/build.nix
@@ -35,12 +35,12 @@ in stdenv.mkDerivation {
 
   BCACHEFS_FUSE = if fuseSupport then "1" else "";
 
-  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";
+    lockFile = "${src}/Cargo.lock";
     outputHashes = {
       "bindgen-0.64.0" = "sha256-GNG8as33HLRYJGYe0nw6qBzq86aHiGonyynEM7gaEE4=";
     };