Merge remote-tracking branch 'upstream/master' into hardened-stdenv
This commit is contained in:
@@ -10,7 +10,7 @@ stdenv.mkDerivation {
|
||||
src = fetchgit {
|
||||
url = "git://github.com/wryun/es-shell";
|
||||
rev = "fdf29d5296ce3a0ef96d2b5952cff07878753975";
|
||||
sha256 = "1hj0g8r59ry9l50h4gdal38nf8lvb3cgl6c9bx5aabkw5i778dfk";
|
||||
sha256 = "12faa9b5ffwydgwyjp57zr19sqap2ma3crj6wd2rx1hv30dkll7p";
|
||||
};
|
||||
|
||||
buildInputs = [ readline yacc libtool autoconf automake ];
|
||||
|
||||
@@ -75,7 +75,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 fish_complete_path $profiles"/share/fish/vendor_completions.d" $fish_complete_path
|
||||
set fish_complete_path \$profiles"/share/fish/vendor_completions.d" \$fish_complete_path
|
||||
end
|
||||
EOF
|
||||
'';
|
||||
|
||||
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
|
||||
src = fetchgit {
|
||||
url = "https://github.com/robbyrussell/oh-my-zsh";
|
||||
rev = "1b1315a777328095cd8b5f364fd4345eeae7c4bf";
|
||||
sha256 = "0q3w96a9rjxmqknycxjqjs5mi0q2mark8yrfim7snxrf9ajv0ypk";
|
||||
sha256 = "1bdh6k46kwggihw6iblm1q60x4hjxpbkhaqap0nfpapqvlba4nv6";
|
||||
};
|
||||
|
||||
phases = "installPhase";
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
{ stdenv, lib, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }:
|
||||
|
||||
buildGoPackage rec {
|
||||
name = "oh-${version}";
|
||||
version = "20160522-${stdenv.lib.strings.substring 0 7 rev}";
|
||||
rev = "0daaf4081475fb9d6b3801c85019bdd57b2ee9b4";
|
||||
|
||||
goPackagePath = "github.com/michaelmacinnis/oh";
|
||||
|
||||
src = fetchgit {
|
||||
inherit rev;
|
||||
url = "https://github.com/michaelmacinnis/oh";
|
||||
sha256 = "0ajidzs0aisbw74nri9ks6sx6644nmwkisc9mvxm3f89zmnlsgwr";
|
||||
};
|
||||
|
||||
goDeps = ./deps.json;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
[
|
||||
{
|
||||
"include": "../../libs.json",
|
||||
"packages": [
|
||||
"github.com/michaelmacinnis/adapted",
|
||||
"github.com/peterh/liner",
|
||||
"golang.org/x/sys"
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -1,31 +1,44 @@
|
||||
{stdenv, fetchurl, python3Packages}:
|
||||
{ stdenv, fetchFromGitHub, python3Packages, glibcLocales, coreutils }:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
name = "xonsh-${version}";
|
||||
version = "0.2.7";
|
||||
version = "0.3.2";
|
||||
|
||||
# The logo xonsh prints during build contains unicode characters, and this
|
||||
# fails because locales have not been set up in the build environment.
|
||||
# We can fix this on Linux by setting:
|
||||
# export LOCALE_ARCHIVE=${pkgs.glibcLocales}/lib/locale/locale-archive
|
||||
# but this would not be a cross platform solution, so it's simpler to just
|
||||
# patch the setup.py script to not print the logo during build.
|
||||
prePatch = ''
|
||||
substituteInPlace setup.py --replace "print(logo)" ""
|
||||
src = fetchFromGitHub {
|
||||
owner = "scopatz";
|
||||
repo = "xonsh";
|
||||
rev = version;
|
||||
sha256= "0cqfrpvkgzk0q3dykavqxwfqrx61y8rbzixmwcv8pfa9r2sya24q";
|
||||
};
|
||||
|
||||
## The logo xonsh prints during build contains unicode characters, and this
|
||||
## fails because locales have not been set up in the build environment.
|
||||
## We can fix this on Linux by setting:
|
||||
## export LOCALE_ARCHIVE=${pkgs.glibcLocales}/lib/locale/locale-archive
|
||||
## but this would not be a cross platform solution, so it's simpler to just
|
||||
## patch the setup.py script to not print the logo during build.
|
||||
#prePatch = ''
|
||||
# substituteInPlace setup.py --replace "print(logo)" ""
|
||||
#'';
|
||||
patchPhase = ''
|
||||
rm xonsh/winutils.py
|
||||
sed -i -e "s|/bin/ls|${coreutils}/bin/ls|" tests/test_execer.py
|
||||
rm tests/test_main.py
|
||||
rm tests/test_man.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ python3Packages.ply ];
|
||||
checkPhase = ''
|
||||
HOME=$TMPDIR nosetests -x
|
||||
'';
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/x/xonsh/${name}.tar.gz";
|
||||
sha256= "10pglgmzj6l0l8mb3r2rxnbigqigcqn9njcgdcrg7s1b409cq4md";
|
||||
};
|
||||
buildInputs = with python3Packages; [ glibcLocales nose pygments ];
|
||||
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 = [ maintainers.spwhitt ];
|
||||
maintainers = with maintainers; [ spwhitt garbas ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ in stdenv.mkDerivation rec {
|
||||
src = fetchgit {
|
||||
url = "https://github.com/sorin-ionescu/prezto";
|
||||
inherit rev;
|
||||
sha256 = "1q137r2vv16cq962n0f2hyn8m04d3phvh72gz737zv99jcrqg821";
|
||||
sha256 = "17mql9mb7zbf8q1nvnci60yrmz5bl9q964i8dv4shz8b42861cdg";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
patches = [
|
||||
|
||||
Reference in New Issue
Block a user