about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/magic-mime/default.nix
blob: a400e073f215b32633714a187348d7f87e047249 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ lib, fetchurl, buildDunePackage }:

buildDunePackage rec {
  pname = "magic-mime";
  version = "1.3.1";

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

  minimalOCamlVersion = "4.03";

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