nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 ocamlPackages,
6}:
7
8stdenv.mkDerivation {
9 pname = "ledit";
10 version = "2.06";
11
12 src = fetchFromGitHub {
13 owner = "chetmurthy";
14 repo = "ledit";
15 rev = "3dbd668d9c69aab5ccd61f6b906c14122ae3271d";
16 hash = "sha256-9+isvwOw5Iw5OToztqZ5PiQPj6Pxl2ZqAC7UMF+tCM4=";
17 };
18
19 preBuild = ''
20 substituteInPlace Makefile --replace /bin/rm rm --replace /usr/local/ $out/
21 '';
22
23 strictDeps = true;
24
25 nativeBuildInputs = with ocamlPackages; [
26 ocaml
27 findlib
28 camlp5
29 ];
30
31 buildInputs = with ocamlPackages; [
32 camlp5
33 camlp-streams
34 ];
35
36 meta = {
37 homepage = "http://pauillac.inria.fr/~ddr/ledit/";
38 description = "Line editor, allowing to use shell commands with control characters like in emacs";
39 license = lib.licenses.bsd3;
40 maintainers = [ lib.maintainers.delta ];
41 mainProgram = "ledit";
42 };
43}