diff options
author | Florent Becker <florent.becker@ens-lyon.org> | 2014-05-17 12:52:37 +0200 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2014-09-06 12:44:32 +0400 |
commit | ffe02360dced874fae5168cf683e77c0451d363c (patch) | |
tree | f3da858e74069a16a200c64f42452bfa735dd136 /pkgs/development/ocaml-modules | |
parent | 6863dfeccc4296bba01a0a736878141545f54f14 (diff) | |
download | nixlib-ffe02360dced874fae5168cf683e77c0451d363c.tar nixlib-ffe02360dced874fae5168cf683e77c0451d363c.tar.gz nixlib-ffe02360dced874fae5168cf683e77c0451d363c.tar.bz2 nixlib-ffe02360dced874fae5168cf683e77c0451d363c.tar.lz nixlib-ffe02360dced874fae5168cf683e77c0451d363c.tar.xz nixlib-ffe02360dced874fae5168cf683e77c0451d363c.tar.zst nixlib-ffe02360dced874fae5168cf683e77c0451d363c.zip |
Add a derivation for deriving (ocaml instance derivation à la Haskell)
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/ocsigen-deriving/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/ocsigen-deriving/default.nix b/pkgs/development/ocaml-modules/ocsigen-deriving/default.nix new file mode 100644 index 000000000000..d2a1ed3a6240 --- /dev/null +++ b/pkgs/development/ocaml-modules/ocsigen-deriving/default.nix @@ -0,0 +1,32 @@ +{stdenv, fetchgit, ocaml, findlib, ocaml_oasis, ocaml_data_notation, ocaml_optcomp}: + +stdenv.mkDerivation { + name = "ocsigen-deriving"; + src = fetchgit { + url = "git://github.com/ocsigen/deriving"; + rev = "refs/tags/0.6.2"; + sha256 = "2b3bf3f4972d0e6eaf075f7353ce482b776726e0cd04947a89b7156384ec0662"; + }; + + buildInputs = [ocaml findlib ocaml_oasis ocaml_data_notation ocaml_optcomp]; + + configurePhase = '' + make setup-dev.exe + ./setup-dev.exe -configure --prefix $out + ''; + + createFindlibDestdir = true; + + + meta = { + homepage = https://github.com/ocsigen/deriving; + description = "Extension to OCaml for deriving functions from type declarations"; + license = "MIT"; + platforms = ocaml.meta.platforms; + maintainers = [ + stdenv.lib.maintainers.gal_bolle + ]; + }; + + +} |