ledit: 2.04 → 2.06

This commit is contained in:
Vincent Laporte 2023-08-11 21:09:11 +02:00 committed by Vincent Laporte
parent d3fc723c04
commit e2a47abbc3
2 changed files with 17 additions and 12 deletions

View file

@ -1,31 +1,38 @@
{ lib, stdenv, fetchzip, ocaml, camlp5}: { lib, stdenv, fetchFromGitHub, ocamlPackages }:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "ledit"; pname = "ledit";
version = "2.04"; version = "2.06";
src = fetchzip { src = fetchFromGitHub {
url = "http://pauillac.inria.fr/~ddr/ledit/distrib/src/ledit-2.04.tgz"; owner = "chetmurthy";
sha512 = "16vlv6rcsddwrvsqqiwxdfv5rxvblhrx0k84g7pjibi0an241yx8aqf8cj4f4sgl5xfs3frqrdf12zqwjf2h4jvk8jyhyar8n0nj3g0"; repo = "ledit";
rev = "3dbd668d9c69aab5ccd61f6b906c14122ae3271d";
hash = "sha256-9+isvwOw5Iw5OToztqZ5PiQPj6Pxl2ZqAC7UMF+tCM4=";
}; };
preBuild = '' preBuild = ''
mkdir -p $out/bin substituteInPlace Makefile --replace /bin/rm rm --replace /usr/local/ $out/
substituteInPlace Makefile --replace /bin/rm rm --replace BINDIR=/usr/local/bin BINDIR=$out/bin
''; '';
strictDeps = true; strictDeps = true;
nativeBuildInputs = [ nativeBuildInputs = with ocamlPackages; [
ocaml ocaml
findlib
camlp5 camlp5
]; ];
buildInputs = with ocamlPackages; [
camlp5
camlp-streams
];
meta = with lib; { meta = with lib; {
homepage = "http://pauillac.inria.fr/~ddr/ledit/"; homepage = "http://pauillac.inria.fr/~ddr/ledit/";
description = "A line editor, allowing to use shell commands with control characters like in emacs"; description = "A line editor, allowing to use shell commands with control characters like in emacs";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = [ maintainers.delta ]; maintainers = [ maintainers.delta ];
broken = lib.versionOlder ocaml.version "4.03";
}; };
} }

View file

@ -10174,9 +10174,7 @@ with pkgs;
lact = callPackage ../tools/system/lact { }; lact = callPackage ../tools/system/lact { };
ledit = callPackage ../tools/misc/ledit { ledit = callPackage ../tools/misc/ledit { };
inherit (ocaml-ng.ocamlPackages_4_11) ocaml camlp5;
};
ledmon = callPackage ../tools/system/ledmon { }; ledmon = callPackage ../tools/system/ledmon { };