@@ -1,4 +1,12 @@
1−{ stdenv, lib, fetchzip, ocaml, findlib, ocamlbuild, oasis, ocaml_optcomp, camlp4
1+{ stdenv
2+, lib
3+, fetchFromGitHub
4+, ocaml
5+, findlib
6+, ocamlbuild
7+, oasis
8+, ocaml_optcomp
9+, camlp4
210, num
311}:
412
@@ -19,23 +27,27 @@ let inherit (param) version; in
1927stdenv.mkDerivation {
2028 pname = "ocsigen-deriving";
2129 inherit version;
22− src = fetchzip {
23− url = "https://github.com/ocsigen/deriving/archive/${version}.tar.gz";
30+
31+ src = fetchFromGitHub {
32+ owner = "ocsigen";
33+ repo = "deriving";
34+ rev = version;
2435 inherit (param) sha256;
2536 };
2637
2738 buildInputs = [ ocaml findlib ocamlbuild oasis ocaml_optcomp camlp4 ]
28− ++ (param.buildInputs or []);
39+ ++ (param.buildInputs or [ ]);
2940
3041 createFindlibDestdir = true;
3142
32− meta = {
43+ meta = {
3344 homepage = "https://github.com/ocsigen/deriving";
3445 description = "Extension to OCaml for deriving functions from type declarations";
3546 license = lib.licenses.mit;
36− platforms = ocaml.meta.platforms or [];
47+ platforms = ocaml.meta.platforms or [ ];
3748 maintainers = with lib.maintainers; [
38− gal_bolle vbgl
49+ gal_bolle
50+ vbgl
3951 ];
4052 };
4153