nix: replace nix-filter with lib.fileset
Browse files at this commit30a9c6c31b83443585e2af97989979e09a06d454Parent: bc0a0622 changed files +9 -27
- flake.lock +0 -16
- flake.nix +9 -11
flake.lockmodified+0 -16
| @@ -1,20 +1,5 @@ | ||
| 1 | 1 | { |
| 2 | 2 | "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 | - }, | |
| 18 | 3 | "nixpkgs": { |
| 19 | 4 | "locked": { |
| 20 | 5 | "lastModified": 1742707865, |
| @@ -33,7 +18,6 @@ | ||
| 33 | 18 | }, |
| 34 | 19 | "root": { |
| 35 | 20 | "inputs": { |
| 36 | - "nix-filter": "nix-filter", | |
| 37 | 21 | "nixpkgs": "nixpkgs", |
| 38 | 22 | "rust-overlay": "rust-overlay" |
| 39 | 23 | } |
flake.nixmodified+9 -11
| @@ -4,7 +4,6 @@ | ||
| 4 | 4 | |
| 5 | 5 | inputs = { |
| 6 | 6 | nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; |
| 7 | - nix-filter.url = "github:numtide/nix-filter"; | |
| 8 | 7 | |
| 9 | 8 | # NOTE: This is not necessary for end users |
| 10 | 9 | # You can omit it with `inputs.rust-overlay.follows = ""` |
| @@ -18,7 +17,6 @@ | ||
| 18 | 17 | { |
| 19 | 18 | self, |
| 20 | 19 | nixpkgs, |
| 21 | - nix-filter, | |
| 22 | 20 | rust-overlay, |
| 23 | 21 | }: |
| 24 | 22 | let |
| @@ -50,16 +48,16 @@ | ||
| 50 | 48 | pname = "niri"; |
| 51 | 49 | version = self.shortRev or self.dirtyShortRev or "unknown"; |
| 52 | 50 | |
| 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 | |
| 62 | 59 | ./Cargo.toml |
| 60 | + ./Cargo.lock | |
| 63 | 61 | ]; |
| 64 | 62 | }; |
| 65 | 63 |