nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildDunePackage, fetchFromGitHub, dune-configurator, gd }:
2
3buildDunePackage rec {
4 pname = "gd";
5 version = "1.1";
6
7 src = fetchFromGitHub {
8 owner = "savonet";
9 repo = "ocaml-gd";
10 rev = "v${version}";
11 sha256 = "sha256-78cqxVEappTybRLk7Y6vW1POvZKFIxtGNVcmkKq9GEE=";
12 };
13
14 buildInputs = [ dune-configurator ];
15 propagatedBuildInputs = [ gd ];
16
17 meta = with lib; {
18 homepage = "https://github.com/savonet/ocaml-gd";
19 description = "OCaml bindings for gd";
20 license = licenses.lgpl21Only;
21 maintainers = with maintainers; [ dandellion ];
22 };
23}