diff --git a/pkgs/by-name/le/ledit/package.nix b/pkgs/by-name/le/ledit/package.nix index c2b2d7728441..3527dfa1c25e 100644 --- a/pkgs/by-name/le/ledit/package.nix +++ b/pkgs/by-name/le/ledit/package.nix @@ -22,6 +22,8 @@ stdenv.mkDerivation { strictDeps = true; + dontStrip = true; + nativeBuildInputs = with ocamlPackages; [ ocaml findlib @@ -33,6 +35,15 @@ stdenv.mkDerivation { camlp-streams ]; + doInstallCheck = true; + + installCheckPhase = '' + runHook preInstallCheck + echo hello | $out/bin/ledit -h /dev/null cat > ledit-check.out + grep -q hello ledit-check.out + runHook postInstallCheck + ''; + meta = { homepage = "http://pauillac.inria.fr/~ddr/ledit/"; description = "Line editor, allowing to use shell commands with control characters like in emacs";