1{ 2 lib, 3 buildDunePackage, 4 fetchurl, 5}: 6 7buildDunePackage rec { 8 pname = "result"; 9 version = "1.5"; 10 11 src = fetchurl { 12 url = "https://github.com/janestreet/result/releases/download/${version}/result-${version}.tbz"; 13 sha256 = "0cpfp35fdwnv3p30a06wd0py3805qxmq3jmcynjc3x2qhlimwfkw"; 14 }; 15 16 meta = { 17 homepage = "https://github.com/janestreet/result"; 18 description = "Compatibility Result module"; 19 longDescription = '' 20 Projects that want to use the new result type defined in OCaml >= 4.03 21 while staying compatible with older version of OCaml should use the 22 Result module defined in this library. 23 ''; 24 license = lib.licenses.bsd3; 25 }; 26}