Commit Graph

154 Commits

Author SHA1 Message Date
pacien
97b64bd65e fishPlugins.clownfish: init at unstable-2021-01-17 2021-03-09 14:24:59 +01:00
Vincent Haupert
6aa878679a fish: execute fish tests
Still includes `coreutils` in `checkInputs`.

macOS: disables some pexpect tests which depend on pkill/pgrep
(see #103180).
2021-03-06 16:26:22 -08:00
Vincent Haupert
b0c7213bd4 fish: fix passthru test
Patched file now uses double instead of single quotes.
2021-03-06 16:26:22 -08:00
Vincent Haupert
62f9a381a0 fish: 3.1.2 -> 3.2.0
functions/{type.fish,_.fish}: removed, now a builtin

macOS: disable codesigning with CMake flag instead of patching the
CMakeLists.txt.
2021-03-06 16:26:22 -08:00
Dominik Xaver Hörl
cf3e8a7352 fish: avoid nontermination in fhs like setups 2021-02-17 11:31:29 -08:00
pacien
c6efc0b255 wrapFish: fix singleton expansion in shell init
This fixes the expansion of the configuration path in the pathological
case of a singleton, which would otherwise be used verbatim with the
surrounding braces for lookup.

GitHub: see https://github.com/NixOS/nixpkgs/pull/108491#pullrequestreview-590072603
2021-02-16 11:01:43 -08:00
Lily Ballard
c4f980a063 fish: Add fishEnvPreInit option
This new option allows for replacing the sourcing of
/etc/fish/nixos-env-preinit.fish with another file, optionally passing
it through `fenv`. The idea here is that non-NixOS users can do
something like

    fish.override {
      fishEnvPreInit = sourceBash:
        sourceBash "${nix}/etc/profile.d/nix-daemon.sh";
    }

and this will set up their shell environment for Nix just as though they
were running NixOS.
2021-02-04 19:05:22 -08:00
Kevin Griffin
62a50d89cc
babelfish: 1.0.1 -> 1.1.0 2021-02-01 21:25:48 +09:00
Pavol Rusnak
a6ce00c50c
treewide: remove stdenv where not needed 2021-01-25 18:31:47 +01:00
Kevin Griffin
af1df42fec
babelfish: 1.0.0 -> 1.0.1 2021-01-21 22:22:34 +09:00
Cole Helbling
86b83264cb
babelfish: 0.1.3 -> 1.0.0
Notably, adds support for stdout redirections and fixes a failing test.
2021-01-16 07:34:32 -08:00
Sandro
82fd153465
Merge pull request #108946 from kevingriffin/fish-babelfish 2021-01-12 14:27:04 +01:00
Kevin Griffin
8d0ddfc1b6
babelfish: init at version 0.1.3 2021-01-12 20:19:54 +09:00
Michele Guerini Rocco
a306b088f6
Merge pull request #108491 from pacien/fishPlugins-wrapFish
wrapFish: add fish shell wrapper package
2021-01-11 09:10:52 +01:00
pacien
108fd69a8c fishPlugins.buildFishPlugin: rename checkFunctionPath parameter 2021-01-11 03:39:57 +01:00
pacien
648a3db934 fishPlugins.buildFishPlugin: use wrapFish 2021-01-11 00:47:56 +01:00
Jan Tojnar
f19eb635b4
Merge branch 'master' into staging-next
b04fc593e7 seems to have accidentally changed mkDerivation function for dfilemanager and solarus-quest-editor so I have reverted that here.
2021-01-07 13:04:31 +01:00
pacien
ae5c662182 wrapFish: add fish shell wrapper package
This adds a wrapper for fish which allows creating shells pre-initialised
with some completions, functions, and configuration scripts from given paths
or from fish plugin packages (`pkgs.fishPlugins.*`).

This is especially handy when one wants to try a plugin in an ephemeral shell.

GitHub: see https://github.com/NixOS/nixpkgs/pull/107834#discussion_r550612519
2021-01-05 17:20:39 +01:00
pacien
d94921db12 fish-foreign-env: move to fishPlugins.foreign-env
And relocate the installed fish functions to the `vendor_functions.d` so
that they're automatically loaded.
2021-01-04 18:53:59 +01:00
pacien
59c1b6d0e7 fishPlugins.pure: init at 3.4.2 2021-01-04 18:51:11 +01:00
pacien
3a987feae1 fishPlugins.fishtape: init at 2.1.3 2021-01-04 18:51:11 +01:00
pacien
c083b27791 fishPlugins: bootstrap fish plugin scope 2021-01-04 18:51:11 +01:00
Ben Siraphob
3ae5e6ce03 treewide: remove enableParallelBuilding = true if using cmake 2021-01-03 18:37:40 +07:00
Ollie Charles
1675b11cd4 Remove myself from maintainers sets
Unfortunately I can't reliably commit time to nixpkgs, so I would like to remove myself from being a formal maintainer for these packages.
2020-12-07 14:30:37 +00:00
Graham Christensen
bc49a0815a
utillinux: rename to util-linux 2020-11-24 12:42:06 -05:00
Dominik Xaver Hörl
b45a76916e fish: fixup awk references 2020-07-06 11:09:45 +02:00
Michele Guerini Rocco
b2532174e0
Merge pull request #90670 from bouk/fish-no-tr
fish: replace use of tr with string split
2020-06-18 09:48:01 +02:00
Bouke van der Bijl
84e25cf478 fish: use -p to prepend profile directories 2020-06-17 18:59:56 +02:00
Bouke van der Bijl
9daa1838d3 fish: replace use of tr with string split
This shaves about 4ms off fish start time.

Before (profiled with 'fish --profile prof.txt -c fish_prompt'):

225	4636	----> set -l __nix_profile_paths (echo $NIX_PROFILES | /nix/store/m5ajgnzp2512na31brwfmydwk3l1gawb-coreutils-8.31/bin/tr ' ' '\n')[-1..1]
4411	4411	-----> echo $NIX_PROFILES | /nix/store/m5ajgnzp2512na31brwfmydwk3l1gawb-coreutils-8.31/bin/tr ' ' '\n'

After:

190	248	----> set -l __nix_profile_paths (string split ' ' $NIX_PROFILES)[-1..1]
2020-06-17 18:59:35 +02:00
Cole Helbling
09fd67354e
fish: install docs to $out/share/doc/fish
Otherwise, it ended up going to $out/share/doc, which would pollute this
shared directory, as well as clash with other similarly misbehaving
packages.
2020-06-15 09:20:49 -07:00
Cole Helbling
a17630204a fish: fix and enable fishConfig test
`nix-build -A fish.tests.fishConfig` will now test that the
`fish_config` tool would start up properly. Previously, this test was
effectively disabled due to `withTests` being stubbed out.

I don't think this test ever truly worked, because the generated
temporary file would be cleaned up automatically (or maybe this
"automatically" changed between versions). The solution to this is to
add `delete=False` to the `NamedTemporaryFile` function call, to keep
the temporary file around in order to grep its contents for the expected
output.
2020-05-04 21:31:59 +02:00
Cole Helbling
7a15b6037b
fish: 3.1.1 -> 3.1.2
https://github.com/fish-shell/fish-shell/compare/3.1.1...3.1.2

"This release of fish fixes a major issue discovered in fish 3.1.1:
Commands such as `fzf` and `enhancd`, when used with `eval`, would hang.
`eval` buffered output too aggressively, which has been fixed."
2020-04-28 21:26:50 -07:00
adisbladis
f0fbce6673
Merge pull request #86136 from cole-h/fish
fish: 3.1.0 -> 3.1.1
2020-04-28 14:34:01 +02:00
adisbladis
7686c2cc6a
fish: Patch __fish_anypython function to return build input python3 2020-04-28 11:53:44 +01:00
Cole Helbling
87b02f74cf
fish: disable codesigning
We don't have access to the codesign binary.
2020-04-27 14:23:08 -07:00
Cole Helbling
a43ae05369
fish: 3.1.0 -> 3.1.1
https://github.com/fish-shell/fish-shell/compare/3.1.0...3.1.1

The patch we had to use for Apple SDKs was merged upstream, so it can be
dropped. I ran nixpkgs-fmt, and removed the `with stdenv.lib;` scope
expander.

Additionally, did a little bit of cleanup. I plan on refactoring this
more down the line, but this'll do for now.

I finally figured out why we use `fetchurl` for the tagged release: the
published release tarballs contain a version file, which the
`build_tools/git_version_gen.sh` script reads (and uses as the version
if it exists). The other thing it contains are pre-generated docs for
various `fish` builtins. I've expanded the comment to document this so
nobody is as confused as I was when I first saw it. (Though I plan to
change this and add sphinx as a native build input in order to build the
docs ourselves.)
2020-04-27 09:51:09 -07:00
Emery Hemingway
2ad4e21249 fish: declare tests from nixosTests 2020-04-22 11:45:04 +05:30
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Georges Dubus
af8d7003cf
Merge pull request #79941 from cole-h/fish
fish: 3.0.2 -> 3.1.0
2020-02-18 10:14:48 +01:00
Cole Helbling
2721f9d549
fish-foreign-env: update stderr redirection in patch
Caret stderr redirection has been deprecated and will be removed in a
future version.
2020-02-16 23:29:02 -08:00
Cole Helbling
be2ceb2efc
fish: 3.0.2 -> 3.1.0
fish-shell 3.1.0 was just released today with many niceties (including
the ability to have bash-like temporary env vars e.g. `VAR="var1"
command` instead of needing to use `env VAR="var1" command`). To see the
full list of changes, please visit
https://github.com/fish-shell/fish-shell/releases/tag/3.1.0.
2020-02-14 15:07:22 -08:00
Cole Helbling
98a2276637
fish-foreign-env: git-20170324 -> git-20200209
"`^` as a redirection deprecated and will be removed in the future."
(see the changelog, under the 3.0b1 release)

The latest fish beta release (3.1b1 as of time of writing) errors when
encountering `^&1` (though the fact it is now an error has yet to be
documented by them). The plugin was updated last year to account for
this change, and with the "imminent" release of fish-shell v3.1, this
should be fixed.
2020-02-09 19:01:14 -08:00
Gabriel Ebner
26afc6c46d fish: fix systemctl completion 2020-01-17 17:42:33 +01:00
Jan Tojnar
7ba42794a8
Revert "fish: switch to fetchFromGitHub"
This reverts commit cc997f28d1.

I confused the URLs. The files have the same contents but the former URL is recommended by upstream.
2019-10-20 01:53:10 +02:00
Jan Tojnar
cc997f28d1
fish: switch to fetchFromGitHub
The expression claimed there are differences between the release tarball and the tarball github packages from the tag but fetchFromGitHub literally downloads the same tarball.
2019-10-19 14:30:25 +02:00
volth
08f68313a4 treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
volth
46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
Judson
2c9c395a22
fish: use internal wcwidth
Fish 3.0 has an updated an more robust handling of unicode glyphs. Per
the original author of the INTERNAL_WCWIDTH flag, it was something of
misfeature, and they regret that NixOS came to rely on it.

Removes the flag from the Nix expression.

Flag was added originally to Nixpkgs in 68076b7d49

It is being removed entirely from upstream fish:
https://github.com/fish-shell/fish-shell/pull/5777.
2019-07-18 15:00:29 -07:00
qolii
dc84a655b2 fish: 3.0.1 -> 3.0.2 2019-03-02 14:48:33 -08:00
Jethro Kuan
1963f5b70c fish: 3.0.0 -> 3.0.1 2019-02-18 13:12:56 +08:00
Gabriel Ebner
68076b7d49 fish: do not use internal wcwidth
This is important when typing characters such as (U+26A1 HIGH VOLTAGE
SIGN), otherwise fish computes a different character width than the
terminal.  See https://github.com/fish-shell/fish-shell/pull/4816
2018-12-30 10:21:06 +01:00
adisbladis
0ff4d0a516
fish: 2.7.1 -> 3.0.0 2018-12-28 21:23:24 +00:00
volth
52f53c69ce pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
Matthew Bauer
ddaea6ac77 pkgs/shells: move extensions to subdirs
These are not reaal shells and should go into their parent shell
directory.
2018-04-17 14:47:32 -05:00
Will Dietz
d3b59f864a define top-level attrs for getent, getconf
Note that currently getent is explicitly taken from "glibc.bin",
regardless of build configuration which this preserves for now.
(on non-musl anyway)
2018-02-13 11:47:16 -06:00
Will Dietz
172af30d8a fish: on musl use musl-getent 2018-02-13 09:44:35 -06:00
Luke Adams
2dca67864d fish: 2.7.0 -> 2.7.1
Fixes paste bracketing issue with iTerm (macOS)
2017-12-25 14:56:25 -06:00
Orivej Desh
ba3a792435 fish: enable parallel building 2017-11-27 13:34:31 +00:00
adisbladis
ee933bdb1d
fish: 2.6.0 -> 2.7.0 2017-11-27 18:44:52 +08:00
Profpatsch
46eb0e2cd1 fish: add fish_config tests
Checks whether the fish_config script does run.
Cannot check running the web server though (since that requires a port).
2017-08-05 22:31:18 +02:00
Profpatsch
b7290a283a fish: fix the fish_config tool
It requires a python interpreter to work.
2017-08-05 22:14:24 +02:00
Silvan Mosberger
f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00
Patrick Callahan
e620135a87 fish: 2.5.0 -> 2.6.0 2017-06-22 21:09:15 -07:00
Patrick Callahan
3f91e0dbae fish: source NixOS environment on non-login shells, when it hasn't been
sourced
(this fixes issue #25789:
https://github.com/NixOS/nixpkgs/issues/25789#issuecomment-301577290 and
the issue with git-annex mentioned here
https://github.com/NixOS/nixpkgs/pull/24314#issuecomment-301587124 )
2017-05-19 21:00:24 -07:00
Patrick Callahan
3f6d21bafc
fish: resolve NixOS-related initialization problems 2017-05-10 10:16:10 +01:00
rnhmjoj
b0f1881440
fish: 2.3.1 -> 2.5.0 2017-02-04 20:58:55 +01:00
Louis Taylor
5ee480bce5 fish: 2.3.0 -> 2.3.1 2016-07-11 05:43:47 +01:00
zimbatm
b482036cbb fish: add shellPath passthru 2016-06-12 18:57:29 +01:00
Kjetil Orbekk
3d7c8bd179 fish: fix completion from NIX_PROFILES
Load NIX_PROFILES at shell startup, not at build time.
This one was missed in #16039.
2016-06-12 01:16:35 -04:00
Kjetil Orbekk
027ca71156 fish: fix completions
Completion was broken because some variables were resolved at
installation time instead of being added to the script.

Closes #16039.
2016-06-07 14:38:54 +02:00
rnhmjoj
17ec9368cd
fish: 2.2.0 -> 2.3.0 2016-05-26 00:10:22 +02:00
Vladimír Čunát
3472b61f37 fish: use a different alias man_db -> man-db 2016-05-24 10:07:29 +02:00
Eric Seidel
7e92ae903e fish: only use kbd on linux 2016-04-25 09:13:06 -07:00
Tuomas Tynkkynen
cfdef68ad2 fish: Reference correct output of glibc 2016-04-18 21:32:43 +03:00
Vladimír Čunát
30f14243c3 Merge branch 'master' into closure-size
Comparison to master evaluations on Hydra:
  - 1255515 for nixos
  - 1255502 for nixpkgs
2016-04-10 11:17:52 +02:00
Profpatsch
a011083cda fish: pick up completion files from other packages
Some packages bring their own completions in
/share/fish/vendor_completions.d. Now they are picked up by fish from
every path in NIX_PROFILES.
2016-04-09 00:08:48 +02:00
Thomas Tuegel
da972b6cc4 ncurses: move runtime utilities to $out
All the programs provided by ncurses were being installed to the $dev
output, but several of them are intended for runtime use, e.g. to
operate on the running terminal. These user-facing programs are moved to
the $bin output.

Several packages referred to "${ncurses}/bin" or "${ncurses.dev}/bin" at
runtime; these paths are also updated to refer to "${ncurses.bin}/bin".
2016-03-08 11:35:24 -06:00
zimbatm
57f7ff00fe Merge pull request #13368 from nathan7/fish-ul
fish: fix hidden dependency on ul(1) on Linux
2016-02-28 22:09:32 +00:00
Nathan Zadoks
010271d47a fish: fix hidden dependency on ${glibc}/bin/getent on Linux 2016-02-28 22:27:53 +01:00
Nathan Zadoks
da1f465b94 fish: fix hidden dependency on utillinux on Linux 2016-02-28 22:27:53 +01:00
Scott Olson
a93a2e2360 fish: remove kbd dependency on Darwin 2016-02-28 14:55:51 -06:00
Nathan Zadoks
1072e2bf4d fish: don't use manpath(1) from PATH in functions/man.fish
Close #12762.
2016-02-02 06:13:12 +01:00
Jakob Gillich
5e5ecb7b6f fish: fix merge conflict
patches got duplicated
2016-01-05 23:32:29 +01:00
Arseniy Seroka
1fc685ae64 Merge pull request #11945 from jgillich/fish
fish: add module to support it as default shell
2016-01-06 01:25:37 +03:00
Nathan Zadoks
efd9562df0 fish: pass all of argv to command-not-found 2015-12-28 15:09:48 +01:00
Jakob Gillich
ac7e923104 fish: add module to support it as default shell
* Patched fish to load /etc/fish/config.fish if it exists (by default,
  it only loads config relative to itself)
* Added fish-foreign-env package to parse the system environment

closes #5331
2015-12-26 06:25:23 +01:00
Alexander Shabalin
020a09adbb fish: Use /bin/hostname on darwin. Fixes #11012. 2015-12-13 22:52:35 +03:00
Vladimír Čunát
10135e6f41 fish: use absolute path to clear when pressing ^L
It was unable to find `clear` for me.
/cc maintainer @ocharles.
2015-11-29 12:01:17 +01:00
Samuel Rivas
d3ed672b6a fish: fix use hostname from the store instead of from the environment 2015-11-06 09:55:55 +01:00
Pascal Wittmann
0c5bdf68c2 fix: substitute path to bc in math.fish
closes #10141
2015-11-05 15:14:04 +01:00
Maciek Starzyk
ad4e17e94b fish: Fixed "Could not autoload item 'seq'..." 2015-07-14 21:44:25 +02:00
Maciek Starzyk
dcc2b6148e fish: 2.1.2 -> 2.2.0 2015-07-12 15:33:01 +02:00
Eric Seidel
c95e489149 fish: dont demand man-db on darwin since we cant build it 2015-05-23 13:48:54 -07:00
koral
43505edb9c fish: 2.1.1 -> 2.1.2 2015-03-05 01:55:45 +01:00
Dan Peebles
7cc575c870 Fish wants libiconv too, even though it won't admit it 2015-02-18 01:14:36 -05:00
Arseniy Seroka
97f04baaa9 update fish shell 2014-10-07 01:00:37 +04:00
Bernerd Schaefer
bba65ab7a5 fishshell builds on unix platforms 2014-09-16 09:04:55 +02:00
Bjørn Forsman
8727f1aeb1 fish: fix 'fish_config' by providing python ncurses module
Gets rid of the "ImportError: No module named _curses" (and failure to
display page) when clicking the "prompt" page in the 'fish_config' web
UI.
2014-06-30 20:39:02 +02:00
Georges Dubus
927c41e258 fish: Fixed tab completion with sudo (close #2705)
We don't have /sbin and /usr/sbin, so fish complains.
2014-06-10 11:36:12 +02:00
William A. Kennington III
bf3ca4cb48 fish: Fix propagatedBuildInputs and other assorted changes
Currently, fish does not depend on python27 which is necessary for many
of the built in commands such as the manpage completion generator and
the web configuration sevice. This patch adds support for python27 as
well as man_db for the manpage completion generator. It also attempts to
replace more shell functions with binaries contained in the nix store.
2014-02-15 12:17:06 +01:00