1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 06:05:13 +00:00
nixpkgs/pkgs/shells/es/default.nix
Sandro Jäckel 33a395f195
yacc: deprecate alias
and add a new line after the alphabetically sorting to please my inner monk
2021-04-04 03:18:58 +02:00

46 lines
1.1 KiB
Nix

{ lib, stdenv, fetchurl, readline, bison }:
let
version = "0.9.1";
in
stdenv.mkDerivation {
pname = "es";
inherit version;
src = fetchurl {
url = "https://github.com/wryun/es-shell/releases/download/v${version}/es-${version}.tar.gz";
sha256 = "1fplzxc6lncz2lv2fyr2ig23rgg5j96rm2bbl1rs28mik771zd5h";
};
# The distribution tarball does not have a single top-level directory.
preUnpack = ''
mkdir $name
cd $name
sourceRoot=.
'';
buildInputs = [ readline bison ];
configureFlags = [ "--with-readline" ];
meta = with lib; {
description = "An extensible shell with higher order functions";
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";
};
}