summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/gd/default.nix
blob: 66671eb2d78f6ce771a209485645ad64c45e2c19 (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
{
  lib,
  buildDunePackage,
  fetchFromGitHub,
  dune-configurator,
  gd,
}:

buildDunePackage (finalAttrs: {
  pname = "gd";
  version = "1.1";

  src = fetchFromGitHub {
    owner = "savonet";
    repo = "ocaml-gd";
    rev = "v${finalAttrs.version}";
    sha256 = "sha256-78cqxVEappTybRLk7Y6vW1POvZKFIxtGNVcmkKq9GEE=";
  };

  buildInputs = [ dune-configurator ];
  propagatedBuildInputs = [ gd ];

  meta = {
    homepage = "https://github.com/savonet/ocaml-gd";
    description = "OCaml bindings for gd";
    license = lib.licenses.lgpl21Only;
    maintainers = with lib.maintainers; [ dandellion ];
  };
})