mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-01-23 00:07:07 +03:00
9a44c6d4d0
Removed outdated overlay. Simply build tooling using bingenHook and propagated*Inputs Signed-off-by: Daniel Hill <daniel@gluo.nz>
28 lines
552 B
Nix
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;
|
|
})
|