diff options
author | Daniel Hill <daniel@gluo.nz> | 2023-02-27 16:34:06 +1300 |
---|---|---|
committer | Daniel Hill <daniel@gluo.nz> | 2023-02-27 16:39:46 +1300 |
commit | bf359ac1ad97929e1023632aafb272d655504516 (patch) | |
tree | 4ed1729ae4f3bbc562aed99f208cc4e238af6afb /rust-src/bch_bindgen | |
parent | 203e40fcf5a11a4bfb29d758ae065445c6e766d5 (diff) |
nix fix up! Rust now integrated into bcachefs binary
Heavily simplified to just call make with the required rust dependencies.
Signed-off-by: Daniel Hill <daniel@gluo.nz>
Diffstat (limited to 'rust-src/bch_bindgen')
-rw-r--r-- | rust-src/bch_bindgen/default.nix | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/rust-src/bch_bindgen/default.nix b/rust-src/bch_bindgen/default.nix deleted file mode 100644 index b7ad502a..00000000 --- a/rust-src/bch_bindgen/default.nix +++ /dev/null @@ -1,49 +0,0 @@ -{ lib -, stdenv -, rustPlatform -, llvmPackages -, bcachefs -, pkg-config -, udev -, liburcu -, zstd -, keyutils -, libaio -, lz4 # liblz4 -, libsodium -, libuuid -, zlib # zlib1g -, libscrypt -, rustfmt -, glibc -, ... -}: -let - cargo = lib.trivial.importTOML ./Cargo.toml; -in -rustPlatform.buildRustPackage { - pname = cargo.package.name; - version = cargo.package.version; - - src = builtins.path { - path = ./.; - name = "bch_bindgen"; - }; - - cargoLock = { lockFile = ./Cargo.lock; }; - - propagatedNativeBuildInputs = [ rustPlatform.bindgenHook ]; - - propagatedBuildInputs = [ - bcachefs.tools - ]; - - LIBBCACHEFS_LIB ="${bcachefs.tools}/lib"; - LIBBCACHEFS_INCLUDE = bcachefs.tools.src; - - postPatch = '' - cp ${./Cargo.lock} Cargo.lock - ''; - - doCheck = true; -} |