From fb01fd764b73372bdf91b9fb1ae2d02e469f0216 Mon Sep 17 00:00:00 2001 From: Seth Flynn Date: Sun, 30 Mar 2025 22:08:43 -0400 Subject: chore: nix-filter -> lib.fileset --- flake.nix | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 5dc4108..a6625d1 100644 --- a/flake.nix +++ b/flake.nix @@ -3,14 +3,12 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; - nix-filter.url = "github:numtide/nix-filter"; }; outputs = { self, nixpkgs, - nix-filter, }: let inherit (nixpkgs) lib; @@ -27,16 +25,14 @@ date = let - # YYYYMMDD - date = builtins.substring 0 8 self.lastModifiedDate; # YYYY - year = builtins.substring 0 4 date; + year = lib.substring 0 4 self.lastModifiedDate; # MM - month = builtins.substring 4 2 date; + month = lib.substring 4 2 self.lastModifiedDate; # DD - day = builtins.substring 6 2 date; + day = lib.substring 6 2 self.lastModifiedDate; in - builtins.concatStringsSep "-" [ + lib.concatStringsSep "-" [ year month day @@ -104,9 +100,9 @@ pname = "getchoo-neovim-config"; inherit version; - src = nix-filter.lib.filter { - root = self; - include = [ + src = lib.fileset.toSource { + root = ./.; + fileset = lib.fileset.unions [ ./lua ./ftdetect ./ftplugin -- cgit v1.2.3