Merge remote-tracking branch 'origin/master' into gcc-9
This commit is contained in:
@@ -10,4 +10,6 @@ patch: [
|
||||
(patch "007" "16xg37gp1b8zlj5969w8mcrparwqlcbj9695vn3qhgb7wdz1xd0p")
|
||||
(patch "008" "1qyp19krjh8zxvb0jgwmyjz40djslwcf4xi7kc1ab0iaca44bipf")
|
||||
(patch "009" "00yrjjqd95s81b21qq3ba1y7h879q8jaajlkjggc6grhcwbs4g7d")
|
||||
(patch "010" "04ca5bjv456v538mkspzvn4xb2zdphh31r4fpvfm9p5my0jw7yyn")
|
||||
(patch "011" "1sklyixvsv8993kxzs0jigacpdchjrq7jv5xpdx7kbqyp4rf6k9c")
|
||||
]
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{ stdenv, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, autoreconfHook
|
||||
, python3Packages
|
||||
, bashInteractive
|
||||
@@ -6,6 +7,7 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "bash-completion";
|
||||
# TODO: Remove musl patch below upon next release!
|
||||
version = "2.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
@@ -26,6 +28,14 @@ stdenv.mkDerivation rec {
|
||||
|
||||
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";
|
||||
})
|
||||
];
|
||||
|
||||
# ignore ip_addresses because it tries to touch network
|
||||
|
||||
51
pkgs/shells/nushell/default.nix
Normal file
51
pkgs/shells/nushell/default.nix
Normal file
@@ -0,0 +1,51 @@
|
||||
{ stdenv
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, openssl
|
||||
, pkg-config
|
||||
, python3
|
||||
, xorg
|
||||
, libiconv
|
||||
, AppKit
|
||||
, Security
|
||||
, withStableFeatures ? true
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "nushell";
|
||||
version = "0.7.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "09kcyvhnhf5qsaivgrw58l9jh48rx40i9lkf10cpmk7jvqxgqyks";
|
||||
};
|
||||
|
||||
cargoSha256 = "0bdxlbl33kilp9ai40dvdzlx9vcl8r21br82r5ljs2pg521jd66p";
|
||||
|
||||
nativeBuildInputs = [ pkg-config ]
|
||||
++ stdenv.lib.optionals (withStableFeatures && stdenv.isLinux) [ python3 ];
|
||||
|
||||
buildInputs = stdenv.lib.optionals stdenv.isLinux [ openssl ]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ]
|
||||
++ stdenv.lib.optionals (withStableFeatures && stdenv.isLinux) [ xorg.libX11 ]
|
||||
++ stdenv.lib.optionals (withStableFeatures && stdenv.isDarwin) [ AppKit ];
|
||||
|
||||
cargoBuildFlags = stdenv.lib.optional withStableFeatures "--features=stable";
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$TMPDIR
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A modern shell written in Rust";
|
||||
homepage = "https://www.nushell.sh/";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ filalex77 marsam ];
|
||||
};
|
||||
|
||||
passthru = {
|
||||
shellPath = "/bin/nu";
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildGoPackage, fetchgit }:
|
||||
{ stdenv, buildGoPackage, fetchgit, lib }:
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "oh";
|
||||
@@ -14,4 +14,10 @@ buildGoPackage rec {
|
||||
};
|
||||
|
||||
goDeps = ./deps.nix;
|
||||
|
||||
meta = with lib;{
|
||||
homepage = "https://github.com/michaelmacinnis/oh";
|
||||
description = "A Unix shell";
|
||||
license = stdenv.lib.licenses.mit;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,22 +2,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "oil";
|
||||
version = "0.7.pre5";
|
||||
version = "0.7.pre9";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.oilshell.org/download/oil-${version}.tar.xz";
|
||||
sha256 = "1vpk4my8lp7wik8ywspawimya2a7hb1qjkp5vpm7ypmkya5jqivc";
|
||||
sha256 = "1j17yxpjqv37vbl3qhnwl3gdmb33n9c6g6byxcc8mhbvbw91zi5i";
|
||||
};
|
||||
|
||||
|
||||
# TODO remove at next bump
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/oilshell/oil/commit/81551d76ae5a8b53179f2472492d0b44f13f84fd.patch";
|
||||
sha256 = "0v99cx13ajqmf489vvxkqhqi9pjyc8jn0dgc8wp78gsv9js2k7km";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs build
|
||||
'';
|
||||
@@ -34,7 +25,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
meta = {
|
||||
description = "A new unix shell";
|
||||
homepage = https://www.oilshell.org/;
|
||||
homepage = "https://www.oilshell.org/";
|
||||
|
||||
license = with lib.licenses; [
|
||||
psfl # Includes a portion of the python interpreter and standard library
|
||||
|
||||
@@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
|
||||
mkdir -p $out/share/powershell
|
||||
cp -r * $out/share/powershell
|
||||
makeWrapper $out/share/powershell/pwsh $out/bin/pwsh --prefix ${platformLdLibraryPath} : "${stdenv.lib.makeLibraryPath libraries}" \
|
||||
--set TERM xterm --set POWERSHELL_TELEMETRY_OPTOUT 1
|
||||
--set TERM xterm --set POWERSHELL_TELEMETRY_OPTOUT 1 --set DOTNET_CLI_TELEMETRY_OPTOUT 1
|
||||
'';
|
||||
|
||||
dontStrip = true;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "antibody";
|
||||
version = "4.1.2";
|
||||
version = "4.2.0";
|
||||
|
||||
goPackagePath = "github.com/getantibody/antibody";
|
||||
|
||||
@@ -10,15 +10,15 @@ buildGoModule rec {
|
||||
owner = "getantibody";
|
||||
repo = "antibody";
|
||||
rev = "v${version}";
|
||||
sha256 = "1csanmvix7b2sa7nsy8nh3jq6gmhp8i51xivsabm1lj2y30c0ly3";
|
||||
sha256 = "1vds7mxqxa7xlhvjvmnh1nr1ra3dciav0qlv45s1dmwn5qrcilci";
|
||||
};
|
||||
|
||||
modSha256 = "1p9cw92ivwgpkvjxvwd9anbd1vzhpicm9il4pg37z2kgr2ihhnyh";
|
||||
modSha256 = "1n9sgrm16iig600f4q1cmbwwk0822isjvbyazplylha843510b17";
|
||||
|
||||
meta = with lib; {
|
||||
description = "The fastest shell plugin manager";
|
||||
homepage = https://github.com/getantibody/antibody;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ worldofpeace ];
|
||||
maintainers = with maintainers; [ filalex77 worldofpeace ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -5,13 +5,13 @@ with lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "grml-zsh-config";
|
||||
version = "0.16.0";
|
||||
version = "0.16.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "grml";
|
||||
repo = "grml-etc-core";
|
||||
rev = "v${version}";
|
||||
sha256 = "1b794c3hfhw51aqp8dg8smxqjv4x518rs1ib4pdglc4d785rlq1k";
|
||||
sha256 = "1dmhwgs5v4f1yanbi6dg1lbpzmvq1l3dq7sra811ycsf4f6g0d7f";
|
||||
};
|
||||
|
||||
buildInputs = [ zsh coreutils txt2tags procps ]
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
{ stdenv, fetchgit }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "2019-10-30";
|
||||
version = "2019-12-22";
|
||||
pname = "oh-my-zsh";
|
||||
rev = "687c50bdf999f8efd45f3c8f578a62329b0633da";
|
||||
rev = "38929084f98684b9267d7f0cfe3e7f9aa5f861d2";
|
||||
|
||||
src = fetchgit { inherit rev;
|
||||
url = "https://github.com/robbyrussell/oh-my-zsh";
|
||||
sha256 = "13vflcqshvr323sdh4yrs4wlvbxhhc7ldhcyawcwassk44g2kx8w";
|
||||
url = "https://github.com/ohmyzsh/ohmyzsh";
|
||||
sha256 = "0iwyfl8gk3hzd5hpryr0sk96n9p5m3riqdnaclmpasa0dyynd2ya";
|
||||
};
|
||||
|
||||
pathsToLink = [ "/share/oh-my-zsh" ];
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
oldVersion="$(nix-instantiate --eval -E "with import ./. {}; oh-my-zsh.version or (builtins.parseDrvName oh-my-zsh.name).version" | tr -d '"')"
|
||||
latestSha="$(curl -L -s https://api.github.com/repos/robbyrussell/oh-my-zsh/commits\?sha\=master\&since\=${oldVersion} | jq -r '.[0].sha')"
|
||||
oldVersion="$(nix-instantiate --eval -E "with import ./. {}; lib.getVersion oh-my-zsh" | tr -d '"')"
|
||||
latestSha="$(curl -L -s https://api.github.com/repos/ohmyzsh/ohmyzsh/commits\?sha\=master\&since\=${oldVersion} | jq -r '.[0].sha')"
|
||||
url="$(nix-instantiate --eval -E "with import ./. {}; oh-my-zsh.src.url" | tr -d '"')"
|
||||
|
||||
if [ ! "null" = "${latestSha}" ]; then
|
||||
latestDate="$(curl -L -s https://api.github.com/repos/robbyrussell/oh-my-zsh/commits/${latestSha} | jq '.commit.author.date' | sed 's|"\(.*\)T.*|\1|g')"
|
||||
latestDate="$(curl -L -s https://api.github.com/repos/ohmyzsh/ohmyzsh/commits/${latestSha} | jq '.commit.author.date' | sed 's|"\(.*\)T.*|\1|g')"
|
||||
update-source-version oh-my-zsh "${latestSha}" --version-key=rev
|
||||
update-source-version oh-my-zsh "${latestDate}" --ignore-same-hash
|
||||
nixpkgs="$(git rev-parse --show-toplevel)"
|
||||
|
||||
30
pkgs/shells/zsh/zsh-fast-syntax-highlighting/default.nix
Normal file
30
pkgs/shells/zsh/zsh-fast-syntax-highlighting/default.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ stdenvNoCC, lib, fetchFromGitHub }:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "zsh-fast-syntax-highlighting";
|
||||
version = "1.54";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zdharma";
|
||||
repo = "fast-syntax-highlighting";
|
||||
rev = "v${version}";
|
||||
sha256 = "019hda2pj8lf7px4h1z07b9l6icxx4b2a072jw36lz9bh6jahp32";
|
||||
};
|
||||
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
plugindir="$out/share/zsh/site-functions"
|
||||
|
||||
mkdir -p "$plugindir"
|
||||
cp -r -- {,_,-}fast-* chroma themes "$plugindir"/
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Syntax-highlighting for Zshell";
|
||||
homepage = "https://github.com/zdharma/fast-syntax-highlighting";
|
||||
license = licenses.bsd3;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
From efc16fbe7e41784f218d9c6cb4239b209cd77214 Mon Sep 17 00:00:00 2001
|
||||
From: Christian Kampka <christian@kampka.net>
|
||||
Date: Sat, 12 Oct 2019 21:47:47 +0200
|
||||
Subject: [PATCH 1/2] Fix path marshalling when saveing config
|
||||
|
||||
---
|
||||
config/config.go | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/config/config.go b/config/config.go
|
||||
index 69a10c5..b5c61fe 100644
|
||||
--- a/config/config.go
|
||||
+++ b/config/config.go
|
||||
@@ -26,7 +26,7 @@ func (p *Path) UnmarshalText(text []byte) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
-func (p *Path) MarshalText() (text []byte, err error) {
|
||||
+func (p Path) MarshalText() (text []byte, err error) {
|
||||
return []byte(p.path), nil
|
||||
}
|
||||
|
||||
--
|
||||
2.19.2
|
||||
|
||||
@@ -1,20 +1,16 @@
|
||||
{ lib, fetchFromGitHub, buildGoModule, installShellFiles }:
|
||||
{ lib, fetchFromGitHub, buildGoModule, installShellFiles, nixosTests }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "zsh-history";
|
||||
version = "2019-10-07";
|
||||
version = "2019-12-10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "b4b4r07";
|
||||
repo = "history";
|
||||
rev = "a08ad2dcffc852903ae54b0c5704b8a085009ef7";
|
||||
sha256 = "0r3p04my40dagsq1dssnk583qrlcps9f7ajp43z7mq73q3hrya5s";
|
||||
rev = "8da016bd91b0c2eb53c9980f00eee6abdbb097e2";
|
||||
sha256 = "13n643ik1zjvpk8h9458yd9ffahhbdnigmbrbmpn7b7g23wqqsi3";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./0001-Fix-path-marshalling-when-saveing-config.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
modSha256 = "0f10b86gyn7m7lw43c8y1m30mdg0i092a319v3cb2qj05jb9vn42";
|
||||
@@ -33,4 +29,8 @@ buildGoModule rec {
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ kampka ];
|
||||
};
|
||||
|
||||
passthru.tests = {
|
||||
zsh-history-shell-integration = nixosTests.zsh-history;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user