ocamlPackages.lem: init at 2022-12-10
This commit is contained in:
parent
0e6fa5a27b
commit
7ff1dcdf74
2 changed files with 47 additions and 0 deletions
45
pkgs/development/ocaml-modules/lem/default.nix
Normal file
45
pkgs/development/ocaml-modules/lem/default.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{ stdenv
|
||||
, fetchFromGitHub
|
||||
, lib
|
||||
, ncurses
|
||||
, makeWrapper
|
||||
, ocamlbuild
|
||||
, findlib
|
||||
, ocaml
|
||||
, num
|
||||
, zarith
|
||||
}:
|
||||
|
||||
lib.throwIfNot (lib.versionAtLeast ocaml.version "4.07")
|
||||
"lem is not available for OCaml ${ocaml.version}"
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ocaml${ocaml.version}-lem";
|
||||
version = "2022-12-10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rems-project";
|
||||
repo = "lem";
|
||||
rev = version;
|
||||
hash = "sha256-ZQgcuIVRkJS0KtpzjbO4OPHGg6B0TadWA6XpRir30y8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ocamlbuild findlib ocaml ];
|
||||
propagatedBuildInputs = [ zarith num ];
|
||||
|
||||
installFlags = [ "INSTALL_DIR=$(out)" ];
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/lem --set LEMLIB $out/share/lem/library
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/rems-project/lem";
|
||||
description = "A tool for lightweight executable mathematics";
|
||||
maintainers = with maintainers; [ genericnerdyusername ];
|
||||
license = with licenses; [ bsd3 gpl2 ];
|
||||
platforms = ocaml.meta.platforms;
|
||||
};
|
||||
}
|
|
@ -743,6 +743,8 @@ let
|
|||
|
||||
lastfm = callPackage ../development/ocaml-modules/lastfm { };
|
||||
|
||||
lem = callPackage ../development/ocaml-modules/lem { };
|
||||
|
||||
lens = callPackage ../development/ocaml-modules/lens { };
|
||||
|
||||
letsencrypt = callPackage ../development/ocaml-modules/letsencrypt { };
|
||||
|
|
Loading…
Reference in a new issue