tcslib: init at version v0.3
build for tcslib as contribution as well as usage example for the new buildOasisPackage
This commit is contained in:
parent
2ea2643b13
commit
d940b44137
25
pkgs/development/ocaml-modules/tcslib/default.nix
Normal file
25
pkgs/development/ocaml-modules/tcslib/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ stdenv, fetchFromGitHub, ocamlPackages, buildOasisPackage }:
|
||||
|
||||
buildOasisPackage rec {
|
||||
name = "tcslib";
|
||||
version = "v0.3";
|
||||
|
||||
minimumSupportedOCamlVersion = "4.03.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tcsprojects";
|
||||
repo = "tcslib";
|
||||
rev = version;
|
||||
sha256 = "05g6m82blsccq8wx8knxv6a5fzww7hi624jx91f9h87nk2fsplhi";
|
||||
};
|
||||
|
||||
buildInputs = with ocamlPackages; [ ounit ];
|
||||
propagatedBuildInputs = with ocamlPackages; [ ocaml_extlib num ];
|
||||
|
||||
meta = {
|
||||
homepage = https://github.com/tcsprojects/tcslib;
|
||||
description = "A multi-purpose library for OCaml";
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
maintainers = with stdenv.lib.maintainers; [ mgttlinger ];
|
||||
};
|
||||
}
|
|
@ -721,6 +721,8 @@ let
|
|||
|
||||
stringext = callPackage ../development/ocaml-modules/stringext { };
|
||||
|
||||
tcslib = callPackage ../development/ocaml-modules/tcslib { };
|
||||
|
||||
toml = callPackage ../development/ocaml-modules/toml { };
|
||||
|
||||
topkg = callPackage ../development/ocaml-modules/topkg { };
|
||||
|
|
Loading…
Reference in a new issue