ocamlPackages.magic-mime: 1.0.0 -> 1.1.3

This commit is contained in:
superherointj 2021-06-05 19:03:03 -03:00 committed by Vincent Laporte
parent fce0206462
commit 16763ef031

View file

@ -1,27 +1,21 @@
{ stdenv, lib, fetchzip, ocaml, findlib, ocamlbuild }: { lib, fetchurl, buildDunePackage }:
let version = "1.0.0"; in buildDunePackage rec {
pname = "magic-mime";
version = "1.1.3";
stdenv.mkDerivation { src = fetchurl {
pname = "ocaml-magic-mime"; url = "https://github.com/mirage/ocaml-magic-mime/releases/download/v${version}/magic-mime-v${version}.tbz";
inherit version; sha256 = "1xqjs8bba567yzrzgnr88j5ck97d36zw68zr9v29liya37k6rcvz";
src = fetchzip {
url = "https://github.com/mirage/ocaml-magic-mime/archive/v${version}.tar.gz";
sha256 = "058d83hmxd5mjccxdm3ydchmhk2lca5jdg82jg0klsigmf4ida6v";
}; };
nativeBuildInputs = [ ocaml findlib ocamlbuild ]; minimalOCamlVersion = "4.03";
buildInputs = [ findlib ]; useDune2 = true;
configurePlatforms = [];
createFindlibDestdir = true; meta = with lib; {
meta = {
homepage = "https://github.com/mirage/ocaml-magic-mime";
description = "Convert file extensions to MIME types"; description = "Convert file extensions to MIME types";
platforms = ocaml.meta.platforms or []; homepage = "https://github.com/mirage/ocaml-magic-mime";
license = lib.licenses.isc; license = licenses.isc;
maintainers = with lib.maintainers; [ vbgl ]; maintainers = with maintainers; [ vbgl ];
}; };
} }