Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 24 lines 778 B view raw
1{ lib, buildDunePackage, fetchurl, ocaml }: 2 3buildDunePackage (rec { 4 pname = "result"; 5 version = "1.5"; 6 7 src = fetchurl { 8 url = "https://github.com/janestreet/result/releases/download/${version}/result-${version}.tbz"; 9 sha256 = "0cpfp35fdwnv3p30a06wd0py3805qxmq3jmcynjc3x2qhlimwfkw"; 10 }; 11 12 meta = { 13 homepage = "https://github.com/janestreet/result"; 14 description = "Compatibility Result module"; 15 longDescription = '' 16 Projects that want to use the new result type defined in OCaml >= 4.03 17 while staying compatible with older version of OCaml should use the 18 Result module defined in this library. 19 ''; 20 license = lib.licenses.bsd3; 21 }; 22} // lib.optionalAttrs (!lib.versionAtLeast ocaml.version "4.08") { 23 duneVersion = "1"; 24})