blob: 5410575661dcab3e93b8b78f9a17834993decd2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{
lib,
stdenv,
fetchFromGitHub,
ocaml,
findlib,
which,
file,
}:
stdenv.mkDerivation rec {
pname = "magic";
version = "0.7.4";
src = fetchFromGitHub {
owner = "Chris00";
repo = "ocaml-magic";
tag = "v${version}";
sha256 = "sha256-rsBMx68UDqmVVsyeZCxIS97A/0JCBM/JOgh60ly1uSs=";
};
createFindlibDestdir = true;
nativeBuildInputs = [ which ];
buildInputs = [
ocaml
findlib
];
propagatedBuildInputs = [ file ];
meta = {
homepage = "https://github.com/Chris00/ocaml-magic";
description = "Bindings for libmagic";
license = lib.licenses.lgpl21Plus;
maintainers = [ ];
};
}
|