Merge remote-tracking branch 'upstream/master' into hardened-stdenv
This commit is contained in:
@@ -15,4 +15,8 @@ stdenv.mkDerivation rec {
|
||||
description = "A POSIX-compliant implementation of /bin/sh that aims to be as small as possible";
|
||||
hydraPlatforms = stdenv.lib.platforms.linux;
|
||||
};
|
||||
|
||||
passthru = {
|
||||
shellPath = "/bin/dash";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
|
||||
|
||||
buildGoPackage rec {
|
||||
name = "elvish-${version}";
|
||||
version = "0.1";
|
||||
|
||||
goPackagePath = "github.com/elves/elvish";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = "elvish";
|
||||
owner = "elves";
|
||||
rev = "4125c2bb927330b0100b354817dd4ad252118ba6";
|
||||
sha256 = "1xwhjbw0y6j5xy19hz39456l0v6vjg2icd7c1jx4h1cydk3yn39f";
|
||||
};
|
||||
|
||||
goDeps = ./deps.json;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A Novel unix shell in go language";
|
||||
homepage = https://github.com/elves/elvish;
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ vrthra ];
|
||||
platforms = with platforms; [ linux ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
[
|
||||
{
|
||||
"include": "../../libs.json",
|
||||
"packages": [
|
||||
"github.com/mattn/go-sqlite3",
|
||||
"github.com/elves/getopt"
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -43,4 +43,8 @@ stdenv.mkDerivation {
|
||||
maintainers = [ maintainers.sjmackenzie ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
|
||||
passthru = {
|
||||
shellPath = "/bin/es";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -8,13 +8,13 @@ with stdenv.lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "fish-${version}";
|
||||
version = "2.3.0";
|
||||
version = "2.3.1";
|
||||
|
||||
patches = [ ./etc_config.patch ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://fishshell.com/files/${version}/${name}.tar.gz";
|
||||
sha256 = "1ralmp7lavdl0plc09ppm232aqsn0crxx6m3hgaa06ibam3sqawi";
|
||||
sha256 = "0r46p64lg6da3v6chsa4gisvl04kd3rpy60yih8r870kbp9wm2ij";
|
||||
};
|
||||
|
||||
buildInputs = [ ncurses libiconv pcre2 ];
|
||||
@@ -74,7 +74,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
# make fish pick up completions from nix profile
|
||||
if status --is-interactive
|
||||
set -l profiles (echo $NIX_PROFILES | ${coreutils}/bin/tr ' ' '\n')
|
||||
set -l profiles (echo \$NIX_PROFILES | ${coreutils}/bin/tr ' ' '\n')
|
||||
set fish_complete_path \$profiles"/share/fish/vendor_completions.d" \$fish_complete_path
|
||||
end
|
||||
EOF
|
||||
@@ -87,4 +87,8 @@ stdenv.mkDerivation rec {
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ ocharles ];
|
||||
};
|
||||
|
||||
passthru = {
|
||||
shellPath = "/bin/fish";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -45,4 +45,8 @@ stdenv.mkDerivation rec {
|
||||
maintainers = with maintainers; [ AndersonTorres nckx ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
|
||||
passthru = {
|
||||
shellPath = "/bin/mksh";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -7,12 +7,12 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "oh-my-zsh-git-${version}";
|
||||
version = "2016-04-20";
|
||||
version = "2016-07-05";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://github.com/robbyrussell/oh-my-zsh";
|
||||
rev = "1b1315a777328095cd8b5f364fd4345eeae7c4bf";
|
||||
sha256 = "1bdh6k46kwggihw6iblm1q60x4hjxpbkhaqap0nfpapqvlba4nv6";
|
||||
rev = "644bc641ad48c74c88631d79d48ec9b6f3f5a3e5";
|
||||
sha256 = "1lmblfcd68pnc38bn6yjqs7sap5qinj37xv881a1rx4q0w38an07";
|
||||
};
|
||||
|
||||
phases = "installPhase";
|
||||
@@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
|
||||
cp -r $src/* $outdir
|
||||
cd $outdir
|
||||
|
||||
rm MIT-LICENSE.txt
|
||||
rm LICENSE.txt
|
||||
rm -rf .git*
|
||||
|
||||
chmod -R +w templates
|
||||
|
||||
@@ -22,4 +22,8 @@ buildDotnetPackage rec {
|
||||
platforms = platforms.all;
|
||||
license = with licenses; [ bsd3 gpl3 ];
|
||||
};
|
||||
|
||||
passthru = {
|
||||
shellPath = "/bin/pash";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,4 +35,8 @@ stdenv.mkDerivation rec {
|
||||
maintainers = [ stdenv.lib.maintainers.bjg ];
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
};
|
||||
|
||||
passthru = {
|
||||
shellPath = "/bin/rush";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
From: christos <christos>
|
||||
Date: Thu, 28 May 2015 11:47:03 +0000
|
||||
Subject: [PATCH] avoid gcc-5 optimization malloc + memset = calloc (Fridolin
|
||||
Pokorny)
|
||||
|
||||
---
|
||||
tc.alloc.c | 5 ++++-
|
||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tc.alloc.c b/tc.alloc.c
|
||||
index b9aec63..c1cb330 100644
|
||||
--- a/tc.alloc.c
|
||||
+++ b/tc.alloc.c
|
||||
@@ -348,10 +348,13 @@ calloc(size_t i, size_t j)
|
||||
{
|
||||
#ifndef lint
|
||||
char *cp;
|
||||
+ volatile size_t k;
|
||||
|
||||
i *= j;
|
||||
cp = xmalloc(i);
|
||||
- memset(cp, 0, i);
|
||||
+ /* Stop gcc 5.x from optimizing malloc+memset = calloc */
|
||||
+ k = i;
|
||||
+ memset(cp, 0, k);
|
||||
|
||||
return ((memalign_t) cp);
|
||||
#else
|
||||
@@ -1,22 +1,44 @@
|
||||
{stdenv, fetchurl, ncurses}:
|
||||
{ stdenv, fetchurl
|
||||
, ncurses }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "tcsh-6.18.01";
|
||||
name = "tcsh-${version}";
|
||||
version = "6.19.00";
|
||||
|
||||
src = fetchurl {
|
||||
url = "ftp://ftp.funet.fi/pub/unix/shells/tcsh/${name}.tar.gz";
|
||||
sha256 = "1a4z9kwgx1iqqzvv64si34m60gj34p7lp6rrcrb59s7ka5wa476q";
|
||||
urls = [
|
||||
"http://ftp.funet.fi/pub/mirrors/ftp.astron.com/pub/tcsh/${name}.tar.gz"
|
||||
"ftp://ftp.astron.com/pub/tcsh/${name}.tar.gz"
|
||||
"ftp://ftp.funet.fi/pub/unix/shells/tcsh/${name}.tar.gz"
|
||||
];
|
||||
sha256 = "0jaw51382pqyb6d1kgfg8ir0wd3p5qr2bmg8svcmjhlyp3h73qhj";
|
||||
};
|
||||
|
||||
patches = [ ./avoid-gcc5-wrong-optimisation.patch ];
|
||||
|
||||
buildInputs = [ncurses];
|
||||
buildInputs = [ ncurses ];
|
||||
|
||||
postInstall =
|
||||
''
|
||||
ln -s tcsh $out/bin/csh
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = http://www.tcsh.org/;
|
||||
meta = with stdenv.lib;{
|
||||
description = "An enhanced version of the Berkeley UNIX C shell (csh)";
|
||||
longDescription = ''
|
||||
tcsh is an enhanced but completely compatible version of the
|
||||
Berkeley UNIX C shell, csh. It is a command language interpreter
|
||||
usable both as an interactive login shell and a shell script
|
||||
command processor.
|
||||
It includes:
|
||||
- command-line editor
|
||||
- programmable word completion
|
||||
- spelling correction
|
||||
- history mechanism
|
||||
- job control
|
||||
'';
|
||||
homepage = http://www.tcsh.org/;
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ AndersonTorres ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
|
||||
passthru = {
|
||||
shellPath = "/bin/tcsh";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
name = "xonsh-${version}";
|
||||
version = "0.3.2";
|
||||
version = "0.4.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "scopatz";
|
||||
repo = "xonsh";
|
||||
rev = version;
|
||||
sha256= "0cqfrpvkgzk0q3dykavqxwfqrx61y8rbzixmwcv8pfa9r2sya24q";
|
||||
sha256= "1d5w307vgpqjimhfipkwsnh3lvvajva9fjl58sg9hh322qicm01g";
|
||||
};
|
||||
|
||||
## The logo xonsh prints during build contains unicode characters, and this
|
||||
@@ -23,22 +23,29 @@ python3Packages.buildPythonApplication rec {
|
||||
patchPhase = ''
|
||||
rm xonsh/winutils.py
|
||||
sed -i -e "s|/bin/ls|${coreutils}/bin/ls|" tests/test_execer.py
|
||||
sed -ie 's|test_win_ipconfig|_test_win_ipconfig|g' tests/test_execer.py
|
||||
sed -ie 's|test_ipconfig|_test_ipconfig|g' tests/test_execer.py
|
||||
rm tests/test_main.py
|
||||
rm tests/test_man.py
|
||||
rm tests/test_replay.py
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
HOME=$TMPDIR nosetests -x
|
||||
HOME=$TMPDIR XONSH_INTERACTIVE=0 nosetests -x
|
||||
'';
|
||||
|
||||
buildInputs = with python3Packages; [ glibcLocales nose pygments ];
|
||||
buildInputs = with python3Packages; [ glibcLocales nose pytest ];
|
||||
propagatedBuildInputs = with python3Packages; [ ply prompt_toolkit ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A Python-ish, BASHwards-compatible shell";
|
||||
homepage = "http://xonsh.org";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ spwhitt garbas ];
|
||||
maintainers = with maintainers; [ spwhitt garbas vrthra ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
|
||||
passthru = {
|
||||
shellPath = "/bin/xonsh";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
{ stdenv, fetchFromGitHub}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "zsh-completions-${version}";
|
||||
version = "0.18.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zsh-users";
|
||||
repo = "zsh-completions";
|
||||
rev = "${version}";
|
||||
sha256 = "0iwb1kaidjxaz66kbbdzbydbdlfc6dk21sflzar0zy25jgx1p4xs";
|
||||
};
|
||||
|
||||
installPhase= ''
|
||||
install -D --target-directory=$out/share/zsh/site-functions src/*
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Additional completion definitions for zsh";
|
||||
homepage = "https://github.com/zsh-users/zsh-completions";
|
||||
license = stdenv.lib.licenses.free;
|
||||
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
maintainers = [ stdenv.lib.maintainers.olejorgenb ];
|
||||
};
|
||||
}
|
||||
@@ -80,4 +80,8 @@ EOF
|
||||
maintainers = with stdenv.lib.maintainers; [ chaoflow pSub ];
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
};
|
||||
|
||||
passthru = {
|
||||
shellPath = "/bin/zsh";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user