nixpkgs/pkgs/development/interpreters/hy/default.nix

28 lines
795 B
Nix
Raw Normal View History

{ stdenv, fetchurl, pythonPackages }:
pythonPackages.buildPythonApplication rec {
name = "hy-${version}";
2018-02-24 22:37:58 +01:00
version = "0.14.0";
src = fetchurl {
url = "mirror://pypi/h/hy/${name}.tar.gz";
2018-02-24 22:37:58 +01:00
sha256 = "0cbdh1q0zm00p4h7i44kir4qhw0p6sid78xf6llrx2p21llsnv98";
};
propagatedBuildInputs = with pythonPackages; [ appdirs clint astor rply ];
2018-02-24 22:37:58 +01:00
# The build generates a .json parser file in the home directory under .cache.
# This is needed to get it to not try and open files in /homeless-shelter
preConfigure = ''
export HOME=$TMP
'';
meta = {
description = "A LISP dialect embedded in Python";
homepage = http://hylang.org/;
license = stdenv.lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.nixy ];
platforms = stdenv.lib.platforms.all;
};
}