From bf2e4a1b8ecbdff44e1891c8423a8b68753b919b Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 15 Feb 2024 11:18:07 +0100 Subject: [PATCH] chore(nix): replace nix-filter with `lib.fileset` Signed-off-by: Harald Hoyer --- flake.nix | 3 --- packages/teepot/default.nix | 21 ++++++++++----------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/flake.nix b/flake.nix index 463e003..6786f8c 100644 --- a/flake.nix +++ b/flake.nix @@ -18,8 +18,6 @@ url = "github:oxalica/rust-overlay?rev=3ad32bb27c700b59306224e285b66577e3532dfc"; inputs.nixpkgs.follows = "nixpkgs"; }; - - nix-filter.url = "github:numtide/nix-filter?rev=3449dc925982ad46246cfc36469baf66e1b64f17"; }; outputs = inputs: @@ -32,7 +30,6 @@ overlays = with inputs; [ nixsgx-flake.overlays.default rust-overlay.overlays.default - nix-filter.overlays.default ]; alias = { diff --git a/packages/teepot/default.nix b/packages/teepot/default.nix index cbc28e6..b80a76c 100644 --- a/packages/teepot/default.nix +++ b/packages/teepot/default.nix @@ -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";