Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

56 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchurl,
ocaml,
findlib,
topkg,
ocamlbuild,
}:
let
homepage = "https://erratique.ch/software/gg";
version = "1.0.0";
in
lib.throwIfNot (lib.versionAtLeast ocaml.version "4.08")
"gg is not available for OCaml ${ocaml.version}"
stdenv.mkDerivation
{
pname = "ocaml${ocaml.version}-gg";
inherit version;
src = fetchurl {
url = "${homepage}/releases/gg-${version}.tbz";
sha256 = "sha256:0j7bpj8k17csnz6v6frkz9aycywsb7xmznnb31g8rbfk3626f3ci";
};
strictDeps = true;
nativeBuildInputs = [
ocaml
findlib
ocamlbuild
topkg
];
buildInputs = [ topkg ];
inherit (topkg) buildPhase installPhase;
meta = with lib; {
description = "Basic types for computer graphics in OCaml";
longDescription = ''
Gg is an OCaml module providing basic types for computer graphics. It
defines types and functions for floats, vectors, points, sizes,
matrices, quaternions, axis aligned boxes, colors, color spaces, and
raster data.
'';
inherit homepage;
inherit (ocaml.meta) platforms;
license = licenses.bsd3;
maintainers = [ maintainers.jirkamarsik ];
};
}