2021-01-11 12:49:15 +00:00
|
|
|
{ stdenv, lib, fetchzip, ocaml, findlib, ocamlbuild }:
|
2015-04-27 23:57:12 +01:00
|
|
|
|
|
|
|
let version = "1.0.0"; in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "ocaml-magic-mime";
|
|
|
|
inherit version;
|
2015-04-27 23:57:12 +01:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/mirage/ocaml-magic-mime/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "058d83hmxd5mjccxdm3ydchmhk2lca5jdg82jg0klsigmf4ida6v";
|
|
|
|
};
|
|
|
|
|
2019-10-31 10:16:15 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib ocamlbuild ];
|
|
|
|
buildInputs = [ findlib ];
|
|
|
|
configurePlatforms = [];
|
2015-04-27 23:57:12 +01:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/mirage/ocaml-magic-mime";
|
2015-04-27 23:57:12 +01:00
|
|
|
description = "Convert file extensions to MIME types";
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2021-01-11 12:49:15 +00:00
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
2015-04-27 23:57:12 +01:00
|
|
|
};
|
|
|
|
}
|