github-actions[bot]
96132a216a
Merge master into staging-next
2023-10-26 18:01:02 +00:00
Vladimír Čunát
d811555465
Merge branch 'staging' into staging-next
2023-10-26 10:36:50 +02:00
nicoo
1cabb1c445
tests/stdenv: Check derivations with an MD5 outputHash
fail to evaluate
2023-10-25 23:14:16 +00:00
Adam Joseph
425cac96bf
gcc: create dummy crtstuff on S390 as well
...
This commit replicates the fix in
https://github.com/NixOS/nixpkgs/pull/258032 for S390 as well.
Co-authored-by: Artturi <Artturin@artturin.com>
2023-10-25 08:36:22 +00:00
github-actions[bot]
0fa884ae1f
Merge staging-next into staging
2023-10-22 06:01:35 +00:00
Martin Weinelt
8dfad60324
Merge pull request #257792 from NixOS/staging-next
...
staging-next 2023-09-28
2023-10-22 02:42:33 +02:00
github-actions[bot]
03248bf8af
Merge master into haskell-updates
2023-10-19 00:12:13 +00:00
github-actions[bot]
c12ce83e4e
Merge staging-next into staging
2023-10-18 18:01:38 +00:00
github-actions[bot]
de8dd334ab
Merge master into staging-next
2023-10-18 18:01:05 +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]
49523dec15
Merge staging-next into staging
2023-10-13 06:01:45 +00:00
github-actions[bot]
55a0671553
Merge master into haskell-updates
2023-10-13 00:12:19 +00:00
github-actions[bot]
58485aaddb
Merge master into staging-next
2023-10-13 00:02:24 +00:00
Silvan Mosberger
d3bf6133e8
tests.nixpkgs-check-by-name: Disallow empty all-packages.nix overrides
...
Only enabled with `--version v1`
2023-10-12 02:28:34 +02:00
Silvan Mosberger
23541bed72
tests.nixpkgs-check-by-name: Introduce --version
2023-10-12 02:28:09 +02:00
Silvan Mosberger
fcaa408d00
tests.nixpkgs-check-by-name: auto-calling differentiation
...
Allows detecting whether attributes are overridden in all-packages.nix.
In a future commit we'll use this to detect empty arguments being set in
all-packages.nix and complain about that.
2023-10-12 02:27:55 +02:00
Silvan Mosberger
f394f738fa
tests.nixpkgs-check-by-name: Improve an error message
2023-10-12 02:27:13 +02:00
Silvan Mosberger
26cec0dbe3
tests.nixpkgs-check-by-name: Add custom argument test
2023-10-12 02:27:05 +02:00
Silvan Mosberger
6710bc250a
tests.nixpkgs-check-by-name: Minor refactor
...
Allows a smaller diff for future changes
2023-10-12 02:27:02 +02:00
Silvan Mosberger
21d520fbf2
tests.nixpkgs-check-by-name: Minor Nix refactor
2023-10-12 02:24:54 +02:00
github-actions[bot]
5e07b9a951
Merge master into haskell-updates
2023-10-11 00:12:13 +00:00
github-actions[bot]
2e97a3af0d
Merge staging-next into staging
2023-10-11 00:02:39 +00:00
Fabián Heredia Montiel
d676e059d7
Merge remote-tracking branch 'origin/master' into staging-next
2023-10-10 15:07:12 -06:00
Madoura
12e7fc6923
llvmPackages_rocm -> rocmPackages.llvm
2023-10-09 16:38:51 -05:00
Dennis Gosnell
36bb7be495
tests.haskell.upstreamStackHpackVersion: update breakfor stack-2.13.1
...
The tarball that contains the statically-linked stack package has
changed paths.
See the release notes for more details:
https://github.com/commercialhaskell/stack/releases/tag/v2.13.1
2023-10-08 12:23:10 +09:00
Maximilian Bosch
8bc5104a6e
treewide: refactor .attrs.sh
detection
...
When specifying the `builder` attribute in `stdenv.mkDerivation`, this
will be effectively transformed into
builtins.derivation {
builder = stdenv.shell;
args = [ "-e" builder ];
}
This also means that `default-builder.sh` is never sourced and as a
result it's not guaranteed that `$NIX_ATTRS_SH_FILE` is set to a correct
location[1].
Also, we need to source `.attrs.sh` to source `$stdenv`. So, the
following is done now:
* If `$NIX_ATTRS_SH_FILE` points to a correct location, then use it.
Directly using `.attrs.sh` is problematic for `nix-shell(1)` usage
(see previous commit for more context), so prefer the environment
variable if possible.
* Otherwise, if `.attrs.sh` exists, then use it. See [1] for when this
can happen.
* If neither applies, it can be assumed that `__structuredAttrs` is
turned off and thus nothing needs to be done.
[1] It's possible that it doesn't exist at all - in case of Nix 2.3 or
it can point to a wrong location on older Nix versions with a bug in
`__structuredAttrs`.
2023-10-04 18:36:57 +02:00
github-actions[bot]
b7f2311d92
Merge staging-next into staging
2023-09-27 18:01:33 +00:00
Matthieu Coudron
0ab2c96429
vimUtils: buildVimPluginFrom2Nix renamed to buildVimPlugin
...
the `from2Nix` suffix is a legacy from vim2nix but we dont use that anymore. It makes the name of the function unusual and long.
2023-09-27 19:08:38 +02:00
github-actions[bot]
035c6df194
Merge staging-next into staging
2023-09-24 00:03:26 +00:00
Silvan Mosberger
85d77bc124
Merge pull request #256913 from xfix/make-nixpkgs-check-by-name-tests-thread-safe
...
tests.nixpkgs-check-by-name: Make tests thread safe
2023-09-23 23:31:49 +02:00
Konrad Borowski
9efc0c0991
tests.nixpkgs-check-by-name: make tests thread safe
...
This uses a mutex to make sure that functions that read environment
don't read incorrect values.
2023-09-23 21:24:44 +02:00
figsoda
6728e7a9ca
tests.nixpkgs-check-by-name: remove unused dependency
...
looks like we are not using rowan directly
2023-09-23 10:12:21 -04:00
github-actions[bot]
0de27a8a5a
Merge staging-next into staging
2023-09-23 12:01:36 +00:00
Silvan Mosberger
1fe58cb050
tests.nixpkgs-check-by-name: Fix non-reproducible test failures
...
This was an oversight in https://github.com/NixOS/nixpkgs/pull/254435
2023-09-23 00:09:26 +02:00
Artturi
6096abb008
Merge pull request #255208 from rhendric/rhendric/make-binary-wrapper
2023-09-20 09:41:44 +03:00
Ryan Hendrickson
df8b425f89
makeBinaryWrapper: protect wildcards in flags
2023-09-18 02:49:33 -04:00
Artturin
42f3292616
tests.cc-wrapper.supported: add test for cxxabi header
...
`#include <cxxabi.h>`
`/nix/store/02wpjmp2zjjxz13z7g599mniwi25zkcy-libcxxabi-16.0.6-dev/include/cxxabi.h:20:10: fatal error: '__cxxabi_config.h' file not found`
2023-09-18 06:43:36 +05:30
Artturin
57040cc3eb
tests.makeBinaryWrapper: fix cross test on aarch64-linux
2023-09-15 08:48:31 +03:00
Robert Hensing
04311ac3fa
Merge pull request #254763 from tie/nixpkgs-systems-equals
...
pkgs/top-level: use lib.systems.equals for crossSystem
2023-09-13 12:04:45 +02:00
Ivan Trubach
d4063e0330
pkgs/top-level: use lib.systems.equals for crossSystem
...
Fixes otherwise equivalent systems being treated as different by
packages that compare `stdenv.*Platform`s using `==` operator.
2023-09-13 07:22:52 +03:00
Silvan Mosberger
9c9a7e0082
tests.nixpkgs-check-by-name: Fix with parallel tests
...
We seem to have enough tests to run into this now:
error: creating symlink from '/private/tmp/nix-build-nixpkgs-check-by-name.drv-0/source/test-tmp/var/nix/gcroots/profiles' to '/private/tmp/nix-build-nixpkgs-check-by-name.drv-0/source/test-tmp/var/nix/profiles': File exists
2023-09-12 01:07:47 +02:00
Silvan Mosberger
d518eb94ee
tests.nixpkgs-check-by-name: Fix for symlinked tempdirs
...
On Darwin, /tmp is sometimes a symlink to /private/tmp, which couldn't
be handled before:
error: access to canonical path '/private/var/folders/xp/9_ry6h9x6l9gh_g32qspz0_40000gp/T/.tmpFbcNO0' is forbidden in restricted mode
This both fixes that and adds a test to make sure it can't happen again
2023-09-12 01:07:44 +02:00
Rahul Butani
0251e2645a
llvmPackages_15.libcxx: fix the generated linker script
...
See:
- https://github.com/NixOS/nixpkgs/issues/214524#issuecomment-1429146432
- 57c7bb3ec8
- https://reviews.llvm.org/D133566
We can drop this patch in `llvmPackages_16`.
Fixes #214524 .
2023-09-08 05:41:29 +03:00
Artturin
2d15039387
tests.cc-wrapper: add supported and move tests to subsets
...
filter out llvmPackages <=10 on aarch64-darwin, they're marked broken
and availableOn doesn't filter broken packages
2023-09-08 03:20:52 +03:00
Artturin
bcd62ff9eb
Revert "tests.cc-wrapper: filter unavailable gcc"
...
This reverts commit d33a309f2c9f85c28cb897e623503f210057a77a.
commit caused ofborg-eval to fail with
```
$ nix-build pkgs/top-level/release.nix -A tests.cc-wrapper.gcc10Stdenv.aarch64-darwin
error: evaluation aborted with the following error message: 'cannot find attribute `tests.cc-wrapper.gcc10Stdenv''
```
on the 3 other platfomrs the attr is there
2023-09-07 22:36:16 +03:00
Artturin
e0898be1c5
tests.cc-wrapper: filter unavailable gcc
2023-09-07 22:36:16 +03:00
Artturin
686516e0bc
tests.cc-wrapper: filter out *MultiStdenv when not on and not building for linux and x86_64
...
they're only supported on x86_64-linux
2023-09-07 22:36:16 +03:00
Artturin
535447e289
tests.cc-wrapper: show command output on different line
...
this is much easier to read.
2023-09-07 22:36:16 +03:00
Artturin
1b6c3aed63
tests.cc-wrapper: show more prominently what cc is being tested
...
Show what libc is used, otherwise there's indication what libc is being
used. Ex in gccMultiStdenv.
2023-09-07 22:36:15 +03:00
Rahul Butani
626c8c3224
tests.cc-wrapper: rework the logic, test newer gcc
stdenvs too
...
ignore `llvmPackages_latest`, it's an alias and it'll be a duplicate.
ignore `llvmPackages_git`, it's not supposed to be used in nixpkgs and
may be broken.
2023-09-07 22:36:07 +03:00