Merge pull request #3712 from vbgl/ocaml-sqlite3EZ
Adds ocaml-sqlite3EZ and its dependency ocaml+twt
This commit is contained in:
commit
53c9a17959
23
pkgs/development/ocaml-modules/sqlite3EZ/default.nix
Normal file
23
pkgs/development/ocaml-modules/sqlite3EZ/default.nix
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{stdenv, fetchurl, ocaml, findlib, twt, ocaml_sqlite3 }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "ocaml-sqlite3EZ-0.1.0";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = https://github.com/mlin/ocaml-sqlite3EZ/archive/v0.1.0.tar.gz;
|
||||||
|
sha256 = "8ed2c5d5914a65cbd95589ef11bfb8b38a020eb850cdd49b8adce7ee3a563748";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ ocaml findlib twt ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ ocaml_sqlite3 ];
|
||||||
|
|
||||||
|
createFindlibDestdir = true;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = http://github.com/mlin/ocaml-sqlite3EZ;
|
||||||
|
description = "A thin wrapper for sqlite3-ocaml with a simplified interface";
|
||||||
|
license = stdenv.lib.licenses.mit;
|
||||||
|
platforms = ocaml.meta.platforms;
|
||||||
|
};
|
||||||
|
}
|
29
pkgs/development/ocaml-modules/twt/default.nix
Normal file
29
pkgs/development/ocaml-modules/twt/default.nix
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{stdenv, fetchurl, ocaml, findlib }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "ocaml-twt-0.93.2";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = https://github.com/mlin/twt/archive/v0.93.2.tar.gz;
|
||||||
|
sha256 = "aec091fbd1e6c4d252cf9664237418b4bc8c7d6b7a17475589be78365397e768";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ ocaml findlib ];
|
||||||
|
|
||||||
|
createFindlibDestdir = true;
|
||||||
|
|
||||||
|
configurePhase = ''
|
||||||
|
mkdir $out/bin
|
||||||
|
'';
|
||||||
|
|
||||||
|
dontBuild = true;
|
||||||
|
|
||||||
|
installFlags = "PREFIX=$(out)";
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = http://people.csail.mit.edu/mikelin/ocaml+twt/;
|
||||||
|
description = "“The Whitespace Thing” for OCaml";
|
||||||
|
license = stdenv.lib.licenses.mit;
|
||||||
|
platforms = ocaml.meta.platforms;
|
||||||
|
};
|
||||||
|
}
|
@ -3403,6 +3403,10 @@ let
|
|||||||
opam_1_1 = callPackage ../development/tools/ocaml/opam/1.1.nix { };
|
opam_1_1 = callPackage ../development/tools/ocaml/opam/1.1.nix { };
|
||||||
opam = opam_1_1;
|
opam = opam_1_1;
|
||||||
|
|
||||||
|
sqlite3EZ = callPackage ../development/ocaml-modules/sqlite3EZ { };
|
||||||
|
|
||||||
|
twt = callPackage ../development/ocaml-modules/twt { };
|
||||||
|
|
||||||
utop = callPackage ../development/tools/ocaml/utop { };
|
utop = callPackage ../development/tools/ocaml/utop { };
|
||||||
|
|
||||||
sawja = callPackage ../development/ocaml-modules/sawja { };
|
sawja = callPackage ../development/ocaml-modules/sawja { };
|
||||||
|
Loading…
Reference in New Issue
Block a user