ocamlPackages.ocsigen-deriving: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2021-10-30 19:13:33 +02:00
parent 3f07af266b
commit 88e5a0b344

View File

@ -1,4 +1,12 @@
{ stdenv, lib, fetchzip, ocaml, findlib, ocamlbuild, oasis, ocaml_optcomp, camlp4
{ stdenv
, lib
, fetchFromGitHub
, ocaml
, findlib
, ocamlbuild
, oasis
, ocaml_optcomp
, camlp4
, num
}:
@ -19,23 +27,27 @@ let inherit (param) version; in
stdenv.mkDerivation {
pname = "ocsigen-deriving";
inherit version;
src = fetchzip {
url = "https://github.com/ocsigen/deriving/archive/${version}.tar.gz";
src = fetchFromGitHub {
owner = "ocsigen";
repo = "deriving";
rev = version;
inherit (param) sha256;
};
buildInputs = [ ocaml findlib ocamlbuild oasis ocaml_optcomp camlp4 ]
++ (param.buildInputs or []);
++ (param.buildInputs or [ ]);
createFindlibDestdir = true;
meta = {
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 [];
platforms = ocaml.meta.platforms or [ ];
maintainers = with lib.maintainers; [
gal_bolle vbgl
gal_bolle
vbgl
];
};