bcachefs-tools/rust-src/mount/default.nix
Daniel Hill 9a44c6d4d0 nix: overhaul build system.
Removed outdated overlay.
Simply build tooling using bingenHook and propagated*Inputs

Signed-off-by: Daniel Hill <daniel@gluo.nz>
2023-01-03 16:58:55 +13:00

28 lines
552 B
Nix

{ lib
, stdenv
, glibc
, udev
, llvmPackages
, rustPlatform
, binary
, ...
}: rustPlatform.buildRustPackage ( let
cargo = lib.trivial.importTOML ./Cargo.toml;
in {
pname = "mount.bcachefs";
version = cargo.package.version;
src = builtins.path { path = ../.; name = "rust-src"; };
sourceRoot = "rust-src/mount";
cargoLock = { lockFile = ./Cargo.lock; };
nativeBuildInputs = [ binary rustPlatform.bindgenHook ];
buildInputs = [ binary ];
LIBBCACHEFS_LIB ="${binary}/lib";
LIBBCACHEFS_INCLUDE = binary.src;
doCheck = false;
})