nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, fetchurl, buildDunePackage }:
2
3buildDunePackage rec {
4 pname = "magic-mime";
5 version = "1.2.0";
6
7 src = fetchurl {
8 url = "https://github.com/mirage/ocaml-magic-mime/releases/download/v${version}/magic-mime-v${version}.tbz";
9 sha256 = "sha256-8SG2dQD43Zfi/J/V0BxzJeTIS8XAI3RCd5+9b6IGlPU=";
10 };
11
12 minimalOCamlVersion = "4.03";
13 useDune2 = true;
14
15 meta = with lib; {
16 description = "Convert file extensions to MIME types";
17 homepage = "https://github.com/mirage/ocaml-magic-mime";
18 license = licenses.isc;
19 maintainers = with maintainers; [ vbgl ];
20 };
21}