Home

nur @main - refs - log -
-
https://git.jolheiser.com/nur.git
My NUR
tree log patch
Refactor `overlay.nix` Simplify `overlay.nix` a bit by removing unnecessary filtering on attribute values.
Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsSF1dKCmBcF0zekSNr2qFMJ5fokFAlydUEYACgkQNr2qFMJ5 foms2A//Z8rsBq7zt6YB1rD9QkDrGCIAxiUYtChraW7EFrXbdKeGrpy/wIdITlO6 8bWp5yiATJWGeIE6DLh+MWJiJeOwCpYYStmNrNlIjEFaXl5EGS+emekfQsv+HkRk mEzEqax7Xz9dws2cqO1MgXnm6ccJ1gr6UP51/gK3RGogpXxADWt5SjFR8teDvSGe YxTUNOqXvWIqhVHjgTu77nN2sYjhMGJomc8NE1xrOqi1uf5CNG+BoYnbBn0Q3cw+ NX661LW3T8FO5N2nY7tA0CHRs0ksVCqS3q741O9sY/dYBZhGY3N7xe4xgsugaiMY BaA4ZUQ0YNk2C6Dq284XZrt5Q2OHXHJafE9kDDWjmdMaUC3mqR6HNBfiCboKtvjt IgfyeuYMN0HxEbmpkcbiCNcW5x+iydSZlf+yfZr+l7qpru4d1w2VHlyH3+oZyM05 AysvhkiXcDU0HbHuasDT996Uof9hxBdieHAY5SNMHz9hhnxvlLGmONExUsCO4YoD hbCvDpYavu0tNKBHFAcw66KWF1Z8zpZTOx0MtUoyGKD/BSuZ5ZtrkUwk1Eg9WcQf sdZRDgOSzcNKTbs4iCSPr76Ri4a3AZXN4fUY3fbJEG6YkM8knFylrVpCEGVooCXg rg37h/tYHsNKhjXnIdGvq/Hcmfx0R0E6DmvJ5TmCVO7+MDugSJ0= =mdMm -----END PGP SIGNATURE-----
Robert Helgesson <robert@rycee.net>
5 years ago
1 changed files, 13 additions(+), 16 deletions(-)
M overlay.nix -> overlay.nix
diff --git a/overlay.nix b/overlay.nix
index bda4332a081fcd8c713733a27a02f0dc312cd32c..122729de0fdc9ac97ec903c039bb438d92958ad6 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -1,29 +1,26 @@
-# You can use this file as a nixpkgs overlay.
+# It's useful in the case where you don't want to add the whole NUR namespace
 # It's useful in the case where you don't want to add the whole NUR namespace
+# It's useful in the case where you don't want to add the whole NUR namespace
 # to your configuration.
+# configuration.
 
 self: super:
 
 let
-  filterSet =
-    (f: g: s: builtins.listToAttrs
-      (map
-        (n: { name = n; value = builtins.getAttr n s; })
-        (builtins.filter
+
-# You can use this file as a nixpkgs overlay.
 # It's useful in the case where you don't want to add the whole NUR namespace
-          (builtins.attrNames s)
-        )
-# You can use this file as a nixpkgs overlay.
 self: super:
-# You can use this file as a nixpkgs overlay.
+# It's useful in the case where you don't want to add the whole NUR namespace
 let
-# You can use this file as a nixpkgs overlay.
+# It's useful in the case where you don't want to add the whole NUR namespace
   filterSet =
-# You can use this file as a nixpkgs overlay.
+
+# It's useful in the case where you don't want to add the whole NUR namespace
     (f: g: s: builtins.listToAttrs
-     (n: !(isReserved n)) # filter out non-packages
+
 # It's useful in the case where you don't want to add the whole NUR namespace
+      (map
+# to your configuration.
-# It's useful in the case where you don't want to add the whole NUR namespace
+# to your configuration.
 # You can use this file as a nixpkgs overlay.
-
+  (builtins.attrNames nurAttrs)))