Commit Graph

249 Commits

Author SHA1 Message Date
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Artturin
8c116c6112 bash: badPlatforms mingw
`bash` doesn't compile for `mingw`

https://www.github.com/NixOS/nixpkgs/issues/333338
2024-09-12 08:23:58 +02:00
Emily
b62cfa99c3 bash: add upstream fix for pop_var_context error
Closes: #214822
2024-08-01 15:35:34 +01:00
Emily
a76707e813 bash: 5.2p26 -> 5.2p32
Replace one patch with its upstream version.
2024-08-01 15:35:17 +01:00
Jörg Thalheim
5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00
Anderson Torres
c5aa149ef9 bash-5: remove dtzWill as maintainer [orphan]
Since theey is not active in a long span of time.
2024-07-17 12:12:56 -03:00
John Ericson
97550cd031 bash: Fix OpenBSD build
See added code comment for details
2024-06-29 13:14:51 -04:00
Philip Taron
718545000e
bash-completion: add philiptaron as maintainer 2024-06-25 17:12:22 -07:00
Audrey Dutcher
846de80d1c various: Enable updateAutotoolsGnuConfigScriptsHook
Prior to August 2023, any config.guess generated by autoconf will
include a hardcoded /usr/bin/uname invocation for FreeBSD on any
architecture other than arm. This clearly doesn't work under nix.
We must then update or otherwise patch each old config.guess.
2024-05-27 11:09:28 -04:00
Sandro
b6a0d866b7
Merge pull request #310322 from r-ryantm/auto-update/bash-completion
bash-completion: 2.13.0 -> 2.14.0
2024-05-19 16:24:39 +02:00
R. Ryantm
7e5879ff42
bash-completion: 2.13.0 -> 2.14.0 2024-05-18 21:57:03 +02:00
Audrey Dutcher
fc246ead19 bash: Fix build on FreeBSD cross 2024-05-18 10:04:17 +02:00
Kamila Borowska
0d3b34f45a maintainers: remove KamilaBorowska 2024-04-21 22:26:12 +02:00
R. Ryantm
d1001631bc bash-completion: 2.11 -> 2.13.0 2024-04-06 21:14:36 +00:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
github-actions[bot]
03dd2b9470
Merge master into staging-next 2024-02-07 12:01:11 +00:00
Naïm Favier
6a6529ace1
nix-bash-completions: fix improper escaping 2024-01-31 16:09:35 +01:00
Sergei Trofimovich
4181c1f587 bash: 5.2p21 -> 5.2p26
While at it exposed patch suffix as a `version` attribute.
2024-01-17 11:08:09 +00:00
Sergei Trofimovich
0a4140bcc8 bash: 5.2p15 -> 5.2p21 2023-11-23 08:49:18 +00:00
Samuel Dionne-Riel
5e76073539 nix-bash-completions: Drop nixos-rebuild completion 2023-10-22 03:18:50 -04:00
Artturi
b6e0319318
Merge pull request #257358 from Artturin/bashunnecessaryexplici 2023-09-30 22:58:33 +03:00
Artturin
6c73dc6746 bash: Remove unnecessary explicit passing of binutils
`binutils` for darwin was added in (add binutils to bash build for size)[9c153e2227].

The override was added in (bash: provide a working binutils)[9e05276949].
2023-09-26 04:05:52 +03:00
Vladimír Čunát
223b83ca54
Merge #250128: bash: disable bash-malloc everywhere
...into staging
2023-09-16 15:42:10 +02:00
Sergei Trofimovich
8708ae0e37 bash: disable bash-malloc everywhere, not just on musl
TIme to time I bump into pathological behaviour of `bash` memory
allocator. Today's example:

    $ time { ls /nix/store/ > /dev/null; }
    real    0m0,965s user    0m0,876s sys     0m0,087s
    $ time { echo /nix/store/* > /dev/null; }
    real    2m18,287s user    2m17,946s sys     0m0,125s
    $ time { echo /nix/store/* > /dev/null; }
    real    0m1,764s user    0m1,712s sys     0m0,048s

Note how initial `echo` takes alsmot 2 minutes to finish.

Let's rely  on system's allocator instead.

After the change initial run is fast again:

    $ time { echo /nix/store/* > /dev/null; }
    real    0m1,328s user    0m1,264s sys     0m0,063s
2023-08-19 08:39:13 +01:00
Sergei Trofimovich
99e148dd27 bash: fix parallel build failure on unwind_prot.o
As reported by Robert Scott in https://github.com/NixOS/nixpkgs/pull/245066
without the change `make -j8` build of `make` occasionally fails to
buildin parallel. The simplest reproducer is:

    $$ ./configure
    $$ make unwind_prot.o
    ...
    In file included from unwind_prot.c:51:
    In file included from ./bashintl.h:30:
    ./include/gettext.h:27:11: fatal error: 'libintl.h' file not found
    # include <libintl.h>
              ^~~~~~~~~~~
    1 error generated.
    make: * [Makefile:106: unwind_prot.o] Error 1

The change adds missing ttransitive `${LIBINTL_H}` dependency for
unwind_prot.o.
2023-07-24 23:23:14 +01:00
R. Ryantm
4d8e3794df blesh: 0.3.4 -> 0.4.0-devel3 2023-07-11 23:41:22 +08:00
figsoda
98b9e41f61 pkgs: fix typos 2023-05-19 22:31:04 -04:00
Mario Rodas
adcbb9f514 blesh: 2022-07-29 -> 0.3.4
https://github.com/akinomyoga/ble.sh/releases/tag/v0.3.4
2023-04-04 04:20:00 +00:00
Mario Rodas
fb510e2312 blesh: fix pname 2023-01-28 04:20:00 +00:00
Artturin
f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00
github-actions[bot]
87f957b5e2
Merge master into staging-next 2023-02-12 16:02:45 +00:00
Sandro Jäckel
d5e55b8df9
bash: add pkgsStatic.bash to passthru
to prevent regressions on updates
2023-02-12 13:48:04 +01:00
Alyssa Ross
c9a88f969d bash: add debug info 2023-01-29 10:47:01 +00:00
Alyssa Ross
e049b85910 bash: apply static fix unconditionally
To ease maintenance.
2023-01-23 15:59:25 +00:00
Guillaume Girol
33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00
Alyssa Ross
be0d0f2905 pkgsStatic.bash: fix build
Link: https://lists.gnu.org/archive/html/bug-bash/2022-10/msg00000.html
2023-01-13 13:12:40 +00:00
Jan Tojnar
5810109b42 Merge branch 'staging-next' into staging
- readline6 attribute removed from all-packages.nix in d879125d61
- readline attribute was bumped to readline82 in 50adabdd60
2023-01-02 03:04:32 +01:00
Naïm Favier
d62198f2d4
Merge pull request #207224 from ncfavier/nix-bash-completions 2023-01-01 10:43:13 +01:00
Markus Napierkowski
aae36e6869
bash: 5.1 -> 5.2 2022-12-28 21:05:43 +01:00
Sandro Jäckel
363980f93d bash: remove ? null inputs, other little cleanups 2022-12-27 09:33:27 +01:00
Naïm Favier
cd5d9f6206
nix-bash-completions: don't handle the nix command
See https://github.com/hedning/nix-bash-completions/issues/20.

Even with the low priority on this package, completing `nix-build` will
load the nix-bash-completion for the `nix` command, which is undesirable
since Nix provides its own completion since 2.4.

The maintainer seems unresponsive.
2022-12-22 13:14:11 +01:00
Vladimír Čunát
9c497bb8d6
Merge branch 'staging-next' into staging 2022-12-09 10:27:46 +01:00
tars0x9752
49a8c118b2
blesh: unstable-2022-07-24 -> unstable-2022-07-29, refactor 2022-12-08 13:39:55 +01:00
Sandro
682351f259
Merge pull request #151090 from thefloweringash/readline-update 2022-11-30 17:55:09 +01: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
cidkidnix
db31db7e84 bash: give bionic file with comment about "fortify" 2022-09-29 08:51:21 -05:00
cidkidnix
0bf33f0e83 bash: make android comment more clear 2022-09-23 14:50:09 -05:00
Dylan Green
2870a5e506
match libc, instead of useAndroidPrebuilt
Co-authored-by: John Ericson <git@JohnEricson.me>
2022-09-23 14:07:04 -05:00
cidkidnix
2b6bf950e7 bash: fix android cross-compile 2022-09-23 09:49:23 -05:00
Alyssa Ross
5330c0a1af
treewide: use isAarch where appropriate 2022-07-30 16:18:27 +00:00