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

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

  src = fetchurl {
    url = "https://github.com/mirage/ocaml-magic-mime/releases/download/v${version}/magic-mime-v${version}.tbz";
    sha256 = "1xqjs8bba567yzrzgnr88j5ck97d36zw68zr9v29liya37k6rcvz";
  };

  minimalOCamlVersion = "4.03";
  useDune2 = true;

  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 ];
  };
}