mirror of
https://github.com/Mic92/sops-nix.git
synced 2026-02-04 03:53:50 +08:00
add a release.nix
This commit is contained in:
parent
4a41039ab3
commit
71db50d5eb
2 changed files with 14 additions and 1 deletions
13
release.nix
Normal file
13
release.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# 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 <nixpkgs> {} }:
|
||||
|
||||
pkgs.lib.filter (p:
|
||||
(builtins.isAttrs p)
|
||||
&& !((builtins.hasAttr "meta" p)
|
||||
&& (((builtins.hasAttr "broken" p.meta) && (p.meta.broken))
|
||||
|| (builtins.hasAttr "available" p.meta && !p.meta.available))
|
||||
&& !((builtins.hasAttr "disabled" p) && (p.disabled))))
|
||||
(pkgs.lib.collect (pkgs.lib.isDerivation) (import ./default.nix { inherit pkgs; }))
|
||||
Loading…
Add table
Add a link
Reference in a new issue