1 { lib, stdenv, fetchFromGitHub, ocaml, findlib, which, file }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
10 rev = "510c473d222a3d3d900b8ae1892d13e0d49d08be"; # no tags in repo
11 sha256 = "0qks3v51xvzxhidai414mbszxhcl8wg8g7zxd04qi260433g77yg";
14 createFindlibDestdir = true;
16 nativeBuildInputs = [ which ];
17 buildInputs = [ ocaml findlib ];
18 propagatedBuildInputs = [ file ];
21 homepage = "https://github.com/Chris00/ocaml-magic";
22 description = "Bindings for libmagic";
23 license = licenses.lgpl21Plus;
24 maintainers = with maintainers; [ dandellion ];