Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildDunePackage, 4 fetchurl, 5 ppx_expect, 6 version ? "2.0.0", 7}: 8 9buildDunePackage rec { 10 pname = "pp"; 11 inherit version; 12 13 src = fetchurl { 14 url = "https://github.com/ocaml-dune/pp/releases/download/${version}/pp-${version}.tbz"; 15 hash = 16 { 17 "2.0.0" = "sha256-hlE1FRiwkrSi3vTggXHCdhUvkvtqhKixm2uSnM20RBk="; 18 "1.2.0" = "sha256-pegiVzxVr7Qtsp7FbqzR8qzY9lzy3yh44pHeN0zmkJw="; 19 } 20 ."${version}"; 21 }; 22 23 minimalOCamlVersion = "4.08"; 24 25 checkInputs = [ ppx_expect ]; 26 doCheck = true; 27 28 meta = with lib; { 29 description = "Alternative pretty printing library to the Format module of the OCaml standard library"; 30 license = licenses.mit; 31 platforms = platforms.unix; 32 maintainers = [ ]; 33 }; 34}