chore(nix): replace nix-filter with lib.fileset

Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
This commit is contained in:
Harald Hoyer 2024-02-15 11:18:07 +01:00
parent 5a0bddf850
commit bf2e4a1b8e
Signed by: harald
GPG key ID: F519A1143B3FBE32
2 changed files with 10 additions and 14 deletions

View file

@ -1,7 +1,6 @@
{ lib
, gccStdenv
, makeRustPlatform
, nix-filter
, nixsgx
, pkg-config
, rust-bin
@ -30,17 +29,17 @@ rustPlatform.buildRustPackage {
nixsgx.sgx-dcap.quote_verify
];
src = nix-filter {
src = with lib.fileset; toSource {
root = ./../..;
include = [
"Cargo.lock"
"Cargo.toml"
"assets"
"bin"
"crates"
"rust-toolchain.toml"
"src"
"tests"
fileset = unions [
../../Cargo.lock
../../Cargo.toml
../../assets
../../bin
../../crates
../../rust-toolchain.toml
../../src
../../tests
];
};
RUSTFLAGS = "--cfg mio_unsupported_force_waker_pipe";