git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.magic-mime: 1.0.0 -> 1.1.3
commit16763ef031f9edc7f9bc5158a8f5e8dc318bce08 authorsuperherointj <5861043+superherointj@users.noreply.github.com> dateSat 5 Jun 2021, 19:03 (5 years ago) parentfce0206
1 file changed+13−19
pkgs/development/ocaml-modules/magic-mime/default.nix+13−19
pkgs/development/ocaml-modules/magic-mime/default.nix+13−19
@@ -1,27 +1,21 @@
1−{ stdenv, lib, fetchzip, ocaml, findlib, ocamlbuild }:
1+{ lib, fetchurl, buildDunePackage }:
22
3−let version = "1.0.0"; in
3+buildDunePackage rec {
4+ pname = "magic-mime";
5+ version = "1.1.3";
46
5−stdenv.mkDerivation {
6− pname = "ocaml-magic-mime";
7− inherit version;
8−
9− src = fetchzip {
10− url = "https://github.com/mirage/ocaml-magic-mime/archive/v${version}.tar.gz";
11− sha256 = "058d83hmxd5mjccxdm3ydchmhk2lca5jdg82jg0klsigmf4ida6v";
7+ src = fetchurl {
8+ url = "https://github.com/mirage/ocaml-magic-mime/releases/download/v${version}/magic-mime-v${version}.tbz";
9+ sha256 = "1xqjs8bba567yzrzgnr88j5ck97d36zw68zr9v29liya37k6rcvz";
1210 };
1311
14− nativeBuildInputs = [ ocaml findlib ocamlbuild ];
15− buildInputs = [ findlib ];
16− configurePlatforms = [];
17−
18− createFindlibDestdir = true;
12+ minimalOCamlVersion = "4.03";
13+ useDune2 = true;
1914
20− meta = {
21− homepage = "https://github.com/mirage/ocaml-magic-mime";
15+ meta = with lib; {
2216 description = "Convert file extensions to MIME types";
23− platforms = ocaml.meta.platforms or [];
24− license = lib.licenses.isc;
25− maintainers = with lib.maintainers; [ vbgl ];
17+ homepage = "https://github.com/mirage/ocaml-magic-mime";
18+ license = licenses.isc;
19+ maintainers = with maintainers; [ vbgl ];
2620 };
2721}