ocamlPackages.camlp4: fix build

+31 -4
+31 -4
pkgs/development/tools/ocaml/camlp4/default.nix
··· 4 4 fetchzip, 5 5 which, 6 6 ocaml, 7 + camlp-streams, 7 8 ocamlbuild, 9 + findlib, 8 10 }: 9 11 10 - if lib.versionAtLeast ocaml.version "4.15" then 12 + if lib.versionAtLeast ocaml.version "5.4" then 11 13 throw "camlp4 is not available for OCaml ${ocaml.version}" 12 14 else 13 15 ··· 66 68 version = "4.14+1"; 67 69 sha256 = "sha256-cPN3GioZT/Zt6uzbjGUPEGVJcPQdsAnCkU/AQoPfvuo="; 68 70 }; 71 + "5.0" = { 72 + version = "5.0"; 73 + sha256 = "sha256-oZptFNPUEAq5YlcqAoDWfLghGMF9AN7E7hUN55SAX+4="; 74 + }; 75 + "5.1" = { 76 + version = "5.1"; 77 + sha256 = "sha256-Ubedjg3BeHA0bJbEalQN9eEk5+LRAI/er+8mWfVYchg="; 78 + }; 79 + "5.2" = { 80 + version = "5.2"; 81 + sha256 = "sha256-lzbc9xsgeYlbVf71O+PWYS14QivAH1aPdnvWhe0HHME="; 82 + }; 83 + "5.3" = { 84 + version = "5.3"; 85 + sha256 = "sha256-V/kKhTP9U4jWDFuQKuB7BS3XICg1lq/2Avj7UJR55+k="; 86 + }; 69 87 } 70 88 .${ocaml.meta.branch}; 71 89 in ··· 81 99 82 100 strictDeps = true; 83 101 84 - nativeBuildInputs = [ 85 - which 86 - ocaml 102 + nativeBuildInputs = 103 + [ 104 + which 105 + ocaml 106 + ocamlbuild 107 + ] 108 + ++ lib.optionals (lib.versionAtLeast ocaml.version "5.0") [ 109 + findlib 110 + ]; 111 + 112 + buildInputs = lib.optionals (lib.versionAtLeast ocaml.version "5.0") [ 113 + camlp-streams 87 114 ocamlbuild 88 115 ]; 89 116