Commit graph

2775 commits

Author SHA1 Message Date
github-actions[bot] d49b3ff9e3
Merge staging-next into staging 2023-11-08 12:02:19 +00:00
Adam Joseph ba2ed469c2
Merge branch 'master' into staging-next 2023-11-08 06:15:46 +00:00
Artturi d24da52844
Merge pull request #265764 from amjoseph-nixpkgs/pr/pythonForBuild 2023-11-08 00:13:25 +02:00
Yueh-Shun Li 9d6da5bd1e doc: rename sub-section Recursive attributes in stdenv -> Fixed-point arguments in stdenv
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-11-07 19:58:54 +00:00
Yueh-Shun Li 8cd8a5152e doc: add introduction to build helpers
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-11-07 19:58:54 +00:00
Yueh-Shun Li 9963ad5c5f doc: builders -> build helpers to reduce ambigualty 2023-11-07 19:58:53 +00:00
Yueh-Shun Li 70f21a2136 doc: darwin.linux-builder: replace "builder" with "remote builder" 2023-11-07 19:58:52 +00:00
Yueh-Shun Li e58b71da99 doc: move section darwin-builder under chapter packages 2023-11-07 19:58:51 +00:00
Yueh-Shun Li a12beafc57 doc: move doc/builders/packages -> doc/packages 2023-11-07 19:58:51 +00:00
Vincenzo Mantova aca44fe219
texlive: document new texlive.withPackages interface (#265658) 2023-11-07 14:39:42 -05:00
Weijia Wang 8012034692 Merge branch 'staging-next' into staging 2023-11-07 03:41:49 +01:00
github-actions[bot] 38bc2a577e
Merge master into staging-next 2023-11-07 00:02:31 +00:00
Robert Hensing b6193921d0
Merge pull request #264674 from teutat3s/fix-dockertools-prefetch-example
doc: fix dockerTools nix-prefetch-docker example
2023-11-06 17:12:33 +01:00
Adam Joseph bc2d598878 treewide: change pythonForBuild to pythonOnBuildForHost 2023-11-05 17:42:12 -08:00
github-actions[bot] 5e4689f921
Merge staging-next into staging 2023-11-02 18:01:39 +00:00
github-actions[bot] 29efc257c0
Merge master into staging-next 2023-11-02 18:01:07 +00:00
Valentin Gagarin 9a49f0cb28
document differences to built-in fetchers (#263569)
* document differences to built-in fetchers

Co-authored-by: Alexander Groleau <source@proof.construction>
2023-11-02 18:27:39 +01:00
github-actions[bot] 2999b3c997
Merge staging-next into staging 2023-11-01 18:01:31 +00:00
github-actions[bot] cd7af6170b
Merge master into staging-next 2023-11-01 18:01:01 +00:00
Dmitry Kalinkin ec2e217c52
Merge pull request #250805 from xworld21/texlive-buildenv-minimal
texlive: overrideTeXConfig/withPackages
2023-11-01 13:29:10 -04:00
teutat3s e75c485fd3
doc: fix dockerTools nix-prefetch-docker example 2023-10-31 22:40:21 +01:00
Anderson Torres 54f864f5c5 doc: update meson.section.md 2023-10-30 16:32:56 -03:00
Vladimír Čunát 5c89ba8ab4
Merge branch 'master' into staging-next 2023-10-30 06:12:04 +01:00
Matthieu Coudron f15e58cbeb
luarocks-packages-update: init (#262156)
* luarocks-packages-updater: init

Goal is to make it possible to maintain out-of-tree luarocks packages
without needing to clone nixpkgs.

maintainers/scripts/update-luarocks-packages gets renamed to
pkgs/development/lua-modules/updater/updater.py

Once merged you can run for instance
nix run nixpkgs#luarocks-packages-updater -- -i contrib/luarocks-packages.csv -o contrib/generated-packages.nix

I also set the parallelism (--proc) to 1 by default else luarocks fails
because of https://github.com/luarocks/luarocks/issues/1540

* Update maintainers/scripts/pluginupdate.py

Co-authored-by: Marc Jakobi <mrcjkb89@outlook.com>

---------

Co-authored-by: Marc Jakobi <mrcjkb89@outlook.com>
2023-10-29 21:02:55 +01:00
github-actions[bot] 519b7ea0c3
Merge master into staging-next 2023-10-28 12:01:19 +00:00
Eirik Wittersø 2fd6af1929 fetchFromBittorrent: Rename to fetchtorrent 2023-10-28 11:32:10 +01:00
Weijia Wang 0fdb1ee374 doc: fix heading of mesonInstallTags 2023-10-27 16:59:43 +02:00
github-actions[bot] 08be9a9577
Merge master into staging-next 2023-10-26 12:01:25 +00:00
Valentin Gagarin 643419f02b
Merge pull request #258595 from fricklerhandwerk/doc-emscripten
Emscripten docs: reword and remove mention of `nix-env`
2023-10-26 13:34:15 +02:00
Vladimír Čunát d811555465
Merge branch 'staging' into staging-next 2023-10-26 10:36:50 +02:00
Stel Abrego 5452afb039 doc: use lib.fakeHash with buildGoModule to get vendorHash
lib.fakeSha256 results in `error: hash <fake_hash> does not include a
type, nor is the type otherwise known from context`.
2023-10-24 14:47:23 -07:00
Florian Klink 87896bfdd1
Merge pull request #261798 from blitz/systemd-minimization
Avoid Two Sets of systemd Binaries in System Closure
2023-10-24 18:51:28 +03:00
Silvan Mosberger 200aa0366f
Merge pull request #262301 from ShamrockLee/doc-lib-customisation
Generate and refine documentation for `lib.customisation`
2023-10-24 02:38:34 +02:00
github-actions[bot] df9eab6771
Merge staging-next into staging 2023-10-23 00:03:00 +00:00
Jade Lovelace 0504bc63e4
doc/stdenv: rewrite manual build procedure to be closer to an auto-build (#262137)
* doc/stdenv: rewrite manual build procedure to be closer to an auto-build

This is based on
<https://jade.fyi/blog/building-nix-derivations-manually/> plus some
more original research.

The previous version of this section did not work for your choice of
simple Haskell package, e.g. haskellPackages.hscolour, due to things
like `compileBuildDriverPhase` and other custom phases that it
does not address at all.

It seems more correct to use genericBuild in development to harmonize it
with what is actually done.

I feel a little bit like I am committing a sin by suggesting using the
experimental CLI in the manual (afaict I am the first to do this), but I
have given the old version of the command, and there are justifiable
reasons to do it:
* The noted limitations with env-vars are fixed. The one with the
  non-empty temp directory was one I ran into myself and oh boy was that
  not fun to debug.
* Additionally the outputs are set *before* sourcing `setup.sh`: there
  is an issue with nix-shell where the original version of `$out` winds
  up in `NIX_LDFLAGS` due to _addRpathPrefix, which means that resulting
  executables may not run properly.

It is sad that `nix develop` propagates a wrong value of `SHELL` to
builders, though. It is equally sad that `nix-shell` is essentially
abandoned upstream, with undocumented and not insignificant differences
from `nix develop`.

For the exact script differences:
17e6b85d05/src/nix-build/nix-build.cc (L516-L551)
db026103b1/src/nix/get-env.sh

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-10-23 01:53:23 +02:00
Julian Stecklina 36eff4f431 meson: introduce mesonInstallTags
Projects building with meson are currently installTargets. Map these
to install tags, which are roughly equivalent. This allows projects to
selectively install components.
2023-10-23 01:46:24 +02:00
github-actions[bot] 09fabcdc4e
Merge staging-next into staging 2023-10-22 00:03:08 +00:00
Maciej Krüger b465d339b3
Merge pull request #231483 from hacker1024/feature/flutter-on-dart
buildFlutterApplication: Wrap buildDartApplication
2023-10-21 23:42:02 +02:00
github-actions[bot] f4afba2014
Merge staging-next into staging 2023-10-21 18:01:53 +00:00
Alyssa Ross 31ebe7b459 doc: fix heading levels of Meson hook documentation
Fixes: 10f35ff05d ("meson.setupHook: prefer meson commands over ninja")
2023-10-21 15:26:27 +00:00
Martin Weinelt 7efc0b2418 doc/python: mention python313 2023-10-21 16:18:27 +02:00
hacker1024 6298ac2774 buildDartApplication: Use package override mechanism from buildFlutterApplication
This allows Dart applications to benefit from the package override system, which is useful for things like FFI dependencies.
2023-10-21 22:30:23 +11:00
Yueh-Shun Li a8d5d2f207 doc: generate documentation for lib.customisation 2023-10-20 20:58:47 +08:00
github-actions[bot] fe1d100fb0
Merge staging-next into staging 2023-10-19 12:01:37 +00:00
Robert Hensing 4b5b27c7ca
Merge pull request #260770 from hercules-ci/darwin-builder-observable
`darwin.linux-builder`: Make more observable
2023-10-19 13:26:22 +02:00
github-actions[bot] c12ce83e4e
Merge staging-next into staging 2023-10-18 18:01:38 +00:00
matthewcroughan b289b43bf8 fetchFromBittorrent: init
Adds a basic FOD Fetcher for Bittorrent that uses Transmission as a client

Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2023-10-18 14:07:42 +01:00
github-actions[bot] ba519bf3b1
Merge staging-next into staging 2023-10-17 00:02:46 +00:00
Silvan Mosberger 4fe863a485
Merge pull request #251190 from alejandrosame/docs-mention-nrd
doc manuals: add reference to nixos-render-docs
2023-10-16 20:05:56 +02:00
Robert Hensing 508c310222 darwin.linux-builder: Expose nixosConfig and nixosOptions attributes
I chose not to do nixos.{config, options} because that would make it
look too much like a configuration object, which it is not.

A configuration object I would define as for example the result of
calling NixOS, an attrset with `_type = "configuration";`.

Recreating a configuration object without evalModules is quite
feasible but not guaranteed to be correct, and not maintainable.
2023-10-12 23:10:41 +02:00