1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-10 20:46:01 +01:00
Commit graph

2543 commits

Author SHA1 Message Date
John Ericson
cba35b182d
Update doc/manual/source/store/drv.md
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2025-02-09 19:59:10 -05:00
John Ericson
9847acc049 Move up system
match new TOC.
2025-02-09 19:55:09 -05:00
John Ericson
ea21555b32 More RFC 92 2025-02-09 19:48:17 -05:00
John Ericson
1e2dfcec79
Apply suggestions from code review
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2025-02-09 19:42:05 -05:00
John Ericson
298d199b89
Apply suggestions from code review
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2025-02-09 19:10:21 -05:00
John Ericson
094d352847
Apply suggestions from code review
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2025-02-09 18:52:47 -05:00
John Ericson
54d684e1de Call it "store derivation", again, but keep "derivation expression"
A compromise that also should cut down on the diff.
2025-02-05 22:03:43 -05:00
John Ericson
f003b8ca92 Merge branch 'master' into document-derivation-and-deriving-path 2025-02-05 21:35:00 -05:00
John Ericson
243467e14b More debugging documentation
There are a few things I think people should know, post-Meson.
2025-02-03 10:08:13 -05:00
Robert Hensing
96e550efc5 Format .nix files
... with nixfmt (rfc style)
2025-01-24 17:04:02 +01:00
Robert Hensing
ba6425a7d0 dev: Configure nixfmt (rfc style) 2025-01-24 17:02:50 +01:00
Robert Hensing
ace52b10c9 doc/building: Update for #11799
Reflect the shorter attribute name, changed in
f168a6e739
https://github.com/NixOS/nix/pull/11799
2025-01-24 12:41:26 +01:00
Eelco Dolstra
21f2e29176 Add release credits 2025-01-22 12:01:00 +01:00
Eelco Dolstra
617bf84518 Add a few more release notes 2025-01-22 11:55:20 +01:00
Eelco Dolstra
d8dbb71c92 release notes: 2.26.0 2025-01-22 11:45:04 +01:00
John Ericson
b027e22758 Fix missing link 2025-01-20 16:57:52 -05:00
John Ericson
3a3f6adde2 Rework "Processing outputs" slightly 2025-01-20 16:57:29 -05:00
John Ericson
f2d5be95cc Remove store-layer __structuredAttrs docs
It is too much of an explanation. There are other docs we can move here
later in the language section already.
2025-01-20 13:34:00 -05:00
John Ericson
f3fa9cfa1d Clean out some TODOs
More can be written, but this will do for now.
2025-01-20 13:20:19 -05:00
John Ericson
3d3a86dae7 Merge branch 'master' into document-derivation-and-deriving-path 2025-01-20 13:11:30 -05:00
John Ericson
e409ea77d0
Apply suggestions from code review
Thanks!!

Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2025-01-20 12:56:22 -05:00
Ilja Kotirinta
c59aa3ec87 Remove character not needed for a command 2025-01-20 14:03:29 +02:00
John Ericson
05a38b8dad Further reworking 2025-01-19 19:10:41 -05:00
John Ericson
0cd1e7828d Change deriving path pseudo-code 2025-01-19 17:50:24 -05:00
John Ericson
fb7fc6a373 Fix another URL in the docs 2025-01-19 17:47:47 -05:00
John Ericson
e77338d875 Fix redirects more 2025-01-19 17:34:52 -05:00
John Ericson
80e69428a8 Fix redirect 2025-01-19 17:32:10 -05:00
John Ericson
624690100d Formatting example 2025-01-19 15:17:12 -05:00
John Ericson
96a46f9995 Move builder execution to store layer
It is not a language topic.
2025-01-19 15:16:42 -05:00
John Ericson
87c559e4aa More doc improvements 2025-01-19 14:58:38 -05:00
John Ericson
4b9fb54957 Derivation doc improvements 2025-01-19 13:07:37 -05:00
John Ericson
4b29ca8476 Fix typo 2025-01-19 12:18:54 -05:00
John Ericson
16bd5a44ef Merge branch 'master' into document-derivation-and-deriving-path 2025-01-19 11:45:55 -05:00
Eelco Dolstra
17b6557c03
Merge pull request #12275 from andrewhamon/ah/set-priority-nix-env-install
nix-env: add a --priority flag to --install
2025-01-16 22:04:35 +01:00
Andy Hamon
3716ded8df nix-env: add a --priority flag to --install
nix-env can read priorities from a derivations meta attributes, but this
only works when installing a nix expression.

nix-env can also install bare store paths, however meta attributes are
not readable in that case. This means that a store path can not be
installed with a specific priority.

Some cases where it is advantageous to install a store path: a remote
host following a `nix copy`, or any time you want to save some
evaluation time and happen to already know the store path.

This PR addresses this shortcoming by adding a --priority flag to
nix-env --install.
2025-01-16 11:46:25 -08:00
Eelco Dolstra
db46d40b12 Update release note 2025-01-16 13:15:20 +01:00
Eelco Dolstra
6cc5b48a29 Add release note 2025-01-14 14:51:49 +01:00
Domagoj Mišković
5230d3ecc4
Document --max-freed for nix-collect-garbage (#12155)
* Update nix-collect-garbage.md

Referencing issue at: https://github.com/NixOS/nix/issues/12132

Copied the description of `--max-freed` option from 442a2623e4/doc/manual/source/command-ref/nix-store/gc.md (L39-L44)
2025-01-08 14:20:44 +01:00
Domagoj Mišković
3a5fccc418
outdated building instructions, update documentation.md
The current instructions for building the Nix manual include a command that doesn't work as described. Specifically:

```
nix build .#nix^doc
```

Running this command results in the error:

```
error: derivation '/nix/store/hddqxzfqgx2fhj8q66ss3idym7pk7aj1-nix-2.26.0pre20250107_383ab87.drv' does not have wanted outputs 'doc'
```

However, this command works if you specify the Nix version explicitly, such as:

```
nix build nix/2.24.11#nix^doc
```

Additionally, these commands are run within the Nix root directory. 

However, the nix build .#nix^doc command does work when run from the nixpkgs directory and generates the NixOS manual.

I'm not sure if I'm missing something. Is the `nix^doc` supposed to be added somehow to flake outputs?

The incremental build section does not work since as make has been decommissioned in favor of Meson. Should this be simply deleted?
2025-01-08 09:42:26 +01:00
Robert Hensing
91e91f62fa doc: Document nix-store --add-fixed symlink behavior
Tested with

    nix run nix/2.3-maintenance#nix-store -- --add some_symlink
    nix run nix/2.3-maintenance#nix-store -- --add-fixed sha256 --recursive some_symlink
2025-01-07 05:42:03 +00:00
Jörg Thalheim
5ebc8d4960
Merge pull request #12109 from trueNAHO/workflows-lock-ubuntu-and-macos-runners-and-update-ubuntu-runner
ci: lock Ubuntu and macOS runners and update Ubuntu runner
2025-01-02 00:20:32 +01:00
mergify[bot]
18f077035a
Merge pull request #12119 from not-my-profile/nix-instantiate-raw
Implement --raw for nix-instantiate --eval
2024-12-31 16:55:15 +00:00
Martin Fischer
7a8a28629c feat(nix-instantiate): add --raw flag
The experimental `nix eval` command already supports a `--raw` flag.
This commit implements the same flag for the stable nix-instantiate command.

Until now instructions and scripts that didn't want to rely on experimental
features had to use workarounds such as:

    nix-instantiate --eval <something> | tr -d \"

(which also undesirably also removes double quotation marks within the string), or

    nix-instantiate --eval <something> | jq -j

(which undesirably depends on another package).

Co-authored-by: Silvan Mosberger <silvan.mosberger@tweag.io>
2024-12-31 16:36:49 +01:00
NAHO
ce1e9ba85a
ci: lock macOS runner to macos-14 2024-12-29 00:04:44 +01:00
NAHO
b5f10655ed
ci: update Ubuntu runner to ubuntu-24.04
Link: https://github.com/actions/runner-images/issues/10636
2024-12-29 00:04:44 +01:00
NAHO
fe5f02c2c2
ci: lock Ubuntu runner to ubuntu-22.04
Lock the Ubuntu runner to ubuntu-22.04 to avoid accidental updates [1]
and increase reproducibility.

[1]: https://github.com/actions/runner-images/issues/10636
2024-12-27 02:20:48 +01:00
Jörg Thalheim
2512619cb6 switch to lowdown-unsandboxed package
This is needed for macos support as the sandboxed version of lowdown
doesn't work in the nix sandbox.
2024-12-16 16:50:59 +01:00
mergify[bot]
2f32cf6d90
Merge pull request #12068 from Mic92/ignore-local-registries
Ignore local registries for lock file generation
2024-12-16 09:22:10 +00:00
Eelco Dolstra
7ddf7300b5 Ignore local registries for lock file generation
When resolving indirect flake references like `nixpkgs` in `flake.nix`
files, Nix will no longer use the system and user flake registries. It
will only use the global flake registry and overrides given on the
command line via `--override-flake`.
2024-12-16 09:43:44 +01:00
Eli Kogan-Wang
366611391e Implement shellSplitString for proper handling of NIX_SSHOPTS with spaces and quotes 2024-12-14 15:54:16 +00:00