2017-01-31 14:54:02 +01:00
|
|
|
{ stdenv, fetchurl, readline, yacc }:
|
2015-04-10 20:28:03 +02:00
|
|
|
|
|
|
|
let
|
2017-01-31 14:54:02 +01:00
|
|
|
version = "0.9.1";
|
2015-04-10 20:28:03 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "es";
|
|
|
|
inherit version;
|
2015-04-10 20:28:03 +02:00
|
|
|
|
2017-01-31 14:54:02 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/wryun/es-shell/releases/download/v${version}/es-${version}.tar.gz";
|
|
|
|
sha256 = "1fplzxc6lncz2lv2fyr2ig23rgg5j96rm2bbl1rs28mik771zd5h";
|
2015-04-10 20:28:03 +02:00
|
|
|
};
|
|
|
|
|
2017-01-31 14:54:02 +01:00
|
|
|
# The distribution tarball does not have a single top-level directory.
|
|
|
|
preUnpack = ''
|
|
|
|
mkdir $name
|
|
|
|
cd $name
|
|
|
|
sourceRoot=.
|
|
|
|
'';
|
2015-04-10 20:28:03 +02:00
|
|
|
|
2017-01-31 14:54:02 +01:00
|
|
|
buildInputs = [ readline yacc ];
|
2015-04-10 20:28:03 +02:00
|
|
|
|
2017-01-31 14:54:02 +01:00
|
|
|
configureFlags = [ "--with-readline" ];
|
2015-04-10 20:28:03 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Es is an extensible shell";
|
|
|
|
longDescription =
|
|
|
|
''
|
|
|
|
Es is an extensible shell. The language was derived
|
|
|
|
from the Plan 9 shell, rc, and was influenced by
|
|
|
|
functional programming languages, such as Scheme,
|
|
|
|
and the Tcl embeddable programming language.
|
|
|
|
'';
|
|
|
|
homepage = http://wryun.github.io/es-shell/;
|
|
|
|
license = licenses.publicDomain;
|
2017-01-31 14:54:36 +01:00
|
|
|
maintainers = with maintainers; [ sjmackenzie ttuegel ];
|
2015-04-10 20:28:03 +02:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
2016-05-14 15:02:24 +02:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
shellPath = "/bin/es";
|
|
|
|
};
|
2015-04-10 20:28:03 +02:00
|
|
|
}
|