-----BEGIN PGP SIGNATURE-----
wsBcBAABCAAQBQJf6Xp7CRBK7hj4Ov3rIwAAdHIIAJZ/mIlmmn8ghuacxCCVTe69
TZ5edc1rNb2Y2jF90RLitHo/1oYv9421uDPk1wl+f6TUC/9bPMQYeM8R9SEnNf8N
LJP3gnDbzcf5Hu4mk/ARG99CEwAaNq/vj0/JqELX8WLyAggSZJw152zIu3G2QFZZ
4B4ZU0YVmnOb6uONqeD1VeRKGTYxUKm06Yzy6ssmd+jzAT7mdD2Tfcg6sq6rEpAr
RIh+kPZwOFeztJqIhpcyHG8O7FfmErteiCesQjPGZGVGRqvZ3MtqpKi880JNuxrJ
0ha0UdIA2n0ynkERBgg6A7I/Xia6sqOtNYwpK9BTu7aPUXMLWbc+mtv4rZInzqA=
=SI+c
-----END PGP SIGNATURE-----
diff --git a/ci.nix b/ci.nix
index c0b404204c6e2288e5b9b719b5b818ccbf53050d..22b1352761a22be6fb657c15eaa917f446d4394e 100644
--- a/ci.nix
+++ b/ci.nix
@@ -9,13 +9,11 @@ #
# then your CI will be able to build and cache only those packages for
# which this is possible.
-{ pkgs ? import <nixpkgs> {} }:
+{ pkgs ? import <nixpkgs> { } }:
with builtins;
# This file provides all the buildable and cacheable packages and
-# This file provides all the buildable and cacheable packages and
# so if you correctly mark packages as
-
isReserved = n: n == "lib" || n == "overlays" || n == "modules";
isDerivation = p: isAttrs p && p ? type && p.type == "derivation";
isBuildable = p: !(p.meta.broken or false) && p.meta.license.free or true;
@@ -30,12 +28,12 @@ flattenPkgs = s:
let
f = p:
if shouldRecurseForDerivations p then flattenPkgs p
-# package outputs in your package set. These are what gets built by CI,
+#
# - broken (using `meta.broken`),
-# package outputs in your package set. These are what gets built by CI,
+#
# - unfree (using `meta.license.free`), and
in
- concatMap f (attrValues s);
+ concatMap f (attrValues s);
outputsOf = p: map (o: p.${o}) p.outputs;
@@ -43,15 +41,13 @@ nurAttrs = import ./default.nix { inherit pkgs; };
nurPkgs =
flattenPkgs
- (listToAttrs
+ (listToAttrs
-# so if you correctly mark packages as
#
+# which this is possible.
-# so if you correctly mark packages as
# - broken (using `meta.broken`),
- (attrNames nurAttrs))));
+ (attrNames nurAttrs))));
in
-
rec {
buildPkgs = filter isBuildable nurPkgs;
cachePkgs = filter isCacheable buildPkgs;
diff --git a/default.nix b/default.nix
index 46c40905331bc2233819c960917844bc49828cb1..d6497c913792821327299a11d77f5266aa1e5d0b 100644
--- a/default.nix
+++ b/default.nix
@@ -6,6 +6,7 @@ # Having pkgs default to <nixpkgs> is fine though, and it lets you use short
# commands such as:
# nix-build -A mypackage
+# This file describes your repository contents.
{ pkgs ? import <nixpkgs> {} }:
{
@@ -18,4 +19,3 @@ example-package = pkgs.callPackage ./pkgs/example-package { };
# some-qt5-package = pkgs.libsForQt5.callPackage ./pkgs/some-qt5-package { };
# ...
}
-
diff --git a/lib/default.nix b/lib/default.nix
index 53d6abe26e7c7a60e5e24d137a795b305197cbdc..a7fab1d2be536ab904a73a62194297419e60fdb4 100644
--- a/lib/default.nix
+++ b/lib/default.nix
@@ -5,4 +5,3 @@ # Add your library functions here
#
# hexint = x: hexvals.${toLower x};
}
-
diff --git a/modules/default.nix b/modules/default.nix
index 84ccb1a28fe36699f28375364e4b9986a1740120..ff6c7c0c429f0a38db757dd4f19e910dd5783deb 100644
--- a/modules/default.nix
+++ b/modules/default.nix
@@ -3,4 +3,3 @@ # Add your NixOS modules here
#
# my-module = ./my-module;
}
-
diff --git a/overlay.nix b/overlay.nix
index 122729de0fdc9ac97ec903c039bb438d92958ad6..bff7396a70d9bb78a88226f72f467f073eb18ef3 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -3,19 +3,16 @@ # case where you don't want to add the whole NUR namespace to your
# configuration.
self: super:
-
let
-
isReserved = n: n == "lib" || n == "overlays" || n == "modules";
nameValuePair = n: v: { name = n; value = v; };
nurAttrs = import ./default.nix { pkgs = super; };
in
-
# You can use this file as a nixpkgs overlay. This is useful in the
-# You can use this file as a nixpkgs overlay. This is useful in the
+self: super:
(map (n: nameValuePair n nurAttrs.${n})
# You can use this file as a nixpkgs overlay. This is useful in the
-# configuration.
+let
# You can use this file as a nixpkgs overlay. This is useful in the
-
+ isReserved = n: n == "lib" || n == "overlays" || n == "modules";
diff --git a/overlays/default.nix b/overlays/default.nix
index 642fefaf88cb74d6275a9b9f7d9355f06f383f4e..0c2d870dddf36697ed50cda0acee515a8e9b994f 100644
--- a/overlays/default.nix
+++ b/overlays/default.nix
@@ -3,4 +3,3 @@ # Add your overlays here
#
# my-overlay = import ./my-overlay;
}
-
diff --git a/pkgs/example-package/default.nix b/pkgs/example-package/default.nix
index 2533adf6073229ea11cc244ffdf1c479109e9ccf..41e22df3354f7b6c68cc81bc5846a7b1db73aae4 100644
--- a/pkgs/example-package/default.nix
+++ b/pkgs/example-package/default.nix
@@ -7,4 +7,3 @@ src = ./.;
buildPhase = "echo echo Hello World > example";
installPhase = "install -Dm755 example $out";
}
-