1{ lib, stdenv, fetchzip, ocaml, camlp5}:
2
3stdenv.mkDerivation {
4 pname = "ledit";
5 version = "2.04";
6
7 src = fetchzip {
8 url = "http://pauillac.inria.fr/~ddr/ledit/distrib/src/ledit-2.04.tgz";
9 sha512 = "16vlv6rcsddwrvsqqiwxdfv5rxvblhrx0k84g7pjibi0an241yx8aqf8cj4f4sgl5xfs3frqrdf12zqwjf2h4jvk8jyhyar8n0nj3g0";
10 };
11
12 preBuild = ''
13 mkdir -p $out/bin
14 substituteInPlace Makefile --replace /bin/rm rm --replace BINDIR=/usr/local/bin BINDIR=$out/bin
15 '';
16
17 strictDeps = true;
18
19 nativeBuildInputs = [
20 ocaml
21 camlp5
22 ];
23
24 meta = with lib; {
25 homepage = "http://pauillac.inria.fr/~ddr/ledit/";
26 description = "A line editor, allowing to use shell commands with control characters like in emacs";
27 license = licenses.bsd3;
28 maintainers = [ maintainers.delta ];
29 broken = lib.versionOlder ocaml.version "4.03";
30 };
31}