Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 30 lines 866 B view raw
1{ lib, fetchurl, ocaml, buildDunePackage }: 2 3let params = 4 if lib.versionAtLeast ocaml.version "4.08" then { 5 version = "1.3.3"; 6 sha256 = "sha256:05n4mm1yz33h9gw811ivjw7x4m26lpmf7kns9lza4v6227lwmz7a"; 7 } else { 8 version = "1.3.2"; 9 sha256 = "sha256:09hrikx310pac2sb6jzaa7k6fmiznnmhdsqij1gawdymhawc4h1l"; 10 }; 11in 12 13buildDunePackage rec { 14 pname = "easy-format"; 15 inherit (params) version; 16 17 src = fetchurl { 18 url = "https://github.com/ocaml-community/easy-format/releases/download/${version}/easy-format-${version}.tbz"; 19 inherit (params) sha256; 20 }; 21 22 doCheck = true; 23 24 meta = with lib; { 25 description = "A high-level and functional interface to the Format module of the OCaml standard library"; 26 homepage = "https://github.com/ocaml-community/easy-format"; 27 license = licenses.bsd3; 28 maintainers = [ maintainers.vbgl ]; 29 }; 30}