summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-07-22 02:57:42 -0400
committerseth <[email protected]>2024-07-22 02:57:42 -0400
commit8160024f34c51057c8c2956113da6a3974d931d6 (patch)
treeea6ee408285956366e7031a35e135cccc44cd7b3 /flake.nix
parent0bf7c814c371092f20cd2219e94505ad2def001f (diff)
drop clippy-sarif
it's been merged into nixpkgs
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix17
1 files changed, 9 insertions, 8 deletions
diff --git a/flake.nix b/flake.nix
index 37b0a77..a9e8876 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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; }
);