2021-03-14 17:50:12 +00:00
|
|
|
{ lib, stdenv, fetchurl, readline, bison }:
|
2015-04-10 18:28:03 +00:00
|
|
|
|
2021-07-14 15:10:11 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2015-04-10 18:28:03 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "es";
|
2022-03-03 05:20:49 +00:00
|
|
|
version = "0.9.2";
|
2015-04-10 18:28:03 +00:00
|
|
|
|
2017-01-31 13:54:02 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/wryun/es-shell/releases/download/v${version}/es-${version}.tar.gz";
|
2022-03-03 05:20:49 +00:00
|
|
|
sha256 = "sha256-ySZIK0IITpA+uHHuHrDO/Ana5vGt64QI3Z6TMDXE9d0=";
|
2015-04-10 18:28:03 +00:00
|
|
|
};
|
|
|
|
|
2017-01-31 13:54:02 +00:00
|
|
|
# The distribution tarball does not have a single top-level directory.
|
|
|
|
preUnpack = ''
|
|
|
|
mkdir $name
|
|
|
|
cd $name
|
|
|
|
sourceRoot=.
|
|
|
|
'';
|
2015-04-10 18:28:03 +00:00
|
|
|
|
2021-03-14 17:50:12 +00:00
|
|
|
buildInputs = [ readline bison ];
|
2015-04-10 18:28:03 +00:00
|
|
|
|
2017-01-31 13:54:02 +00:00
|
|
|
configureFlags = [ "--with-readline" ];
|
2015-04-10 18:28:03 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-26 04:08:40 +00:00
|
|
|
description = "An extensible shell with higher order functions";
|
2015-04-10 18:28:03 +00:00
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://wryun.github.io/es-shell/";
|
2015-04-10 18:28:03 +00:00
|
|
|
license = licenses.publicDomain;
|
2017-01-31 13:54:36 +00:00
|
|
|
maintainers = with maintainers; [ sjmackenzie ttuegel ];
|
2015-04-10 18:28:03 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
2016-05-14 13:02:24 +00:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
shellPath = "/bin/es";
|
|
|
|
};
|
2015-04-10 18:28:03 +00:00
|
|
|
}
|