1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 08:31:59 +00:00
nixpkgs/pkgs/development/ocaml-modules/magic-mime/default.nix
Yorick van Pelt 4550405ac9
ocaml-modules: replace buildInputs with nativeBuildInputs where appropriate
The default has been to use buildInputs for build dependencies.
This doesn't work when cross-compiling.
2019-11-11 11:10:14 +03:00

28 lines
744 B
Nix

{ stdenv, 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 = stdenv.lib.licenses.isc;
maintainers = with stdenv.lib.maintainers; [ vbgl ];
};
}