Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchurl, 4 buildDunePackage, 5 dune-configurator, 6 libX11, 7}: 8 9buildDunePackage rec { 10 11 pname = "graphics"; 12 version = "5.1.2"; 13 14 useDune2 = true; 15 16 src = fetchurl { 17 url = "https://github.com/ocaml/graphics/releases/download/${version}/graphics-${version}.tbz"; 18 sha256 = "sha256-QA/YHSPxy0FGuWl5NCwkeXHdVPWHn/0vgOx80CEuMtQ="; 19 }; 20 21 buildInputs = [ dune-configurator ]; 22 propagatedBuildInputs = [ libX11 ]; 23 24 meta = { 25 homepage = "https://github.com/ocaml/graphics"; 26 description = "Set of portable drawing primitives"; 27 license = lib.licenses.lgpl2; 28 }; 29}