diff options
| author | seth <[email protected]> | 2024-07-22 02:57:42 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-07-22 02:57:42 -0400 |
| commit | 8160024f34c51057c8c2956113da6a3974d931d6 (patch) | |
| tree | ea6ee408285956366e7031a35e135cccc44cd7b3 /flake.nix | |
| parent | 0bf7c814c371092f20cd2219e94505ad2def001f (diff) | |
drop clippy-sarif
it's been merged into nixpkgs
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -45,15 +45,16 @@ let pkgs = nixpkgsFor.${system}; - /* - this filters out packages that may be broken or not supported - on the current system. packages that have no `broken` or `platforms` - meta attribute are assumed to be valid - */ - isValid = - _: v: lib.elem pkgs.system (v.meta.platforms or [ pkgs.system ]) && !(v.meta.broken or false); + isAvailable = lib.meta.availableOn { inherit system; }; - pkgs' = lib.filterAttrs isValid (import ./. { inherit pkgs; }); + pkgs' = lib.filterAttrs (lib.const isAvailable) ( + import ./. { + inherit system; + inherit nixpkgs; + inherit pkgs; + inherit (pkgs) lib; + } + ); in pkgs' // { default = pkgs'.treefetch; } ); |
