at master 774 B view raw
1{ 2 buildDunePackage, 3 ocaml, 4 lib, 5 fetchurl, 6}: 7 8lib.throwIf (lib.versionAtLeast ocaml.version "5.2") 9 "stdcompat is not available for OCaml ${ocaml.version}" 10 11 buildDunePackage 12 rec { 13 pname = "stdcompat"; 14 version = "19"; 15 16 minimalOCamlVersion = "4.06"; 17 18 src = fetchurl { 19 url = "https://github.com/thierry-martinez/stdcompat/releases/download/v${version}/stdcompat-${version}.tar.gz"; 20 sha256 = "sha256-DKQGd4nnIN6SPls6hcA/2Jvc7ivYNpeMU6rYsVc1ClU="; 21 }; 22 23 # Otherwise ./configure script will run and create files conflicting with dune. 24 dontConfigure = true; 25 26 meta = { 27 homepage = "https://github.com/thierry-martinez/stdcompat"; 28 license = lib.licenses.bsd2; 29 maintainers = [ lib.maintainers.vbgl ]; 30 }; 31 }