nixpkgs/doc
Alyssa Ross b0b5ef7286 stdenv: introduce dontAddStaticConfigureFlags
With removeUnknownConfigureFlags, it's impossible to express a package
that needs --enable-static, but will not accept --disable-shared,
without overriding the result of removeUnknownConfigureFlags _again_
in pkgs/top-level/static.nix.

It would be much better (and more in line with the rest of Nixpkgs) if
we encoded changes needed for static builds in package definitions
themselves, rather than in an ever-expanding list in static.nix.  This
is especially true when doing it in static.nix is going to require
multiple overrides to express what could be expressed with stdenv
options.

So as a step in that direction, and to fix the problem described
above, here I replace removeUnknownConfigureFlags with a new stdenv
option, dontAddStaticConfigureFlags.  With this mechanism, a package
that needs one but not both of the flags just needs to set
dontAddStaticConfigureFlags and then set up configureFlags manually
based on stdenv.hostPlatform.isStatic.
2021-06-11 14:16:05 -07:00
..
builders nixos/*: replace alsa* aliases 2021-06-10 09:46:55 +02:00
contributing doc/manual: Add backport criteria 2021-06-09 00:13:49 -07:00
doc-support Revert "make-tarball.nix: Restore the 'commit' field in packages.json" 2020-03-29 20:57:50 +02:00
functions doc/functions/generators: convert to CommonMark 2021-06-11 06:06:42 -07:00
languages-frameworks doc: prepare for commonmark 2021-06-07 06:34:59 +02:00
old doc/*: editorconfig fixes 2020-07-31 15:06:53 +10:00
stdenv stdenv: introduce dontAddStaticConfigureFlags 2021-06-11 14:16:05 -07:00
using doc: Use markdown syntax for xrefs 2021-06-07 06:34:59 +02:00
.gitignore doc: format the documentation (#57102) 2019-03-08 21:07:11 -08:00
default.nix doc: Fix make in nix-shell 2021-06-05 13:25:48 +02:00
functions.xml doc/functions/generators: convert to CommonMark 2021-06-11 06:06:42 -07:00
labelless-link-is-xref.lua doc: Use markdown syntax for xrefs 2021-06-07 06:34:59 +02:00
Makefile doc: Use markdown syntax for xrefs 2021-06-07 06:34:59 +02:00
manual.xml doc/using: convert to markdown 2021-04-23 12:02:07 +02:00
overrides.css doc: Make callout marks in code unselectable 2020-01-14 15:24:57 +01:00
preface.chapter.md doc: prepare for commonmark 2021-06-07 06:34:59 +02:00
README.md doc/README.md: Add more links 2021-03-06 12:35:33 +01:00
release-notes.xml treewide: use https for nixos.org and hydra.nixos.org 2020-05-03 22:14:21 -07:00
shell.nix doc: fix shell.nix (#109816) 2021-01-19 12:46:51 -05:00
style.css manual: limit text width 2019-01-08 15:08:42 +00:00

Nixpkgs/doc

This directory houses the sources files for the Nixpkgs manual.

You can find the rendered documentation for Nixpkgs unstable on nixos.org.

Docs for Nixpkgs stable are also available.

If you want to contribute to the documentation, here's how to do it.

If you're only getting started with Nix, go to nixos.org/learn.