mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 03:30:45 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
46 lines
1.2 KiB
Nix
46 lines
1.2 KiB
Nix
{ lib, stdenv, fetchurl, readline, bison }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "es";
|
|
version = "0.9.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/wryun/es-shell/releases/download/v${version}/es-${version}.tar.gz";
|
|
sha256 = "sha256-ySZIK0IITpA+uHHuHrDO/Ana5vGt64QI3Z6TMDXE9d0=";
|
|
};
|
|
|
|
# The distribution tarball does not have a single top-level directory.
|
|
preUnpack = ''
|
|
mkdir $name
|
|
cd $name
|
|
sourceRoot=.
|
|
'';
|
|
|
|
strictDeps = true;
|
|
nativeBuildInputs = [ bison ];
|
|
buildInputs = [ readline ];
|
|
|
|
configureFlags = [ "--with-readline" ];
|
|
|
|
meta = with lib; {
|
|
description = "Extensible shell with higher order functions";
|
|
mainProgram = "es";
|
|
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";
|
|
};
|
|
}
|