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