diff --git a/doc/release-notes/rl-2511.section.md b/doc/release-notes/rl-2511.section.md index a3a411a52d2bc..65d6568d97853 100644 --- a/doc/release-notes/rl-2511.section.md +++ b/doc/release-notes/rl-2511.section.md @@ -100,6 +100,8 @@ - New hardening flags, `strictflexarrays1` and `strictflexarrays3` were made available, corresponding to the gcc/clang options `-fstrict-flex-arrays=1` and `-fstrict-flex-arrays=3` respectively. +- New package set variant `pkgsUnfree` has the same effect as using `config.allowUnfree = true;`, allowing for pure evaluation of unfree packages, for example: `pkgsUnfree.hello-unfree`. + - `gramps` has been updated to 6.0.0 Upstream recommends [backing up your Family Trees](https://gramps-project.org/wiki/index.php/Gramps_6.0_Wiki_Manual_-_Manage_Family_Trees#Backing_up_a_Family_Tree) before upgrading. diff --git a/doc/using/configuration.chapter.md b/doc/using/configuration.chapter.md index 94dd11d5c7d9f..3965bd556d7c8 100644 --- a/doc/using/configuration.chapter.md +++ b/doc/using/configuration.chapter.md @@ -128,6 +128,12 @@ There are several ways to tweak how Nix handles a package which has been marked A complete list of licenses can be found in the file `lib/licenses.nix` of the nixpkgs tree. +- Use the `pkgsUnfree` variant: + + ```ShellSession + $ nix-build -A pkgsUnfree.hello-unfree + ``` + ## Installing insecure packages {#sec-allow-insecure} There are several ways to tweak how Nix handles a package which has been marked as insecure. diff --git a/pkgs/top-level/variants.nix b/pkgs/top-level/variants.nix index fb4890910cdfb..e3e713a217922 100644 --- a/pkgs/top-level/variants.nix +++ b/pkgs/top-level/variants.nix @@ -23,6 +23,14 @@ let ); in self: super: { + + # Full package set with unfree packages enabled. + pkgsUnfree = nixpkgsFun { + config = super.config // { + allowUnfree = true; + }; + }; + pkgsLLVM = nixpkgsFun { overlays = [ (self': super': {