nur/non-broken.nix
Francesco Gazzetta dd95bed0d8 Initial commit
Extracted the skeleton from https://github.com/fgaz/nur-packages.git
2018-07-16 14:18:20 +02:00

25 lines
737 B
Nix

# 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.
let filterSet =
(f: s: builtins.listToAttrs
(map
(n: { name = n; value = builtins.getAttr n s; })
(builtins.filter
(n: f (builtins.getAttr n s))
(builtins.attrNames s)
)
)
);
in filterSet
(p: (builtins.isAttrs p)
&& !(
(builtins.hasAttr "meta" p)
&& (builtins.hasAttr "broken" p.meta)
&& (p.meta.broken)
)
)
(import ./standalone.nix)