nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.03 28 lines 737 B view raw
1{ lib, buildDunePackage, fetchurl, alcotest, fmt, menhir, re }: 2 3buildDunePackage rec { 4 pname = "graphql_parser"; 5 version = "0.13.0"; 6 7 minimumOCamlVersion = "4.03"; 8 9 src = fetchurl { 10 url = "https://github.com/andreas/ocaml-graphql-server/releases/download/${version}/graphql-${version}.tbz"; 11 sha256 = "0gb5y99ph0nz5y3pc1gxq1py4wji2hyf2ydbp0hv23v00n50hpsm"; 12 }; 13 14 nativeBuildInputs = [ menhir ]; 15 propagatedBuildInputs = [ fmt re ]; 16 17 checkInputs = lib.optional doCheck alcotest; 18 19 doCheck = true; 20 21 meta = { 22 homepage = "https://github.com/andreas/ocaml-graphql-server"; 23 description = "Library for parsing GraphQL queries"; 24 license = lib.licenses.mit; 25 maintainers = [ lib.maintainers.vbgl ]; 26 }; 27 28}