567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
ocaml,
|
|
findlib,
|
|
topkg,
|
|
ocamlbuild,
|
|
}:
|
|
|
|
let
|
|
homepage = "https://erratique.ch/software/gg";
|
|
version = "1.0.0";
|
|
in
|
|
|
|
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 = {
|
|
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 = lib.licenses.bsd3;
|
|
maintainers = [ lib.maintainers.jirkamarsik ];
|
|
broken = !(lib.versionAtLeast ocaml.version "4.08");
|
|
};
|
|
}
|