nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 52 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 ocaml, 6 findlib, 7 topkg, 8 ocamlbuild, 9}: 10 11let 12 homepage = "https://erratique.ch/software/gg"; 13 version = "1.0.0"; 14in 15 16stdenv.mkDerivation { 17 18 pname = "ocaml${ocaml.version}-gg"; 19 inherit version; 20 21 src = fetchurl { 22 url = "${homepage}/releases/gg-${version}.tbz"; 23 sha256 = "sha256:0j7bpj8k17csnz6v6frkz9aycywsb7xmznnb31g8rbfk3626f3ci"; 24 }; 25 26 strictDeps = true; 27 28 nativeBuildInputs = [ 29 ocaml 30 findlib 31 ocamlbuild 32 topkg 33 ]; 34 buildInputs = [ topkg ]; 35 36 inherit (topkg) buildPhase installPhase; 37 38 meta = { 39 description = "Basic types for computer graphics in OCaml"; 40 longDescription = '' 41 Gg is an OCaml module providing basic types for computer graphics. It 42 defines types and functions for floats, vectors, points, sizes, 43 matrices, quaternions, axis aligned boxes, colors, color spaces, and 44 raster data. 45 ''; 46 inherit homepage; 47 inherit (ocaml.meta) platforms; 48 license = lib.licenses.bsd3; 49 maintainers = [ lib.maintainers.jirkamarsik ]; 50 broken = !(lib.versionAtLeast ocaml.version "4.08"); 51 }; 52}