Skip to content

Commit

Permalink
remove nix-filter dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ners committed May 6, 2024
1 parent 8f29b67 commit 7a7b51c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 30 deletions.
22 changes: 3 additions & 19 deletions flake.lock

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

14 changes: 3 additions & 11 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
extra-trusted-public-keys = "haskell:WskuxROW5pPy83rt3ZXnff09gvnu80yovdeKDw5Gi3o=";
};

inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nix-filter.url = "github:numtide/nix-filter";
};
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";

outputs = inputs:
with builtins;
Expand All @@ -18,14 +15,9 @@
else if isAttrs xs then mapAttrsToList f xs
else throw "foreach: expected list or attrset but got ${typeOf xs}"
);
hsSrc = root: inputs.nix-filter {
hsSrc = root: with lib.fileset; toSource {
inherit root;
include = with inputs.nix-filter.lib; [
(matchExt "cabal")
(matchExt "hs")
(matchExt "md")
isDirectory
];
fileset = fileFilter (file: any file.hasExt ["cabal" "hs" "md"] || file.type == "directory") ./.;
};
pname = "lsp-client";
src = hsSrc ./.;
Expand Down

0 comments on commit 7a7b51c

Please sign in to comment.