Commit Graph

51 Commits

Author SHA1 Message Date
Robert Hensing
42877a5b2c nixVersions.*.tests.srcVersion: Test that version is ${src}/.version 2024-06-28 14:41:48 +02:00
Artturin
5963e31238 nixVersions.git: 2.23.0 -> 2.23.1 (hashes)
`suffix`,`rev`, and `hash` weren't updated in the `version` update
2024-06-27 21:25:48 +03:00
Maximilian Bosch
7baa302736
nix: remove myself (ma27) from maintainer team
Using Lix now 🍦
2024-06-04 16:11:43 +02:00
Jörg Thalheim
4c289e941b nixVersions.stable: reference nix-misc in tests
This is a regression test for nix.
2024-05-30 19:11:27 +03:00
Sergei Trofimovich
55471dffe6 nixVersions.git.tests: fix the eval
Without the change the eval fails as:

    $ nix build --no-link -f. nixVersions.git.tests
           error: attribute 'nix_2_23' missing
           at pkgs/tools/package-management/nix/common.nix:252:17:
              251|     tests = {
              252|       nixi686 = pkgsi686Linux.nixVersions.${"nix_${lib.versions.major version}_${lib.versions.minor version}"};
                 |                 ^
              253|     };
           Did you mean one of nix_2_13, nix_2_20, nix_2_21, nix_2_22 or nix_2_3?

The change explicitly passes attribute name around instead of inferring
it from package version.
2024-05-24 07:29:28 +01:00
aleksana
3cdf165a27 nixVersions.nix*: correct license to lgpl21Plus
All Nix versions in Nixpkgs are licensed under LGPL v2.1 or later, see:
https://github.com/NixOS/nix/blob/2.21.2/doc/manual/src/introduction.md#license
(original path) 22d4ea7a98/doc/manual/introduction/about-nix.xml (L261)
2024-04-19 19:55:21 +08:00
Maximilian Bosch
38501b2695
nixVersions.nix_2_19: 2.19.3 -> 2.19.4
Changes: https://github.com/NixOS/nix/compare/2.19.3...2.19.4
2024-04-07 12:06:08 +02:00
PerchunPak
d1885787f6
nixVersions.nix_2_16: 2.16.2 -> 2.16.3 2024-03-17 15:59:49 +01:00
Jörg Thalheim
13efa90535 nixVersions.unstable: 2.20 -> 2.21 2024-03-11 22:25:31 +01:00
Sandro Jäckel
cbb540ed73
nixVersions.nix_2_20: init at 2.20.5
Changelog: https://github.com/NixOS/nix/blob/2.20.5/doc/manual/src/release-notes/rl-2.20.md
2024-03-07 22:28:01 +01:00
Raito Bezarius
18c338a63a nixVersions.nix*: mark affected versions as vulnerable to CVE-2024-27297
https://www.cve.org/CVERecord?id=CVE-2024-27297
https://github.com/NixOS/nix/security/advisories/GHSA-2ffj-w4mj-pg37
Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
2024-03-07 12:19:29 +01:00
Francesco Gazzetta
e9e2111b28 nix: Revert "disable documentation on risc-v"
This reverts commit 95c77f3af9.

rustc now uses LLVM 17 which includes the bugfix this was blocked on.
2024-02-19 15:13:29 +01:00
Maximilian Bosch
cde314b0c6
nix: add myself (ma27) as maintainer & codeowner
As discussed with RaitoBezarius on FOSDEM, I'm happy to assist in
maintaining the Nix packages of NixPkgs.
2024-02-06 17:55:21 +01:00
Jean-François Roche
4844b997d4 nix: fix installCheckPhase crashes on Darwin
While building nix on Darwin, I encountered an error in the `installCheckPhase`:

```
nix>     building '/private/tmp/nix-build-nix-2.17.1.drv-1/nix-test/tests/fetchurl/store/mkc9z3arar02wi5jii655cjhdinx4npy-fetchurl.sh.drv'...
nix>     waiting for children
nix>     building of '/private/tmp/nix-build-nix-2.17.1.drv-1/nix-test/tests/fetchurl/store/mkc9z3arar02wi5jii655cjhdinx4npy-fetchurl.sh.drv^out' from .drv file: read 377 bytes
nix>     objc[70707]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.
nix>     objc[70707]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
nix>     waiting for children
```

I noticed that #278802 should have addressed this problem, but it didn't.
The solution for me was to replace `yes` with `YES`.

As it turns out, most of the references to `OBJC_DISABLE_INITIALIZE_FORK_SAFETY` use `YES` instead of `yes`.

https://airflow.apache.org/blog/airflow-1.10.10/#running-airflow-on-macos
http://sealiesoftware.com/blog/archive/2017/6/5/Objective-C_and_fork_in_macOS_1013.html

The objective C code that parses the environment variable is defined in
the function `environ_init` in [here](cd5e62a559/runtime/objc-runtime.mm (L265)) and it does
`*opt->var = (0 == strcmp(value, "YES"));`.

```
% nix-info -m
 - system: `"aarch64-darwin"`
 - host os: `Darwin 21.3.0, macOS 12.2.1`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.19.2`
 - channels(hetzner): `"darwin, nixpkgs-22.05-darwin"`
 - channels(root): `"darwin, nixpkgs-23.05-darwin"`
 - nixpkgs: `/Users/hetzner/git/nixpkgs`
```
2024-01-23 11:05:12 +01:00
Bernardo Meurer
fae15249c5
Merge pull request #276892 from trofi/nix-set-pos-attribute 2024-01-15 13:05:51 -05:00
Randy Eckenrode
8dd78e6dc9
nix: fix installCheckPhase crashes on Darwin
Ensure that `OBJC_DISABLE_INITIALIZE_FORK_SAFETY=yes` is set when
starting the Nix daemon during tests, or the fetchurl.sh test will
crash trying to initialize libcurl. This is happening since IPv6 support
was enabled in https://github.com/NixOS/nixpkgs/pull/277471.

See also:
- http://sealiesoftware.com/blog/archive/2017/6/5/Objective-C_and_fork_in_macOS_1013.html
- https://github.com/NixOS/nix/pull/2674
2024-01-04 19:22:05 -05:00
Sergei Trofimovich
b88dcacafd nix: point nix edit and ofborf at the original version attribute
This way `nix edit` will just at the location close to the attribute
definition and not the common code.
2023-12-26 10:47:29 +00:00
John Ericson
ab8cf01579 rapidcheck: Use stock installation, multiple outputs
We had neglected to nice `RC_INSTALL_ALL_EXTRAS`, which will take care
of installing the "extras" for us.

Now that they are in a standard directory, we don't need to smuggle in
the extra `-I` for Nix's tests either.
2023-12-14 16:55:02 -05:00
Florian Klink
94a5cfaae6 nix_2_3: configure different maintainers 2023-11-20 01:16:08 +02:00
Raito Bezarius
37e563cbc7 nixVersions.2_3: 2.3.16 -> 2.3.17
2.3.17 became a bit more like 2.4, so a lot of the conditionals can
be dropped.

The documentation for 2.3.17 needs libxslt/libxml2 as well as the
docbook stack to render docs.

Co-Authored-By: Florian Klink <flokli@flokli.de>
2023-11-20 01:16:07 +02:00
Yureka
f732e2cbb1 nix: disable fortify hardening on musl 2023-09-06 10:42:05 +02:00
Francesco Gazzetta
e9297c8161
Merge pull request #242019 from fgaz/nix/riscv-no-docs
nix: disable documentation on risc-v
2023-08-09 12:15:50 +02:00
Francesco Gazzetta
95c77f3af9 nix: disable documentation on risc-v
mdbook fails due to a rustc bug
https://github.com/rust-lang/rust/issues/114473
2023-08-05 18:42:02 +02:00
Robert Hensing
34ee0260ec treewide: Add meta.mainProgram
Based on ofborg feedback.
Part of https://github.com/NixOS/nixpkgs/pull/246386
2023-08-01 12:21:05 +02:00
Jan Malakhovski
917e133273 nix: patchShebangs tests
Without this, building a newer nix (2.15) on an older nix (2.3) with sandboxing
enabled will fail, which is problematic for doing a self-contained update on an
older system.
2023-07-22 05:08:39 +03:00
Bernardo Meurer
94fdd2a40a
nixVersions: use hash instead of sha256 2023-05-31 11:35:00 -04:00
zowoq
a8bd0d2b2e nixVersions.nix_2_14: init at 2.14.1
https://github.com/NixOS/nix/releases/tag/2.14.0
https://github.com/NixOS/nix/releases/tag/2.14.1

rapidcheck was added in 7fe308c2f8
2023-03-02 20:58:34 +10:00
pennae
44649a53e9 nix: force make to use old-style two-pipe-fds jobserver
gcc lto-wrapper uses the make jobserver to speed up linking, and it
doesn't support the new fifo:/path style of jobserver-auth yet. it'll
still work but use only one thread, so we should stick to the old style
for now.
2023-02-09 14:51:24 +01:00
Adam Joseph
a0d2937643 nix: if isStatic && atLeast210 then --enable-embedded-sandbox-shell
This commit enables the embedded sandbox shell for static builds of nix>=2.10.
2023-01-23 12:16:58 -08:00
zowoq
3cec8c7fd5 nixVersions.nix_2_13: init at 2.13.1
https://github.com/NixOS/nix/releases/tag/2.13.0
https://github.com/NixOS/nix/releases/tag/2.13.1
2023-01-21 06:44:18 +10:00
Artturin
7e49471316 treewide: optional -> optionals where the argument is a list
the argument to optional should not be list
2022-10-10 15:40:21 +03:00
github-actions[bot]
2f49e0bb89
Merge master into staging-next 2022-09-20 18:01:23 +00:00
Sandro Jäckel
a2fc5f439a
nix: add i686 nix package to passthru tests 2022-09-12 11:29:16 +02:00
zowoq
0f64ae72ea curl: 7.84.0 -> 7.85.0
https://curl.se/changes.html#7_85_0
2022-09-03 16:08:22 +10:00
misuzu
ecd7a89a7b nix.perl-bindings: fix build on aarch64-darwin 2022-07-25 19:14:00 +03:00
Thiago Kenji Okada
3775999eff nixVersions.nix_2_10: disable LTO in static builds 2022-07-15 12:00:50 -07:00
Thiago Kenji Okada
8251e3a1fd nixVersions.nix_2_10: enable LTO in GCC builds 2022-07-15 12:00:45 -07:00
Nick Cao
18c07ad150
nixVersions.nix_2_10: workaround for installcheck 2022-07-14 23:53:29 +08:00
Domen Kožar
7434c16611 nix: patch curl netrc regression
https://github.com/curl/curl/issues/8653
2022-06-09 01:28:26 +01:00
Artturin
e8d30cd329 nixVersions: add artturin to maintainers 2022-04-12 19:03:43 +03:00
Ben Wolsieffer
9f7e505dd7 nix: make Perl bindings use matching Nix version
Previously, 'nix_2_6.perl-bindings' (for example) was built from the Nix 2.6
but linked against 'nix' (the latest version). This usually causes the build
to fail.
2022-03-20 13:49:59 -04:00
Robert Hensing
eeab10bd54 nixVersions.nix_2_7: Propagate nlohmann_json
Just like upstream:
https://github.com/NixOS/nix/blob/2.7.0/flake.nix#L136
2022-03-10 15:35:04 +01:00
Sandro Jäckel
0730df1a1a
nix: disable big-parallel for aws-sdk-cpp
aws-sdk-cpp only takes ~1m52s on a 4 core machine under 50% load
which does not justify the requirement on big parallel.

Tested with `nix-build -A nixVersions.nix_2_6.aws-sdk-cpp`.
2022-03-08 14:09:53 +01:00
Ben Siraphob
862c468fab
Merge pull request #157596 from hexagonal-sun/nix-darwin-fix
nix >= 2.6.0: fix build on darwin machines
2022-02-01 00:35:17 +00:00
Matthew Leach
f4cc8ee5dd nix: fix build on darwin machines 2022-01-31 22:09:37 +00:00
Bernardo Meurer
a40948ee53
Merge pull request #157387 from Mic92/nix-unstable 2022-01-30 09:07:47 -08:00
Nick Cao
a817568b0f
nix: fix default value of enableDocumentation 2022-01-30 19:41:10 +08:00
Jörg Thalheim
6b3a2e6c3f nixUnstable: pre20220124 -> pre20220127
fixes https://github.com/NixOS/nix/issues/5998
and https://github.com/NixOS/nix/issues/5980
2022-01-30 12:33:47 +01:00
Bernardo Meurer
fd61b4ca59
nix: remove pointless let..in from common 2022-01-26 12:57:25 -08:00
Bernardo Meurer
421abd6e8a
nixVersions: move buildNix functionality into common.nix 2022-01-26 12:19:10 -08:00