Commit Graph

235 Commits

Author SHA1 Message Date
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
Yuto Oguchi
d5086eb862
blesh: init at 2022-07-24 (#181963)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-07-25 15:57:30 +02:00
Loïc Reynier
09e68b8535 fzf-obc: init at 1.3.0
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-07-18 10:43:48 +02:00
Artturin
4f180210a0 bash: enable strictDeps 2022-05-06 23:39:22 +03:00
Artturin
ea79263e60 pkgs/shells: enable strictDeps 2022-05-06 22:31:38 +03:00
Andrew Childs
dd358e2111 readline: default to readline81 instead of readline6 2022-03-30 13:04:48 +09:00
github-actions[bot]
6787116890
Merge master into staging-next 2022-02-28 00:02:07 +00:00
Daniel Fullmer
0a8007498f bash: use default PATH in FHS environments
If bash is executed within an environment where PATH is not set, it uses
the DEFAULT_PATH_VALUE compiled into bash to set PATH. In nixpkgs we set
this to /no-such-path by default. This makes sense in a nixpkgs/NixOS
environment since paths like /bin or /usr/bin should not be used.
However, when bash is used inside an FHS environment, this produces
results that differ from distributions which follow the FHS standard.

Before this change:
$ steam-run env -i /bin/bash -c 'echo $PATH'
/no-such-path

After this change:
$ steam-run env -i /bin/bash -c 'echo $PATH'
/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:.
2022-02-27 15:59:39 -08:00
github-actions[bot]
6ceaf1126b
Merge staging-next into staging 2022-02-20 12:01:51 +00:00
Sandro
ed96cc2f19
Merge pull request #157688 from SuperSandro2000/bash-readline 2022-02-15 12:03:21 +01:00
Tom Bereknyei
2a448a9ccd bashInteractive: set mainProgram 2022-02-12 14:06:05 -05:00
Bjørn Forsman
5153446c44 nix-bash-completions: add missing pre/postInstall hooks 2022-02-12 10:22:17 +01:00
Sandro Jäckel
830435ccc3
bash: 5.1p12 -> 5.1p16 2022-02-01 13:17:11 +01:00
Artturin
233c7e8ec5 bash_4: remove
it was brought back in for the output size but that issue has been fixed
40a6918af3
nothing in nixpkgs uses bash_4
2021-12-24 17:00:32 +02:00
github-actions[bot]
017d32f216
Merge master into staging-next 2021-11-28 18:00:57 +00:00