nixpkgs/pkgs/shells/xonsh/default.nix

32 lines
1 KiB
Nix
Raw Normal View History

2016-05-11 16:19:58 +00:00
{stdenv, fetchurl, python3Packages}:
2015-03-26 18:25:17 +00:00
python3Packages.buildPythonApplication rec {
2015-03-26 18:25:17 +00:00
name = "xonsh-${version}";
2016-05-11 16:19:58 +00:00
version = "0.2.7";
2015-03-26 18:25:17 +00:00
# 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)" ""
'';
propagatedBuildInputs = [ python3Packages.ply ];
2016-05-11 16:19:58 +00:00
src = fetchurl {
url = "mirror://pypi/x/xonsh/${name}.tar.gz";
sha256= "10pglgmzj6l0l8mb3r2rxnbigqigcqn9njcgdcrg7s1b409cq4md";
2015-03-26 18:25:17 +00:00
};
meta = with stdenv.lib; {
description = "A Python-ish, BASHwards-compatible shell";
homepage = "http://xonsh.org";
license = licenses.bsd3;
maintainers = [ maintainers.spwhitt ];
platforms = platforms.all;
};
}