mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
25 lines
673 B
Nix
25 lines
673 B
Nix
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild }:
|
|
|
|
let version = "1.0.0"; in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "ocaml-magic-mime-${version}";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/mirage/ocaml-magic-mime/archive/v${version}.tar.gz";
|
|
sha256 = "058d83hmxd5mjccxdm3ydchmhk2lca5jdg82jg0klsigmf4ida6v";
|
|
};
|
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ];
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
meta = {
|
|
homepage = https://github.com/mirage/ocaml-magic-mime;
|
|
description = "Convert file extensions to MIME types";
|
|
platforms = ocaml.meta.platforms or [];
|
|
license = stdenv.lib.licenses.isc;
|
|
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
|
};
|
|
}
|