Add a derivation for deriving (ocaml instance derivation à la Haskell)
This commit is contained in:
parent
6863dfeccc
commit
ffe02360dc
32
pkgs/development/ocaml-modules/ocsigen-deriving/default.nix
Normal file
32
pkgs/development/ocaml-modules/ocsigen-deriving/default.nix
Normal file
@ -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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -3441,6 +3441,8 @@ let
|
|||||||
|
|
||||||
zed = callPackage ../development/ocaml-modules/zed { };
|
zed = callPackage ../development/ocaml-modules/zed { };
|
||||||
|
|
||||||
|
ocsigen_deriving = callPackage ../development/ocaml-modules/ocsigen-deriving { };
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
ocamlPackages = recurseIntoAttrs ocamlPackages_4_01_0;
|
ocamlPackages = recurseIntoAttrs ocamlPackages_4_01_0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user