Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 22 lines 650 B view raw
1{ lib, fetchurl, buildDunePackage, cppo, seq }: 2 3buildDunePackage rec { 4 pname = "yojson"; 5 version = "2.1.0"; 6 7 src = fetchurl { 8 url = "https://github.com/ocaml-community/yojson/releases/download/${version}/yojson-${version}.tbz"; 9 sha256 = "sha256-n8sf8ttYqyWfkih5awraR5Tq6XF3sYMzcTgMTk+QsV0="; 10 }; 11 12 nativeBuildInputs = [ cppo ]; 13 propagatedBuildInputs = [ seq ]; 14 15 meta = with lib; { 16 description = "An optimized parsing and printing library for the JSON format"; 17 homepage = "https://github.com/ocaml-community/${pname}"; 18 license = licenses.bsd3; 19 maintainers = [ maintainers.vbgl ]; 20 mainProgram = "ydump"; 21 }; 22}