mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 11:32:03 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{ lib, stdenv, fetchurl, readline, yacc }:
|
|
|
|
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 yacc ];
|
|
|
|
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";
|
|
};
|
|
}
|