mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
4e42cac49d
This change was produced by searching for remaining occurrences of stdenv.lib and replacing them manually. Reference #108938.
28 lines
737 B
Nix
28 lines
737 B
Nix
{ stdenv, lib, fetchzip, ocaml, findlib, ocamlbuild }:
|
|
|
|
let version = "1.0.0"; in
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "ocaml-magic-mime";
|
|
inherit version;
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/mirage/ocaml-magic-mime/archive/v${version}.tar.gz";
|
|
sha256 = "058d83hmxd5mjccxdm3ydchmhk2lca5jdg82jg0klsigmf4ida6v";
|
|
};
|
|
|
|
nativeBuildInputs = [ ocaml findlib ocamlbuild ];
|
|
buildInputs = [ findlib ];
|
|
configurePlatforms = [];
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
meta = {
|
|
homepage = "https://github.com/mirage/ocaml-magic-mime";
|
|
description = "Convert file extensions to MIME types";
|
|
platforms = ocaml.meta.platforms or [];
|
|
license = lib.licenses.isc;
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
|
};
|
|
}
|