From 6f2405751cdbd6c76e82174c4e676fcd42932ebe Mon Sep 17 00:00:00 2001 From: Jonas Nick Date: Tue, 2 Apr 2019 15:43:54 +0000 Subject: [PATCH] Remove non-broken.nix --- non-broken.nix | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 non-broken.nix diff --git a/non-broken.nix b/non-broken.nix deleted file mode 100644 index b9a2cf9..0000000 --- a/non-broken.nix +++ /dev/null @@ -1,27 +0,0 @@ -# This file filters out all the broken packages from your package set. -# It's what gets built by CI, so if you correctly mark broken packages as -# broken your CI will not try to build them and the non-broken packages will -# be added to the cache. -{ pkgs ? import {} }: - -let filterSet = - (f: g: s: builtins.listToAttrs - (map - (n: { name = n; value = builtins.getAttr n s; }) - (builtins.filter - (n: f n && g (builtins.getAttr n s)) - (builtins.attrNames s) - ) - ) - ); -in filterSet - (n: !(n=="lib"||n=="overlays"||n=="modules")) # filter out non-packages - (p: (builtins.isAttrs p) - && !( - (builtins.hasAttr "meta" p) - && (builtins.hasAttr "broken" p.meta) - && (p.meta.broken) - ) - ) - (import ./default.nix { inherit pkgs; }) -