aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/shells
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2020-05-20 01:39:43 +0200
committerKatharina Fey <kookie@spacekookie.de>2020-05-20 01:39:43 +0200
commit1849de11ec1e32e9eebb83f24d5339bea88b7ed7 (patch)
tree0aaf3cead09c2d55c67c6f6a86ad20af399797d8 /nixpkgs/pkgs/shells
parent304c06d7a7ea3f5c84031d325ece8d38b8c1d829 (diff)
parent0f5ce2fac0c726036ca69a5524c59a49e2973dd4 (diff)
Merge commit '0f5ce2fac0c726036ca69a5524c59a49e2973dd4'
Diffstat (limited to 'nixpkgs/pkgs/shells')
-rw-r--r--nixpkgs/pkgs/shells/bash/bash-completion/0001-Revert-build-Do-cmake-pc-and-profile-variable-replac.patch86
-rw-r--r--nixpkgs/pkgs/shells/bash/bash-completion/default.nix51
-rw-r--r--nixpkgs/pkgs/shells/elvish/default.nix4
-rw-r--r--nixpkgs/pkgs/shells/fish/default.nix173
-rw-r--r--nixpkgs/pkgs/shells/fish/dont-codesign-on-mac.diff12
-rw-r--r--nixpkgs/pkgs/shells/mksh/default.nix4
-rw-r--r--nixpkgs/pkgs/shells/nushell/default.nix6
-rw-r--r--nixpkgs/pkgs/shells/oil/default.nix6
-rw-r--r--nixpkgs/pkgs/shells/powershell/default.nix47
-rw-r--r--nixpkgs/pkgs/shells/tcsh/default.nix2
-rw-r--r--nixpkgs/pkgs/shells/xonsh/default.nix4
-rw-r--r--nixpkgs/pkgs/shells/zsh/antibody/default.nix4
-rw-r--r--nixpkgs/pkgs/shells/zsh/oh-my-zsh/default.nix6
-rw-r--r--nixpkgs/pkgs/shells/zsh/zsh-history/default.nix4
-rw-r--r--nixpkgs/pkgs/shells/zsh/zsh-powerlevel10k/default.nix4
15 files changed, 201 insertions, 212 deletions
diff --git a/nixpkgs/pkgs/shells/bash/bash-completion/0001-Revert-build-Do-cmake-pc-and-profile-variable-replac.patch b/nixpkgs/pkgs/shells/bash/bash-completion/0001-Revert-build-Do-cmake-pc-and-profile-variable-replac.patch
deleted file mode 100644
index c0d94a1a76d..00000000000
--- a/nixpkgs/pkgs/shells/bash/bash-completion/0001-Revert-build-Do-cmake-pc-and-profile-variable-replac.patch
+++ /dev/null
@@ -1,86 +0,0 @@
-From 398f44b4ed545fc1b6c13a057bf0900001f7958b Mon Sep 17 00:00:00 2001
-From: Frederik Rietdijk <fridh@fridh.nl>
-Date: Tue, 22 Oct 2019 15:07:05 +0200
-Subject: [PATCH] Revert "build: Do cmake, pc, and profile variable
- replacements in Makefile"
-
-This reverts commit 81ba2c7e7dfbaefbafa1e8615727c9612e5fb314.
----
- Makefile.am | 12 ++++++++----
- bash-completion-config.cmake.in | 4 ++--
- bash-completion.pc.in | 4 ++--
- configure.ac | 3 +++
- 4 files changed, 15 insertions(+), 8 deletions(-)
-
-diff --git a/Makefile.am b/Makefile.am
-index 8f441185..53979529 100644
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -23,8 +23,7 @@ cmakeconfig_DATA = bash-completion-config.cmake \
- -e 's|@VERSION[@]|$(VERSION)|' \
- <$(srcdir)/$@.in >$@
-
--CLEANFILES = bash_completion.sh bash-completion.pc \
-- bash-completion-config.cmake bash-completion-config-version.cmake
-+CLEANFILES = bash_completion.sh bash-completion.pc
-
- EXTRA_DIST = CHANGES $(pkgdata_DATA) bash_completion.sh.in .dir-locals.el \
- .editorconfig README.md CONTRIBUTING.md pyproject.toml .perltidyrc \
-@@ -34,6 +33,11 @@ EXTRA_DIST = CHANGES $(pkgdata_DATA) bash_completion.sh.in .dir-locals.el \
- install-data-hook:
- tmpfile=`mktemp $${TMPDIR:-/tmp}/bash_completion.XXXXXX` && \
- $(SED) -e 's|-/etc/bash_completion\.d|-$(compatdir)|' \
-- $(DESTDIR)$(pkgdatadir)/bash_completion >$$tmpfile && \
-- cat $$tmpfile >$(DESTDIR)$(pkgdatadir)/bash_completion && \
-+ $(DESTDIR)$(pkgdatadir)/bash_completion > $$tmpfile && \
-+ cat $$tmpfile > $(DESTDIR)$(pkgdatadir)/bash_completion && \
-+ $(SED) -e 's|\$${prefix}|$(prefix)|' \
-+ $(DESTDIR)$(datadir)/cmake/$(PACKAGE)/bash-completion-config.cmake \
-+ > $$tmpfile && \
-+ cat $$tmpfile > \
-+ $(DESTDIR)$(datadir)/cmake/$(PACKAGE)/bash-completion-config.cmake && \
- rm $$tmpfile
-diff --git a/bash-completion-config.cmake.in b/bash-completion-config.cmake.in
-index d907b76c..ccc6e052 100644
---- a/bash-completion-config.cmake.in
-+++ b/bash-completion-config.cmake.in
-@@ -5,7 +5,7 @@ set (BASH_COMPLETION_VERSION "@VERSION@")
-
- set (BASH_COMPLETION_PREFIX "@prefix@")
- set (BASH_COMPLETION_COMPATDIR "@compatdir@")
--set (BASH_COMPLETION_COMPLETIONSDIR "@pkgdatadir@/completions")
--set (BASH_COMPLETION_HELPERSDIR "@pkgdatadir@/helpers")
-+set (BASH_COMPLETION_COMPLETIONSDIR "@datarootdir@/@PACKAGE@/completions")
-+set (BASH_COMPLETION_HELPERSDIR "@datarootdir@/@PACKAGE@/helpers")
-
- set (BASH_COMPLETION_FOUND "TRUE")
-diff --git a/bash-completion.pc.in b/bash-completion.pc.in
-index ea03fd75..bde217db 100644
---- a/bash-completion.pc.in
-+++ b/bash-completion.pc.in
-@@ -1,7 +1,7 @@
- prefix=@prefix@
- compatdir=@compatdir@
--completionsdir=@pkgdatadir@/completions
--helpersdir=@pkgdatadir@/helpers
-+completionsdir=@datarootdir@/@PACKAGE@/completions
-+helpersdir=@datarootdir@/@PACKAGE@/helpers
-
- Name: bash-completion
- Description: programmable completion for the bash shell
-diff --git a/configure.ac b/configure.ac
-index 1f3b37e8..a216d9b7 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -13,5 +13,8 @@ helpers/Makefile
- test/Makefile
- test/t/Makefile
- test/t/unit/Makefile
-+bash-completion.pc
-+bash-completion-config.cmake
-+bash-completion-config-version.cmake
- ])
- AC_OUTPUT
---
-2.21.0
-
diff --git a/nixpkgs/pkgs/shells/bash/bash-completion/default.nix b/nixpkgs/pkgs/shells/bash/bash-completion/default.nix
index 8efada3413a..e5ef70e43a9 100644
--- a/nixpkgs/pkgs/shells/bash/bash-completion/default.nix
+++ b/nixpkgs/pkgs/shells/bash/bash-completion/default.nix
@@ -1,49 +1,62 @@
{ stdenv, fetchFromGitHub
, fetchpatch
, autoreconfHook
+, perl
+, ps
, python3Packages
, bashInteractive
}:
stdenv.mkDerivation rec {
pname = "bash-completion";
- # TODO: Remove musl patch below upon next release!
- version = "2.9";
+ version = "2.10";
src = fetchFromGitHub {
owner = "scop";
repo = "bash-completion";
rev = version;
- sha256 = "1813r4jxfa2zgzm2ppjhrq62flfmxai8433pklxcrl4fp5wwx9yv";
+ sha256 = "047yjryy9d6hp18wkigbfrw9r0sm31inlsp8l28fhxg8ii032sgq";
};
nativeBuildInputs = [ autoreconfHook ];
doCheck = !stdenv.isDarwin;
checkInputs = [
+ # perl is assumed by perldoc completion
+ perl
+ # ps assumed to exist by gdb, killall, pgrep, pidof,
+ # pkill, pwdx, renice, and reptyr completions
+ ps
python3Packages.pexpect
python3Packages.pytest
bashInteractive
- ];
- patches = [
- ./0001-Revert-build-Do-cmake-pc-and-profile-variable-replac.patch
- # TODO: Remove when https://github.com/scop/bash-completion/commit/2cdac1b9f24df62a1fa80c1824ee8524c9b02393
- # is availabe in a release in nixpkgs. see https://github.com/scop/bash-completion/issues/312.
- # Fixes a test failure with musl.
- (fetchpatch {
- url = "https://github.com/scop/bash-completion/commit/2cdac1b9f24df62a1fa80c1824ee8524c9b02393.patch";
- name = "bash-completion-musl-test_iconv-skip-option-completion-if-help-fails";
- sha256 = "1l53d62zf01k625nzw3vcrxky93h7bzdpchgk4argxalrn17ckvb";
- })
+ # use xdist to speed up the test run, just like upstream:
+ # https://github.com/scop/bash-completion/blob/009bf2228c68894629eb6fd17b3dc0f1f6d67615/test/requirements.txt#L4
+ python3Packages.pytest_xdist
];
- # ignore ip_addresses because it tries to touch network
- # ignore test_ls because impure logic
+ # - ignore test_gcc on ARM because it assumes -march=native
+ # - ignore test_chsh because it assumes /etc/shells exists
+ # - ignore test_ether_wake, test_ifdown, test_ifstat, test_ifup,
+ # test_iperf, test_iperf3, test_nethogs and ip_addresses
+ # because they try to touch network
+ # - ignore test_ls because impure logic
+ # - ignore test_screen because it assumes vt terminals exist
checkPhase = ''
- pytest . \
+ pytest -n $NIX_BUILD_CORES . \
+ ${stdenv.lib.optionalString (stdenv.hostPlatform.isAarch64 || stdenv.hostPlatform.isAarch32) "--ignore=test/t/test_gcc.py"} \
+ --ignore=test/t/test_chsh.py \
+ --ignore=test/t/test_ether_wake.py \
+ --ignore=test/t/test_ifdown.py \
+ --ignore=test/t/test_ifstat.py \
+ --ignore=test/t/test_ifup.py \
+ --ignore=test/t/test_iperf.py \
+ --ignore=test/t/test_iperf3.py \
+ --ignore=test/t/test_nethogs.py \
--ignore=test/t/unit/test_unit_ip_addresses.py \
- --ignore=test/t/test_ls.py
+ --ignore=test/t/test_ls.py \
+ --ignore=test/t/test_screen.py
'';
prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
@@ -55,6 +68,6 @@ stdenv.mkDerivation rec {
description = "Programmable completion for the bash shell";
license = licenses.gpl2Plus;
platforms = platforms.unix;
- maintainers = [ maintainers.peti ];
+ maintainers = [ maintainers.peti maintainers.xfix ];
};
}
diff --git a/nixpkgs/pkgs/shells/elvish/default.nix b/nixpkgs/pkgs/shells/elvish/default.nix
index 4b9e4817ee8..2aa23cd063e 100644
--- a/nixpkgs/pkgs/shells/elvish/default.nix
+++ b/nixpkgs/pkgs/shells/elvish/default.nix
@@ -18,7 +18,7 @@ buildGoModule rec {
sha256 = "0lz9lf1swrn67kymcp2wh67lh3c0ifqm9035gpkd3zynlq3wzqfm";
};
- modSha256 = "13x4wbfj8049ygm3zbgzyr2bm4sq4x6xddrxx6shr8fydlcf1g8v";
+ vendorSha256 = null;
meta = with stdenv.lib; {
description = "A friendly and expressive command shell";
@@ -36,4 +36,4 @@ buildGoModule rec {
passthru = {
shellPath = "/bin/elvish";
};
-}
+} \ No newline at end of file
diff --git a/nixpkgs/pkgs/shells/fish/default.nix b/nixpkgs/pkgs/shells/fish/default.nix
index 0ea8dce4405..11d9e48008f 100644
--- a/nixpkgs/pkgs/shells/fish/default.nix
+++ b/nixpkgs/pkgs/shells/fish/default.nix
@@ -1,20 +1,28 @@
-{ stdenv, fetchurl, coreutils, utillinux,
- which, gnused, gnugrep,
- groff, man-db, getent, libiconv, pcre2,
- gettext, ncurses, python3,
- cmake
- , fetchpatch
-
- , writeText
-
- , useOperatingSystemEtc ? true
-
+{ stdenv
+, lib
+, fetchurl
+, coreutils
+, utillinux
+, which
+, gnused
+, gnugrep
+, groff
+, man-db
+, getent
+, libiconv
+, pcre2
+, gettext
+, ncurses
+, python3
+, cmake
+
+, runCommand
+, writeText
+, nixosTests
+, useOperatingSystemEtc ? true
}:
-
-with stdenv.lib;
-
let
- etcConfigAppendixText = ''
+ etcConfigAppendix = writeText "config.fish.appendix" ''
############### ↓ Nix hook for sourcing /etc/fish/config.fish ↓ ###############
# #
# Origin:
@@ -46,7 +54,7 @@ let
############### ↑ Nix hook for sourcing /etc/fish/config.fish ↑ ###############
'';
- fishPreInitHooks = ''
+ fishPreInitHooks = writeText "__fish_build_paths_suffix.fish" ''
# source nixos environment
# note that this is required:
# 1. For all shells, not just login shells (mosh needs this as do some other command-line utilities)
@@ -90,40 +98,49 @@ let
fish = stdenv.mkDerivation rec {
pname = "fish";
- version = "3.1.0";
-
- etcConfigAppendix = builtins.toFile "etc-config.appendix.fish" etcConfigAppendixText;
+ version = "3.1.2";
src = fetchurl {
- # There are differences between the release tarball and the tarball github packages from the tag
- # Hence we cannot use fetchFromGithub
+ # There are differences between the release tarball and the tarball GitHub
+ # packages from the tag. Specifically, it comes with a file containing its
+ # version, which is used in `build_tools/git_version_gen.sh` to determine
+ # the shell's actual version (and what it displays when running `fish
+ # --version`), as well as the local documentation for all builtins (and
+ # maybe other things).
url = "https://github.com/fish-shell/fish-shell/releases/download/${version}/${pname}-${version}.tar.gz";
- sha256 = "0s2356mlx7fp9kgqgw91lm5ds2i9iq9hq071fbqmcp3875l1xnz5";
+ sha256 = "1vblmb3x2k2cb0db5jdyflppnlqsm7i6jjaidyhmvaaw7ch2gffm";
};
- nativeBuildInputs = [ cmake ];
- buildInputs = [ ncurses libiconv pcre2 ];
+ # We don't have access to the codesign executable, so we patch this out.
+ # For more information, see: https://github.com/fish-shell/fish-shell/issues/6952
+ patches = lib.optional stdenv.isDarwin ./dont-codesign-on-mac.diff;
+
+ nativeBuildInputs = [
+ cmake
+ ];
+
+ buildInputs = [
+ ncurses
+ libiconv
+ pcre2
+ ];
preConfigure = ''
patchShebangs ./build_tools/git_version_gen.sh
'';
- patches = [
- # Fixes compilation on old Apple SDKs
- (fetchpatch {
- url = "https://github.com/fish-shell/fish-shell/commit/10385d422b3e2a823faebfdaf13edd0e7f48a27f.patch";
- sha256 = "0hj13kyjf5wr9j5afd4mfylcr7mz68ilbncbcf307drk1lv1lvrn";
- })
- ];
-
# Required binaries during execution
# Python: Autocompletion generated from manpages and config editing
propagatedBuildInputs = [
- coreutils gnugrep gnused
- python3 groff gettext
- ] ++ optional (!stdenv.isDarwin) man-db;
-
- postInstall = ''
+ coreutils
+ gnugrep
+ gnused
+ python3
+ groff
+ gettext
+ ] ++ lib.optional (!stdenv.isDarwin) man-db;
+
+ postInstall = with lib; ''
sed -r "s|command grep|command ${gnugrep}/bin/grep|" \
-i "$out/share/fish/functions/grep.fish"
sed -i "s|which |${which}/bin/which |" \
@@ -148,6 +165,13 @@ let
sed -i "s|/usr/local/sbin /sbin /usr/sbin||" \
$out/share/fish/completions/{sudo.fish,doas.fish}
+ cat > $out/share/fish/functions/__fish_anypython.fish <<EOF
+ function __fish_anypython
+ echo ${python3.interpreter}
+ return 0
+ end
+ EOF
+
'' + optionalString stdenv.isLinux ''
sed -e "s| ul| ${utillinux}/bin/ul|" \
-i "$out/share/fish/functions/__fish_print_help.fish"
@@ -162,53 +186,58 @@ let
sed -i "s|command manpath|command ${man-db}/bin/manpath|" \
"$out/share/fish/functions/man.fish"
'' + optionalString useOperatingSystemEtc ''
- tee -a $out/etc/fish/config.fish < ${(writeText "config.fish.appendix" etcConfigAppendixText)}
+ tee -a $out/etc/fish/config.fish < ${etcConfigAppendix}
'' + ''
- tee -a $out/share/fish/__fish_build_paths.fish < ${(writeText "__fish_build_paths_suffix.fish" fishPreInitHooks)}
+ tee -a $out/share/fish/__fish_build_paths.fish < ${fishPreInitHooks}
'';
enableParallelBuilding = true;
- meta = with stdenv.lib; {
+ meta = with lib; {
description = "Smart and user-friendly command line shell";
homepage = "http://fishshell.com/";
license = licenses.gpl2;
platforms = platforms.unix;
- maintainers = with maintainers; [ ocharles ];
+ maintainers = with maintainers; [ ocharles cole-h ];
};
passthru = {
shellPath = "/bin/fish";
+ tests = {
+ nixos = nixosTests.fish;
+
+ # Test the fish_config tool by checking the generated splash page.
+ # Since the webserver requires a port to run, it is not started.
+ fishConfig =
+ let fishScript = writeText "test.fish" ''
+ set -x __fish_bin_dir ${fish}/bin
+ echo $__fish_bin_dir
+ cp -r ${fish}/share/fish/tools/web_config/* .
+ chmod -R +w *
+
+ # if we don't set `delete=False`, the file will get cleaned up
+ # automatically (leading the test to fail because there's no
+ # tempfile to check)
+ sed -e "s@, mode='w'@, mode='w', delete=False@" -i webconfig.py
+
+ # we delete everything after the fileurl is assigned
+ sed -e '/fileurl =/q' -i webconfig.py
+ echo "print(fileurl)" >> webconfig.py
+
+ # and check whether the message appears on the page
+ cat (${python3}/bin/python ./webconfig.py \
+ | tail -n1 | sed -ne 's|.*\(/build/.*\)|\1|p' \
+ ) | grep 'a href="http://localhost.*Start the Fish Web config'
+
+ # cannot test the http server because it needs a localhost port
+ '';
+ in
+ runCommand "test-web-config" { } ''
+ HOME=$(mktemp -d)
+ ${fish}/bin/fish ${fishScript} && touch $out
+ '';
+ };
};
};
-
- tests = {
-
- # Test the fish_config tool by checking the generated splash page.
- # Since the webserver requires a port to run, it is not started.
- fishConfig =
- let fishScript = writeText "test.fish" ''
- set -x __fish_bin_dir ${fish}/bin
- echo $__fish_bin_dir
- cp -r ${fish}/share/fish/tools/web_config/* .
- chmod -R +w *
- # we delete everything after the fileurl is assigned
- sed -e '/fileurl =/q' -i webconfig.py
- echo "print(fileurl)" >> webconfig.py
- # and check whether the message appears on the page
- cat (${python3}/bin/python ./webconfig.py \
- | tail -n1 | sed -ne 's|.*\(/tmp/.*\)|\1|p' \
- ) | grep 'a href="http://localhost.*Start the Fish Web config'
-
- # cannot test the http server because it needs a localhost port
- '';
- in ''
- HOME=$(mktemp -d)
- ${fish}/bin/fish ${fishScript}
- '';
- };
-
- # FIXME(Profpatsch) replace withTests stub
- withTests = flip const;
-
-in withTests tests fish
+in
+fish
diff --git a/nixpkgs/pkgs/shells/fish/dont-codesign-on-mac.diff b/nixpkgs/pkgs/shells/fish/dont-codesign-on-mac.diff
new file mode 100644
index 00000000000..c61350b0549
--- /dev/null
+++ b/nixpkgs/pkgs/shells/fish/dont-codesign-on-mac.diff
@@ -0,0 +1,12 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 7d220a032..786b60e6e 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -183,7 +183,6 @@ ENDFUNCTION(CODESIGN_ON_MAC target)
+ # Define a function to link dependencies.
+ FUNCTION(FISH_LINK_DEPS_AND_SIGN target)
+ TARGET_LINK_LIBRARIES(${target} fishlib)
+- CODESIGN_ON_MAC(${target})
+ ENDFUNCTION(FISH_LINK_DEPS_AND_SIGN)
+
+ # Define libfish.a.
diff --git a/nixpkgs/pkgs/shells/mksh/default.nix b/nixpkgs/pkgs/shells/mksh/default.nix
index b2f50c62dc4..682d88dbfbd 100644
--- a/nixpkgs/pkgs/shells/mksh/default.nix
+++ b/nixpkgs/pkgs/shells/mksh/default.nix
@@ -2,14 +2,14 @@
stdenv.mkDerivation rec {
pname = "mksh";
- version = "58";
+ version = "59";
src = fetchurl {
urls = [
"https://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R${version}.tgz"
"http://pub.allbsd.org/MirOS/dist/mir/mksh/mksh-R${version}.tgz"
];
- sha256 = "1337zjvzh14yncg9igdry904a3ns52l8rnm1kcq262w7f5xyp2v0";
+ sha256 = "1flhsdfksvv9gmfkgjwgdia1irv53g9abmq3y22s5a5ycyx2hajr";
};
dontConfigure = true;
diff --git a/nixpkgs/pkgs/shells/nushell/default.nix b/nixpkgs/pkgs/shells/nushell/default.nix
index 43e0d2cb56a..ecef2fc436e 100644
--- a/nixpkgs/pkgs/shells/nushell/default.nix
+++ b/nixpkgs/pkgs/shells/nushell/default.nix
@@ -15,16 +15,16 @@
rustPlatform.buildRustPackage rec {
pname = "nushell";
- version = "0.12.0";
+ version = "0.14.0";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
- sha256 = "0cy3rm0yr4ay4hcgw202w5k1sqw09kd75a0yyk0s0v0cxpmssf5n";
+ sha256 = "1g289zma19mh85xl5ffq1f3cv76piqavbhzs9m55mkg9wrhmgljd";
};
- cargoSha256 = "0q89841jwbsvl4c90sl8wgnjjl8q0bb3kw7sl7k9dpnfmj5j144x";
+ cargoSha256 = "16a32q2la7f4628m947dwif3j3wszsy603sj29ch6l2vdab40i3p";
nativeBuildInputs = [ pkg-config ]
++ lib.optionals (withStableFeatures && stdenv.isLinux) [ python3 ];
diff --git a/nixpkgs/pkgs/shells/oil/default.nix b/nixpkgs/pkgs/shells/oil/default.nix
index 9e2aa3454d2..019a66c77eb 100644
--- a/nixpkgs/pkgs/shells/oil/default.nix
+++ b/nixpkgs/pkgs/shells/oil/default.nix
@@ -1,12 +1,12 @@
-{ stdenv, lib, fetchurl, fetchpatch, readline }:
+{ stdenv, lib, fetchurl, readline }:
stdenv.mkDerivation rec {
pname = "oil";
- version = "0.7.0";
+ version = "0.8.pre4";
src = fetchurl {
url = "https://www.oilshell.org/download/oil-${version}.tar.xz";
- sha256 = "12c9s462879adb6mwd3fqafk0dnqsm16s18rhym6cmzfzy8v8zm3";
+ sha256 = "07kj86hrvlz9f1gh3qv4hdaz3qnb4a2qf0dnxhd2r0qilrkjanxh";
};
postPatch = ''
diff --git a/nixpkgs/pkgs/shells/powershell/default.nix b/nixpkgs/pkgs/shells/powershell/default.nix
index d4c18f9f581..a5c22d125af 100644
--- a/nixpkgs/pkgs/shells/powershell/default.nix
+++ b/nixpkgs/pkgs/shells/powershell/default.nix
@@ -1,21 +1,21 @@
-{ stdenv, autoPatchelfHook, fetchzip, libunwind, libuuid, icu, curl
-, darwin, makeWrapper, less, openssl_1_0_2, pam, lttng-ust }:
+{ stdenv, lib, autoPatchelfHook, fetchzip, libunwind, libuuid, icu, curl
+, darwin, makeWrapper, less, openssl_1_1, pam, lttng-ust }:
let platformString = if stdenv.isDarwin then "osx"
else if stdenv.isLinux then "linux"
else throw "unsupported platform";
- platformSha = if stdenv.isDarwin then "0jb2xm79m3m14zk7v730ai1zvxcb5a13jbkkya0qy7332k6gn6bl"
- else if stdenv.isLinux then "0s0jvc9ha6fw8qy7f5n0v6zf043rawsjdlm5wvqxq1q2idz7xcw1"
+ platformSha = if stdenv.isDarwin then "0c71w6z6sc86si07i6vy4w3069jal7476wyiizyr7qjm9m22963f"
+ else if stdenv.isLinux then "0m13y66a6w64s31qbi3j5x8jll6dfrin890jah8kyncsvlyisqg3"
else throw "unsupported platform";
platformLdLibraryPath = if stdenv.isDarwin then "DYLD_FALLBACK_LIBRARY_PATH"
else if stdenv.isLinux then "LD_LIBRARY_PATH"
else throw "unsupported platform";
- libraries = [ libunwind libuuid icu curl openssl_1_0_2 ] ++
+ libraries = [ libunwind libuuid icu curl openssl_1_1 ] ++
(if stdenv.isLinux then [ pam lttng-ust ] else [ darwin.Libsystem ]);
in
stdenv.mkDerivation rec {
pname = "powershell";
- version = "6.2.3";
+ version = "7.0.0";
src = fetchzip {
url = "https://github.com/PowerShell/PowerShell/releases/download/v${version}/powershell-${version}-${platformString}-x64.tar.gz";
@@ -26,21 +26,42 @@ stdenv.mkDerivation rec {
buildInputs = [ less ] ++ libraries;
nativeBuildInputs = [ autoPatchelfHook makeWrapper ];
- installPhase = ''
+ installPhase =
+ let
+ ext = stdenv.hostPlatform.extensions.sharedLibrary;
+ in ''
+ pslibs=$out/share/powershell
+ mkdir -p $pslibs
+
+ cp -r * $pslibs
+
+ rm -f $pslibs/libcrypto${ext}.1.0.0
+ rm -f $pslibs/libssl${ext}.1.0.0
+
+ ls $pslibs
+ '' + lib.optionalString (!stdenv.isDarwin) ''
+ patchelf --replace-needed libcrypto${ext}.1.0.0 libcrypto${ext}.1.1 $pslibs/libmi.so
+ patchelf --replace-needed libssl${ext}.1.0.0 libssl${ext}.1.1 $pslibs/libmi.so
+ '' + ''
+
mkdir -p $out/bin
- mkdir -p $out/share/powershell
- cp -r * $out/share/powershell
- makeWrapper $out/share/powershell/pwsh $out/bin/pwsh \
+
+ makeWrapper $pslibs/pwsh $out/bin/pwsh \
--prefix ${platformLdLibraryPath} : "${stdenv.lib.makeLibraryPath libraries}" \
--set TERM xterm --set POWERSHELL_TELEMETRY_OPTOUT 1 --set DOTNET_CLI_TELEMETRY_OPTOUT 1
'';
dontStrip = true;
- meta = with stdenv.lib; {
- description = "Cross-platform (Windows, Linux, and macOS) automation and configuration tool/framework";
+ doInstallCheck = true;
+ installCheck = ''
+ $out/bin/pwsh --help > /dev/null
+ '';
+
+ meta = with lib; {
+ description = "Powerful cross-platform (Windows, Linux, and macOS) shell and scripting language based on .NET";
homepage = "https://github.com/PowerShell/PowerShell";
- maintainers = [ maintainers.yrashk ];
+ maintainers = with maintainers; [ yrashk srgom ];
platforms = [ "x86_64-darwin" "x86_64-linux" ];
license = with licenses; [ mit ];
};
diff --git a/nixpkgs/pkgs/shells/tcsh/default.nix b/nixpkgs/pkgs/shells/tcsh/default.nix
index e22811828fc..87cbf8c59f3 100644
--- a/nixpkgs/pkgs/shells/tcsh/default.nix
+++ b/nixpkgs/pkgs/shells/tcsh/default.nix
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
patches = stdenv.lib.optional stdenv.hostPlatform.isMusl
(fetchpatch {
name = "sysmalloc.patch";
- url = "https://git.alpinelinux.org/cgit/aports/plain/community/tcsh/001-sysmalloc.patch?id=184585c046cdd56512f1a76e426dd799b368f8cf";
+ url = "https://git.alpinelinux.org/aports/plain/community/tcsh/001-sysmalloc.patch?id=184585c046cdd56512f1a76e426dd799b368f8cf";
sha256 = "1qc6ydxhdfizsbkaxhpn3wib8sfphrw10xnnsxx2prvzg9g2zp67";
});
diff --git a/nixpkgs/pkgs/shells/xonsh/default.nix b/nixpkgs/pkgs/shells/xonsh/default.nix
index dc0a45c3e52..192e38b963d 100644
--- a/nixpkgs/pkgs/shells/xonsh/default.nix
+++ b/nixpkgs/pkgs/shells/xonsh/default.nix
@@ -8,14 +8,14 @@
python3Packages.buildPythonApplication rec {
pname = "xonsh";
- version = "0.9.17";
+ version = "0.9.18";
# fetch from github because the pypi package ships incomplete tests
src = fetchFromGitHub {
owner = "xonsh";
repo = "xonsh";
rev = version;
- sha256 = "0ynfnphbp69am390m5zfzk5rzj1749vs7rzyq310f6mk7xdq6j4v";
+ sha256 = "1zg5dl9qdysbaw2djy9f7f1ydp7vzjv840cjwqxlmg9615lgg7xa";
};
LC_ALL = "en_US.UTF-8";
diff --git a/nixpkgs/pkgs/shells/zsh/antibody/default.nix b/nixpkgs/pkgs/shells/zsh/antibody/default.nix
index cc4726a3cb4..385fb97b913 100644
--- a/nixpkgs/pkgs/shells/zsh/antibody/default.nix
+++ b/nixpkgs/pkgs/shells/zsh/antibody/default.nix
@@ -11,7 +11,7 @@ buildGoModule rec {
sha256 = "0m7c879b3f402av20jsybq2dhhckbknlvn2n1csp7xmcz4zcyn1n";
};
- modSha256 = "0yny1p8vll1wdqdlwyxf9m4kd5njdm7nq527blqqa680zf2k4h8b";
+ vendorSha256 = "072kxr68p9f58w2q98fjcn4wzd5szy5l5sz8sh4ssapljvic2lam";
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
@@ -21,4 +21,4 @@ buildGoModule rec {
license = licenses.mit;
maintainers = with maintainers; [ filalex77 worldofpeace ];
};
-}
+} \ No newline at end of file
diff --git a/nixpkgs/pkgs/shells/zsh/oh-my-zsh/default.nix b/nixpkgs/pkgs/shells/zsh/oh-my-zsh/default.nix
index f11ef6a6cd9..45acd8bb03a 100644
--- a/nixpkgs/pkgs/shells/zsh/oh-my-zsh/default.nix
+++ b/nixpkgs/pkgs/shells/zsh/oh-my-zsh/default.nix
@@ -4,13 +4,13 @@
{ stdenv, fetchgit }:
stdenv.mkDerivation rec {
- version = "2020-04-10";
+ version = "2020-05-16";
pname = "oh-my-zsh";
- rev = "d53355ab38763c6f637008d019c8e8b98f19b714";
+ rev = "cbd6fbe7a7c3ef260f497704092dc43f2e953c3f";
src = fetchgit { inherit rev;
url = "https://github.com/ohmyzsh/ohmyzsh";
- sha256 = "1rf086f26plqsyx4h19acqacwyr99amavhn1lk0g13kk58kcq9v6";
+ sha256 = "1h7q68n9nbmv9rgvzcx5ciisw8gh5p3ka0bz0abhmk00xsinhy09";
};
pathsToLink = [ "/share/oh-my-zsh" ];
diff --git a/nixpkgs/pkgs/shells/zsh/zsh-history/default.nix b/nixpkgs/pkgs/shells/zsh/zsh-history/default.nix
index f839cf7cf2e..47f590a78f2 100644
--- a/nixpkgs/pkgs/shells/zsh/zsh-history/default.nix
+++ b/nixpkgs/pkgs/shells/zsh/zsh-history/default.nix
@@ -13,7 +13,7 @@ buildGoModule rec {
nativeBuildInputs = [ installShellFiles ];
- modSha256 = "0f10b86gyn7m7lw43c8y1m30mdg0i092a319v3cb2qj05jb9vn42";
+ vendorSha256 = "13rc1afds5xg30faqz35haha4kxg73b5nvjirbrkc6kna0vhb54z";
goPackagePath = "github.com/b4b4r07/history";
postInstall = ''
@@ -33,4 +33,4 @@ buildGoModule rec {
passthru.tests = {
zsh-history-shell-integration = nixosTests.zsh-history;
};
-}
+} \ No newline at end of file
diff --git a/nixpkgs/pkgs/shells/zsh/zsh-powerlevel10k/default.nix b/nixpkgs/pkgs/shells/zsh/zsh-powerlevel10k/default.nix
index 7fac0fb8ab8..169173a42e8 100644
--- a/nixpkgs/pkgs/shells/zsh/zsh-powerlevel10k/default.nix
+++ b/nixpkgs/pkgs/shells/zsh/zsh-powerlevel10k/default.nix
@@ -5,13 +5,13 @@
stdenv.mkDerivation rec {
pname = "powerlevel10k";
- version = "1.5.0";
+ version = "1.7.0";
src = fetchFromGitHub {
owner = "romkatv";
repo = "powerlevel10k";
rev = "v${version}";
- sha256 = "0r8vccgfy85ryswaigzgwmvhvrhlap7nrg7bi66w63877znqlksj";
+ sha256 = "04j37qmgzj62gixysj3di9dccfib4hx1c4ld9kcms3ag7k403bgj";
};
patches = [