Navigation Menu

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

cmake-manpages: init #82720

Closed
wants to merge 1 commit into from
Closed

cmake-manpages: init #82720

wants to merge 1 commit into from

Conversation

teto
Copy link
Member

@teto teto commented Mar 16, 2020

Motivation for this change

adds a derivation to build cmake manpage. Follow up of #31344

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@@ -9971,6 +9971,9 @@ in
cmake_2_8 = callPackage ../development/tools/build-managers/cmake/2.8.nix { };

cmake = libsForQt5.callPackage ../development/tools/build-managers/cmake { };
cmake-manpages = cmake.override {
enableManpages = true; inherit (python3Packages) sphinx;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally, I don't think there should be another "build" of cmake for this. Why not enable it unconditionally? The outputs being split (should) enable users to exclude this output from being installed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there was concern on macos see the link in my first post. I would prefer to not add a new attribute too.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK I see. Then perhaps we can set the "default output" to be the output man? This way, when one installs cmake-manpages, they'll truly get only man pages in their environment - this is a bit more coherent with the attribute's name IMO. Perhaps by setting either pathsToLink under the condition of enableManpages?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, it'd be nice if this:

Enabling this by default will introduce a whole bunch of python dependencies into the darwin stdenv, we had a similar problem with llvm/clang.

(Comment by @lnl7) was explained in a comment somewhere.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Take a look at clang/llvm, that has a similar problem and we handled that with a man output in a similar way as suggested here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea I think I understand the concern, it's just that one may wonder in the future what is the story behind this so I think it'd be nice to write a 2 line comment.

@teto
Copy link
Member Author

teto commented Jun 3, 2021

closing in favor of #82720

@teto teto closed this Jun 3, 2021
@doronbehar
Copy link
Contributor

closing in favor of #82720

@teto #82720 is this PR :)

@teto
Copy link
Member Author

teto commented Jun 4, 2021

how typical, I meant #125337 thanks xD

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

4 participants