mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
ocamlPackages.linenoise: init at 1.1.0 (#41489)
This commit is contained in:
parent
5467f0ed7a
commit
999871400b
29
pkgs/development/ocaml-modules/linenoise/default.nix
Normal file
29
pkgs/development/ocaml-modules/linenoise/default.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{ stdenv, fetchFromGitHub, ocaml, jbuilder, findlib, result }:
|
||||
|
||||
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
|
||||
then throw "linenoise is not available for OCaml ${ocaml.version}"
|
||||
else
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ocaml${ocaml.version}-linenoise-${version}";
|
||||
version = "1.1.0";
|
||||
src = fetchFromGitHub {
|
||||
owner = "fxfactorial";
|
||||
repo = "ocaml-linenoise";
|
||||
rev = "v${version}";
|
||||
sha256 = "1h6rqfgmhmd7p5z8yhk6zkbrk4yzw1v2fgwas2b7g3hqs6y0xj0q";
|
||||
};
|
||||
|
||||
buildInputs = [ ocaml findlib jbuilder ];
|
||||
propagatedBuildInputs = [ result ];
|
||||
|
||||
inherit (jbuilder) installPhase;
|
||||
|
||||
meta = {
|
||||
description = "OCaml bindings to linenoise";
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
||||
inherit (ocaml.meta) platforms;
|
||||
inherit (src.meta) homepage;
|
||||
};
|
||||
}
|
@ -363,6 +363,8 @@ let
|
||||
then callPackage ../development/ocaml-modules/lambda-term { }
|
||||
else lambdaTerm-1_6;
|
||||
|
||||
linenoise = callPackage ../development/ocaml-modules/linenoise { };
|
||||
|
||||
llvm = callPackage ../development/ocaml-modules/llvm {
|
||||
llvm = pkgs.llvm_39;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user