3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/doc
Artturin 0fdae31531 stdenv: let overrideAttrs accept attrset OR function
Makes overrideAttrs usable in the same way that `override` can be used.
It allows the first argument of `overrideAttrs` to be either a function
or an attrset, instead of only a function:

hello.overrideAttrs (old: { postBuild = "echo hello"; })
hello.overrideAttrs { postBuild = "echo hello"; }

Previously only the first example was possible.

Co-authored-by: adisbladis <adisbladis@gmail.com>
Co-authored-by: matthewcroughan <matt@croughan.sh>
2023-06-30 23:28:00 +03:00
..
build-aux/pandoc-filters treewide: switch builtins.fromJSON(builtins.readFile ./file.json) to lib.importJSON ./file.json #2 2023-05-06 16:20:13 +02:00
builders doc: normalize markdown for nixos-render-docs 2023-06-10 18:17:05 +02:00
contributing doc/contributing/review-contributions: fix small typo (#237186) 2023-06-11 14:54:35 +02:00
doc-support lib/modules: Move class out of specialArgs 2023-05-06 18:32:58 +02:00
functions doc: correct typos and spelling (#237098) 2023-06-11 02:15:43 +02:00
hooks doc: make sure section depths are consecutive 2023-06-10 18:17:04 +02:00
languages-frameworks buildDotnetGlobalTool: document dotnet global tools and their packaging 2023-06-20 17:20:52 +02:00
module-system lib.modules: configurationClass -> class 2023-05-06 18:32:59 +02:00
old
stdenv Merge pull request #237068 from pennae/manual-normalization 2023-06-13 07:35:06 +02:00
using stdenv: let overrideAttrs accept attrset OR function 2023-06-30 23:28:00 +03:00
.gitignore
default.nix doc: stub out epub manual 2023-06-12 17:50:52 +02:00
functions.xml
Makefile doc: stub out epub manual 2023-06-12 17:50:52 +02:00
manpage-urls.json
manual.xml doc: Add Module System chapter start 2023-05-06 18:29:05 +02:00
overrides.css
preface.chapter.md
README.md
shell.nix
style.css

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.