depot/third_party/nixpkgs/pkgs/development/ocaml-modules/magic/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

26 lines
705 B
Nix

{ lib, stdenv, fetchFromGitHub, ocaml, findlib, which, file }:
stdenv.mkDerivation rec {
pname = "magic";
version = "0.7.3";
src = fetchFromGitHub {
owner = "Chris00";
repo = "ocaml-magic";
rev = "510c473d222a3d3d900b8ae1892d13e0d49d08be"; # no tags in repo
sha256 = "0qks3v51xvzxhidai414mbszxhcl8wg8g7zxd04qi260433g77yg";
};
createFindlibDestdir = true;
nativeBuildInputs = [ which ];
buildInputs = [ ocaml findlib ];
propagatedBuildInputs = [ file ];
meta = with lib; {
homepage = "https://github.com/Chris00/ocaml-magic";
description = "Bindings for libmagic";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ dandellion ];
};
}