Skip to content

Commit

Permalink
chore(nix): replace nix-filter with lib.fileset
Browse files Browse the repository at this point in the history
Signed-off-by: Harald Hoyer <[email protected]>
  • Loading branch information
haraldh committed Feb 15, 2024
1 parent 761d546 commit 26d53ad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
3 changes: 0 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -32,7 +30,6 @@
overlays = with inputs; [
nixsgx-flake.overlays.default
rust-overlay.overlays.default
nix-filter.overlays.default
];

alias = {
Expand Down
21 changes: 10 additions & 11 deletions packages/teepot/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ lib
, gccStdenv
, makeRustPlatform
, nix-filter
, nixsgx
, pkg-config
, rust-bin
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 26d53ad

Please sign in to comment.