Skip to content

Commit

Permalink
docs: don't set allowUnfree
Browse files Browse the repository at this point in the history
We shouldn't be evaluating any packages, so we shouldn't need
`allowUnfree`.
  • Loading branch information
MattSturgeon committed Jan 25, 2025
1 parent 796ace6 commit 0b4a4e8
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions docs/pkgs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
nixpkgs,
}:
let
# FIXME:
# Building the docs evaluates many package-option defaults, some of which are unfree.
# This usually happens when we include the package option value in another option's default without
# using a literalExpression defaultText.
config = {
allowUnfree = true;
};

# Extend nixpkg's lib, so that we can handle recursive leaf types such as `either`
libOverlay = final: prev: {
types = prev.types // {
Expand Down Expand Up @@ -46,6 +38,6 @@ let

in
import nixpkgs {
inherit config system;
inherit system;
overlays = [ overlay ];
}

0 comments on commit 0b4a4e8

Please sign in to comment.