ocamlPackages.ocsigen_deriving: 0.8.1 → 0.8.2
This commit is contained in:
committed by
Vincent Laporte
parent
df808032a8
commit
fed5706e4a
@@ -5,46 +5,34 @@
|
||||
, findlib
|
||||
, ocamlbuild
|
||||
, oasis
|
||||
, ocaml_optcomp
|
||||
, camlp4
|
||||
, num
|
||||
}:
|
||||
|
||||
let param =
|
||||
if lib.versionAtLeast ocaml.version "4.03"
|
||||
then {
|
||||
version = "0.8.1";
|
||||
sha256 = "03vzrybdpjydbpil97zmir71kpsn2yxkjnzysma7fvybk8ll4zh9";
|
||||
buildInputs = [ num ];
|
||||
} else {
|
||||
version = "0.7.1";
|
||||
sha256 = "0gg3nr3iic4rwqrcc0qvfm9x0x57zclvdsnpy0z8rv2fl5isbzms";
|
||||
};
|
||||
in
|
||||
if !lib.versionAtLeast ocaml.version "4.03"
|
||||
then throw "ocsigen-deriving is not available of OCaml ${ocaml.version}"
|
||||
else
|
||||
|
||||
let inherit (param) version; in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "ocsigen-deriving";
|
||||
inherit version;
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ocaml${ocaml.version}-ocsigen-deriving";
|
||||
version = "0.8.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ocsigen";
|
||||
repo = "deriving";
|
||||
rev = version;
|
||||
inherit (param) sha256;
|
||||
sha256 = "sha256:09rp9mrr551na0nmclpxddlrkb6l2d7763xv14xfx467kff3z0wf";
|
||||
};
|
||||
|
||||
buildInputs = [ ocaml findlib ocamlbuild oasis ocaml_optcomp camlp4 ]
|
||||
++ (param.buildInputs or [ ]);
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
buildInputs = [ ocaml findlib ocamlbuild oasis camlp4 num ];
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/ocsigen/deriving";
|
||||
description = "Extension to OCaml for deriving functions from type declarations";
|
||||
license = lib.licenses.mit;
|
||||
platforms = ocaml.meta.platforms or [ ];
|
||||
inherit (ocaml.meta) platforms;
|
||||
maintainers = with lib.maintainers; [
|
||||
gal_bolle
|
||||
vbgl
|
||||
|
||||
Reference in New Issue
Block a user