summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/magic-mime/default.nix
blob: 1ff4253ee077f3d9f0d392c79c0ba4e8dc151b59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
  lib,
  fetchurl,
  buildDunePackage,
}:

buildDunePackage (finalAttrs: {
  pname = "magic-mime";
  version = "1.3.1";

  src = fetchurl {
    url = "https://github.com/mirage/ocaml-magic-mime/releases/download/v${finalAttrs.version}/magic-mime-${finalAttrs.version}.tbz";
    hash = "sha256-4CNNA2Jduh76xY5X44dnLXWl6aYh/0ms/g9gnADxOwg=";
  };

  minimalOCamlVersion = "4.03";

  meta = {
    description = "Convert file extensions to MIME types";
    homepage = "https://github.com/mirage/ocaml-magic-mime";
    license = lib.licenses.isc;
    maintainers = with lib.maintainers; [ vbgl ];
  };
})