depot/third_party/nixpkgs/pkgs/development/ocaml-modules/lablgtk3/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

34 lines
1,019 B
Nix

{ lib, fetchurl, fetchpatch, pkg-config, buildDunePackage, dune-configurator
, gtk3, cairo2
, camlp-streams
}:
buildDunePackage rec {
version = "3.1.4";
pname = "lablgtk3";
minimalOCamlVersion = "4.05";
src = fetchurl {
url = "https://github.com/garrigue/lablgtk/releases/download/${version}/lablgtk3-${version}.tbz";
hash = "sha256-bxEVMzfnaH5yHVxAmifNYOy8GnSivLLgSE/9+1yxBI4=";
};
# Fix build with clang 16
# See: https://github.com/garrigue/lablgtk/pull/175
patches = fetchpatch {
url = "https://github.com/garrigue/lablgtk/commit/a9b64b9ed8a13855c672cde0a2d9f78687f4214b.patch";
hash = "sha256-j/L+yYKLlj410jx2VG77hnn9SVHCcSzmr3wpOMZhX5w=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ dune-configurator camlp-streams ];
propagatedBuildInputs = [ gtk3 cairo2 ];
meta = {
description = "OCaml interface to GTK 3";
homepage = "http://lablgtk.forge.ocamlcore.org/";
license = lib.licenses.lgpl21;
maintainers = [ lib.maintainers.vbgl ];
};
}