Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "nixos: doc: implement related packages in the manual" #33006

Merged
merged 1 commit into from Dec 23, 2017

Conversation

grahamc
Copy link
Member

@grahamc grahamc commented Dec 23, 2017

Reverts #32424

I'm not sure why exactly, but this is causing problems after merging that ofborg didn't catch prior to merging:

$ HOME=/homeless-shelter NIX_PATH=nixpkgs=$(pwd) nix-instantiate ./nixos/release.nix -A manual --option restrict-eval true --option build-timeout 1800 --argstr system x86_64-linux --show-trace
...
Package ‘xen-4.5.5’ in /home/grahamc/projects/nixpkgs/pkgs/applications/virtualization/xen/generic.nix:226 is not supported on ‘aarch64-linux’, refusing to evaluate.

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

@oxij I like the work and didn't want to revert it, but it wasn't clear to me how to fix it. Can you try again?

@oxij
Copy link
Member

oxij commented Dec 23, 2017 via email

@grahamc
Copy link
Member Author

grahamc commented Dec 23, 2017

It did help, maybe merge master in to your branch and try again?

@oxij
Copy link
Member

oxij commented Dec 23, 2017 via email

@oxij
Copy link
Member

oxij commented Dec 23, 2017 via email

@grahamc
Copy link
Member Author

grahamc commented Dec 23, 2017

The issue as I understand it is the manual must build for all supported systems in the release.nix:

, supportedSystems ? [ "x86_64-linux" "aarch64-linux" ]

the manual is built from a config:

manual = buildFromConfig ({ pkgs, ... }: { }) (config: config.system.build.manual.manual);

and buildFromConfig builds it for every supportedSystem:

buildFromConfig = module: sel: forAllSystems (system: hydraJob (sel (import ./lib/eval-config.nix {

where forAllSystems iterates over each supportedSystem.

Perhaps one way to handle this in the doc generation code is to handle an unsupported system and skip the package, but I don't know the best way. Out of my league too. Maybe @vcunat could provide some guidance on this.

@oxij
Copy link
Member

oxij commented Dec 23, 2017 via email

@oxij
Copy link
Member

oxij commented Dec 25, 2017 via email

@oxij
Copy link
Member

oxij commented Dec 25, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants