Commit e2a47abb authored by Vincent Laporte's avatar Vincent Laporte Committed by Vincent Laporte
Browse files

ledit: 2.04 → 2.06

parent d3fc723c
Loading
Loading
Loading
Loading
+16 −9
Original line number Diff line number Diff line
{ lib, stdenv, fetchzip, ocaml, camlp5}:
{ lib, stdenv, fetchFromGitHub, ocamlPackages }:

stdenv.mkDerivation {
  pname = "ledit";
  version = "2.04";
  version = "2.06";

  src = fetchzip {
    url = "http://pauillac.inria.fr/~ddr/ledit/distrib/src/ledit-2.04.tgz";
    sha512 = "16vlv6rcsddwrvsqqiwxdfv5rxvblhrx0k84g7pjibi0an241yx8aqf8cj4f4sgl5xfs3frqrdf12zqwjf2h4jvk8jyhyar8n0nj3g0";
  src = fetchFromGitHub {
    owner = "chetmurthy";
    repo = "ledit";
    rev = "3dbd668d9c69aab5ccd61f6b906c14122ae3271d";
    hash = "sha256-9+isvwOw5Iw5OToztqZ5PiQPj6Pxl2ZqAC7UMF+tCM4=";
  };

  preBuild = ''
    mkdir -p $out/bin
    substituteInPlace Makefile --replace /bin/rm rm --replace BINDIR=/usr/local/bin BINDIR=$out/bin
    substituteInPlace Makefile --replace /bin/rm rm --replace /usr/local/ $out/
  '';

  strictDeps = true;

  nativeBuildInputs = [
  nativeBuildInputs = with ocamlPackages; [
    ocaml
    findlib
    camlp5
  ];

  buildInputs = with ocamlPackages; [
    camlp5
    camlp-streams
  ];


  meta = with lib; {
    homepage = "http://pauillac.inria.fr/~ddr/ledit/";
    description = "A line editor, allowing to use shell commands with control characters like in emacs";
    license = licenses.bsd3;
    maintainers = [ maintainers.delta ];
    broken = lib.versionOlder ocaml.version "4.03";
  };
}
+1 −3
Original line number Diff line number Diff line
@@ -10174,9 +10174,7 @@ with pkgs;
  lact = callPackage ../tools/system/lact { };
  ledit = callPackage ../tools/misc/ledit {
    inherit (ocaml-ng.ocamlPackages_4_11) ocaml camlp5;
  };
  ledit = callPackage ../tools/misc/ledit { };
  ledmon = callPackage ../tools/system/ledmon { };