Skip to content

Commit

Permalink
Merge pull request #803 from toastal/remove-nix-filter
Browse files Browse the repository at this point in the history
Remove Nix dependency: nix-filter
  • Loading branch information
nbacquey authored Dec 10, 2024
2 parents 6b2e3c7 + 166f268 commit 6ca675d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 35 deletions.
32 changes: 15 additions & 17 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
, advisory-db
, crane
, rust-overlay
, nix-filter
, craneLib
# tree-sitter-Nickel is packaged in Nixpkgs, but it's an older version at the
# time of writing. Since updating it seems non trivial, and we need Topiary to
Expand All @@ -12,6 +11,7 @@
, tree-sitter-nickel
}:
let
inherit (pkgs.lib) fileset;
wasmRustVersion = "1.77.2";
wasmTarget = "wasm32-unknown-unknown";

Expand All @@ -22,23 +22,21 @@ let
commonArgs = {
pname = "topiary";

src = nix-filter.lib.filter {
src = fileset.toSource {
root = ./.;
include = [
"benches"
"Cargo.lock"
"Cargo.toml"
"languages.ncl"
"languages_nix.ncl"
"tests"
"topiary-core"
"topiary-cli"
"topiary-config"
"topiary-playground"
"topiary-queries"
"topiary-tree-sitter-facade"
"topiary-web-tree-sitter-sys"
"examples"
fileset = fileset.unions [
./Cargo.lock
./Cargo.toml
./languages.ncl
./languages_nix.ncl
./examples
./topiary-core
./topiary-cli
./topiary-config
./topiary-playground
./topiary-queries
./topiary-tree-sitter-facade
./topiary-web-tree-sitter-sys
];
};

Expand Down
16 changes: 0 additions & 16 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
};

flake-utils.url = "github:numtide/flake-utils";
nix-filter.url = "github:numtide/nix-filter";

tree-sitter-nickel-input = {
url = "github:nickel-lang/tree-sitter-nickel";
Expand Down Expand Up @@ -64,7 +63,7 @@
tree-sitter-nickel = tree-sitter-nickel-input.packages.${system}.default;

topiaryPkgs = pkgs.callPackage ./default.nix {
inherit advisory-db crane rust-overlay nix-filter craneLib tree-sitter-nickel;
inherit advisory-db crane rust-overlay craneLib tree-sitter-nickel;
};
binPkgs = pkgs.callPackage ./bin/default.nix { };
in
Expand Down

0 comments on commit 6ca675d

Please sign in to comment.