diff options
author | zimbatm <zimbatm@zimbatm.com> | 2024-09-18 09:38:29 +0000 |
---|---|---|
committer | zimbatm <zimbatm@zimbatm.com> | 2024-09-18 09:38:29 +0000 |
commit | 0632ba36d5fceeef31b1600a9ef8ed7eb6379f3d (patch) | |
tree | 6cd0e98b74ab48e01bcdb762dac885b751e0c3b4 | |
parent | b59601bc5831823afafb75bff1d39146a84b8695 (diff) |
fixup! release-unfree: init nixpkgs-unfree-release
-rw-r--r-- | pkgs/top-level/release-unfree.nix | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/pkgs/top-level/release-unfree.nix b/pkgs/top-level/release-unfree.nix index b8fc4b26a6685..e4ead81e94ea7 100644 --- a/pkgs/top-level/release-unfree.nix +++ b/pkgs/top-level/release-unfree.nix @@ -1,11 +1,17 @@ /* - Nixpkgs unfree packages + Nixpkgs unfree packages. - This release file is currently not tested on hydra.nixos.org - because it requires unfree software, but it is tested by - <https://hydra.nix-community.org/jobset/nixpkgs/unfree>. + This release file MUST NOT be used by <https://hydra.nixos.org>. Please + check with your lawyers before using this file. - Cf. https://github.com/nix-community/infra/pull/1406 + This file is used by the sister nix-community project. Our intent is to + test all the code paths of nixpkgs. To contact us, send an email to + <admin@nix-community.org> + + See also: + + * <https://hydra.nix-community.org/jobset/nixpkgs/unfree> + * <https://github.com/nix-community/infra/pull/1406> Test for example like this: @@ -48,7 +54,7 @@ let lib.mapAttrs ( name: value: let - attrPath = "${prefix}.${name}"; + attrPath = if prefix == "" then name else "${prefix}.${name}"; res = builtins.tryEval ( if lib.isDerivation value then lib.optionals (cond attrPath value) ( @@ -91,12 +97,11 @@ let (isUnfree pkg) && (isSource pkg) && (canSubstituteSrc pkg) - && (isNotCudaPackage attrPath) && ( full || # We only build these heavy packages on releases - (isNotLinuxKernel attrPath) + ((isNotCudaPackage attrPath) && (isNotLinuxKernel attrPath)) ); packages = packagesWith "" cond pkgs; |