forge
Explore
Log in

Don't you dare go Hollow

nix: replace nix-filter with lib.fileset

Browse files at this commit

30a9c6c31b83443585e2af97989979e09a06d454Bloxx12 and sodibooParent: bc0a062
flake.lockmodified+0 -16
@@ -1,20 +1,5 @@
11 {
22 "nodes": {
3- "nix-filter": {
4- "locked": {
5- "lastModified": 1731533336,
6- "narHash": "sha256-oRam5PS1vcrr5UPgALW0eo1m/5/pls27Z/pabHNy2Ms=",
7- "owner": "numtide",
8- "repo": "nix-filter",
9- "rev": "f7653272fd234696ae94229839a99b73c9ab7de0",
10- "type": "github"
11- },
12- "original": {
13- "owner": "numtide",
14- "repo": "nix-filter",
15- "type": "github"
16- }
17- },
183 "nixpkgs": {
194 "locked": {
205 "lastModified": 1742707865,
@@ -33,7 +18,6 @@
3318 },
3419 "root": {
3520 "inputs": {
36- "nix-filter": "nix-filter",
3721 "nixpkgs": "nixpkgs",
3822 "rust-overlay": "rust-overlay"
3923 }
flake.nixmodified+9 -11
@@ -4,7 +4,6 @@
44
55 inputs = {
66 nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
7- nix-filter.url = "github:numtide/nix-filter";
87
98 # NOTE: This is not necessary for end users
109 # You can omit it with `inputs.rust-overlay.follows = ""`
@@ -18,7 +17,6 @@
1817 {
1918 self,
2019 nixpkgs,
21- nix-filter,
2220 rust-overlay,
2321 }:
2422 let
@@ -50,16 +48,16 @@
5048 pname = "niri";
5149 version = self.shortRev or self.dirtyShortRev or "unknown";
5250
53- src = nix-filter.lib.filter {
54- root = self;
55- include = [
56- "niri-config"
57- "niri-ipc"
58- "niri-visual-tests"
59- "resources"
60- "src"
61- ./Cargo.lock
51+ src = lib.fileset.toSource {
52+ root = ./.;
53+ fileset = lib.fileset.unions [
54+ ./niri-config
55+ ./niri-ipc
56+ ./niri-visual-tests
57+ ./resources
58+ ./src
6259 ./Cargo.toml
60+ ./Cargo.lock
6361 ];
6462 };
6563