diff --git a/.ci/esy-build-steps.yml b/.ci/esy-build-steps.yml index 07630b9..0147391 100644 --- a/.ci/esy-build-steps.yml +++ b/.ci/esy-build-steps.yml @@ -1,17 +1,27 @@ +--- # Cross-platform set of build steps for building esy projects steps: - task: NodeTool@0 inputs: - versionSpec: '8.9' - - script: npm i -g esy + versionSpec: '18.16.0' + - bash: | + NPM_CACHE_DIR=$(npm config get cache) + ESY_BASH_VERSION=$(node -e 'console.log(require("./package.json").version)') + echo "##vso[task.setvariable variable=NPM_CACHE_DIR]$NPM_CACHE_DIR" + echo "##vso[task.setvariable variable=ESY_BASH_VERSION]$ESY_BASH_VERSION" + displayName: Compute pipeline variables + - task: Cache@2 + inputs: + key: 'npm | "$(Build.SourcesDirectory)/package-lock.json"' + restoreKeys: | + npm + path: $(NPM_CACHE_DIR) + displayName: Cache NPM + - script: npm install - - script: npm run build-exe - script: npm run build-cygwin displayName: 'Build cygwin' - # - script: npm run test-exe # Skipped because inline tests dont work on Windows without sys/time.h - - script: npm run test - displayName: "npm run test: before packing" - script: npm run package-cygwin displayName: "Package cygwin" - bash: npm pack @@ -19,18 +29,8 @@ steps: - task: PublishBuildArtifacts@1 displayName: 'Release Package' inputs: - PathtoPublish: './esy-bash-0.3.20.tgz' - ArtifactName: npm-package + PathtoPublish: './esy-bash-$(ESY_BASH_VERSION).tgz' + ArtifactName: esy-bash-$(ESY_BASH_VERSION) - script: node postinstall.js displayName: "node postinstall.js (iteration 1)" - - script: npm run test - displayName: "npm run test: after unpack (iteration 1)" - # - script: node postinstall.js - # displayName: "node postinstall.js (iteration 2)" - # - script: npm run test - # displayName: "npm run test: after unpack (iteration 2)" - # - script: node postinstall.js - # displayName: "node postinstall.js (iteration 3)" - # - script: npm run test - # displayName: "npm run test: after unpack (iteration 3)" - + # TODO Figure e2e test diff --git a/__tests__/esy-bash-tests.js b/__tests__/esy-bash-tests.js deleted file mode 100644 index 1560a21..0000000 --- a/__tests__/esy-bash-tests.js +++ /dev/null @@ -1,184 +0,0 @@ -const cp = require("child_process") -const os = require("os") -const fs = require("fs") -const path = require("path") - -const { bashExec, toCygwinPath } = require("./../index") - -const bashPath = path.join(__dirname, "..", "bin", "esy-bash.js") -const binPath = path.join(__dirname, "..", "re", "_build", "default", "bin", "EsyBash.exe"); - -let invocations = [ - { tool: "node", args: [bashPath]}, - { tool: binPath, args: []} -]; - -let idx = 0; -const getTempDirectory = () => { - idx++; - const testDirectoryName = "test directory " + idx.toString() + "__" + new Date().getTime().toString() - return path.join(os.tmpdir(), testDirectoryName) -} - -invocations.forEach((invocation) => { - const description = `Testing with: ${invocation.tool} ${invocation.args.join(" ")}` - describe(description, () => { - const esyBashRun = async (script, envFilePath, cwd) => { - // console.log("BIN PATH: " + binPath); - // console.log(`esy-bash: ${script}`) - - - cwd = cwd || process.cwd(); - const args = envFilePath ? ["--env", envFilePath, script] : [script] - - // console.log("Using cwd: " + cwd); - const output = cp.spawnSync(invocation.tool, [...invocation.args, ...args], { cwd }); - // console.log(` - command returned with status: ${output.status}`) - - // console.log(` stdout: ${output.stdout}`) - // console.log(` stderr: ${output.stderr}`) - - return { - status: output.status, - stdout: output.stdout.toString("utf8"), - stderr: output.stderr.toString("utf8"), - } - } - - it("can pass basic statement to bash", async () => { - const output = await esyBashRun('echo Hello World') - - expect(output.status).toBe(0) - expect(output.stdout.indexOf("Hello World")).toBeGreaterThanOrEqual(0) - }) - - it("doesn't escape", async () => { - const output = await esyBashRun('echo "Hello\nworld"') - expect(output.status).toBe(0) - expect(output.stdout).toEqual("Hello" + "\n" + "world" + "\n") - }) - - it("can pass output to bash", async () => { - const output = await esyBashRun('echo $0') - - expect(output.status).toBe(0) - expect(output.stdout.indexOf("bash")).toBeGreaterThanOrEqual(0) - }) - - it("forwards exit code", async () => { - const output = await esyBashRun('exit 1') - expect(output.status).toBe(1) - }) - - describe.skip("--env: environment file", async () => { - it("loads an environment variable from environment file", async () => { - const environmentFilePath = path.join(os.tmpdir(), "env-file") - const environment = JSON.stringify({ - "SOME_ENVIRONMENT_VARIABLE": "test-variable-value" - }) - fs.writeFileSync(environmentFilePath, environment) - - const output = await esyBashRun("echo $SOME_ENVIRONMENT_VARIABLE", environmentFilePath) - - expect(output.status).toEqual(0) - expect(output.stdout.indexOf("test-variable-value")).toBeGreaterThanOrEqual(0) - }) - - it("loads PATH correctly from environment file", async () => { - const environmentFilePath = path.join(os.tmpdir(), "env-file") - const environment = JSON.stringify({ - "PATH": "C:\\Users\\bryph\\.esy\\3_/i/opam__slash__jbuilder-1.0.0-beta20-6990b2ff/bin;C:\\Users\\bryph\\.esy\\3_/i/ocaml-4.6.4-092f4a41/bin;C:\\Users\\bryph\\.esy\\3_/i/esy_ocaml__slash__esy_installer-0.0.0-821110a6/bin;C:\\Users\\bryph\\.esy\\3_/i/esy_ocaml__slash__substs-0.0.1-49144bdf/bin;C:\\hello-world" - }) - fs.writeFileSync(environmentFilePath, environment) - - const output = await esyBashRun("echo $PATH", environmentFilePath) - expect(output.status).toEqual(0) - expect(output.stdout.indexOf("hello-world")).toBeGreaterThanOrEqual(0) - }) - }) - - describe("cwd parameter", () => { - it("respects the cwd parameter", async () => { - const testDirectoryPath = getTempDirectory() - fs.mkdirSync(testDirectoryPath) - - await bashExec("touch testfile", { cwd: testDirectoryPath }) - - const doesFileExist = fs.existsSync(path.join(testDirectoryPath, "testfile")) - - expect(doesFileExist).toBe(true) - }) - }) - - describe("arguments", () => { - it("respects arguments passed in", async () => { - - const result = cp.spawnSync(binPath, ["sh", "-c", "(echo Hello || true)"]) - - expect(result.status).toEqual(0) - expect(result.stdout.indexOf("Hello")).toBeGreaterThanOrEqual(0) - - }) - }) - - describe("symlinks", () => { - it("create and read from symlink", async () => { - const tempDirectoryPath = getTempDirectory() - fs.mkdirSync(tempDirectoryPath) - - console.log(tempDirectoryPath) - - const sourceFilePath = path.join(tempDirectoryPath, "src.txt") - const destFilePath = path.join(tempDirectoryPath, "dest.txt") - - fs.writeFileSync(sourceFilePath, "test file", "utf8") - - const output = await esyBashRun(`ln -s "${toCygwinPath(sourceFilePath)}" "${toCygwinPath(destFilePath)}"`) - - expect(output.status).toEqual(0) - expect(fs.existsSync(destFilePath)).toBeTruthy() - - const destFileContents = fs.readFileSync(destFilePath).toString("utf8") - expect(destFileContents).toEqual("test file") - }) - }) - - describe("tar", () => { - it("can create / unpack a tarball", async () => { - const srcDirectory = getTempDirectory(); - fs.mkdirSync(srcDirectory); - - const testFile = path.join(srcDirectory, "test.txt"); - fs.writeFileSync(testFile, "hello world", "utf8"); - - let output = await esyBashRun(`tar cvf test.tgz test.txt`, null, srcDirectory); - console.dir(output); - expect(output.status).toEqual(0); - expect(fs.existsSync(path.join(srcDirectory, "test.tgz"))).toBe(true); - - const destDirectory = getTempDirectory(); - fs.mkdirSync(destDirectory); - - output = await esyBashRun(`tar -xf test.tgz -C "${toCygwinPath(destDirectory)}"`, null, srcDirectory); - console.dir(output); - expect(output.status).toEqual(0); - expect(fs.existsSync(path.join(destDirectory, "test.txt"))).toBe(true); - }); - }); - - describe("awk", () => { - it("can run awk", async () => { - const output = await esyBashRun(`awk --version`); - expect(output.status).toEqual(0); - }); - }); - - describe("git", () => { - it("can run git w/ https", async () => { - const output = await esyBashRun(`git ls-remote https://github.com/yarnpkg/example-yarn-package.git`); - console.dir(output); - expect(output.status).toEqual(0); - }); - }); - }); -}); diff --git a/build-cygwin.js b/build-cygwin.js index e3a6f0f..8e827a1 100644 --- a/build-cygwin.js +++ b/build-cygwin.js @@ -89,16 +89,36 @@ const install = async () => { path.join(__dirname, ".cygwin", "etc", "nsswitch.conf"), "\ndb_home: /usr/esy\n" ); + console.log("Successfully updated nsswitch.conf"); } catch(e) { console.error("Something went wrong while updating nsswitch.conf"); } - // Run a command to test it out & create initial script files - cp.spawnSync(path.join(__dirname, "re", "_build", "default", "bin", "EsyBash.exe"), ["bash", "-lc", "cd ~ && pwd"]); + console.log("Run a command to test it out & create initial script files"); + let { signal, status, error } = cp.spawnSync(path.join(__dirname, ".cygwin", "bin", "bash"), [ + "-lc", + "cd ~ && pwd", + ], { stdio: 'inherit' }); + + if (status !== 0) { + if (status !== null) { + console.error("Initial bash command got killed with status", status); + } + if (signal) { + console.error("Initial bash command got killed by signal", signal); + } + if (error) { + console.log("Initial bash command got killed because of the error", error); + } + } - console.log("Verifying esy profile set up..."); - const bashRcContents = fs.readFileSync(path.join(__dirname, ".cygwin", "usr", "esy", ".bashrc")).toString("utf8"); - console.log("Esy user profile setup!"); + try { + console.log("Verifying esy profile set up..."); + const bashRcContents = fs.readFileSync(path.join(__dirname, ".cygwin", "usr", "esy", ".bashrc")).toString("utf8"); + console.log("Esy user profile setup! Found the following at /usr/esy/.bashrc", bashRcContents); + } catch(e) { + console.error("Something went wrong while reading /usr/esy/.bashrc", e); + } } if (os.platform() === "win32") { diff --git a/jest.config.js b/jest.config.js deleted file mode 100644 index e09998b..0000000 --- a/jest.config.js +++ /dev/null @@ -1,7 +0,0 @@ -const {defaults} = require("jest-config") -const os = require("os") - -module.exports = { - testPathIgnorePatterns: os.platform() === "win32" ? defaults.testPathIgnorePatterns : [...defaults.testPathIgnorePatterns, "/windows"], - moduleFileExtensions: [...defaults.moduleFileExtensions, os.platform() + ".js"] -} diff --git a/package.json b/package.json index 44959c0..543d1e8 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,6 @@ "node": ">=8.0" }, "files": [ - "re/_build/default/bin/EsyBash.exe", "bash-exec.js", "postinstall.js", "bin/esy-bash.js", @@ -19,11 +18,8 @@ ], "scripts": { "build-cygwin": "node build-cygwin.js", - "build-exe": "cd re && esy", "package-cygwin": "node package-cygwin.js", - "postinstall": "node postinstall.js", - "test": "jest", - "test-exe": "cd re && esy test" + "postinstall": "node postinstall.js" }, "repository": { "type": "git", diff --git a/re/.gitignore b/re/.gitignore deleted file mode 100644 index 7155b04..0000000 --- a/re/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -.merlin -node_modules -_build -_esy -_release -*.byte -*.native -*.install diff --git a/re/appveyor.yml b/re/appveyor.yml deleted file mode 100644 index 061da7c..0000000 --- a/re/appveyor.yml +++ /dev/null @@ -1,22 +0,0 @@ -platform: - - x64 - -cache: - - C:\Users\appveyor\.esy - -# Workaround for esy/esy#388 -environment: - HOME: C:\Users\appveyor - -install: - # The x64 is required as a workaround for esy/esy#412 - - ps: Install-Product node 8 x64 - - npm install -g esy@next - # Retry is necessary due to esy/esy#413 and esy/esy#414 - - appveyor-retry esy install - -build_script: - - esy build - - _build\default\bin\Hello.exe - -test: off diff --git a/re/bin/EsyBash.re b/re/bin/EsyBash.re deleted file mode 100644 index d649b52..0000000 --- a/re/bin/EsyBash.re +++ /dev/null @@ -1,26 +0,0 @@ -let serialiseAsOneCommand = args => { - let sanitizedArgs = switch (Array.length(args)) { - | 1 => args - | _ => Array.map(a => "\"" ++ a ++ "\"", args) - }; - - String.concat(" ", Array.to_list(sanitizedArgs)); -}; -let sysArgvLen = Array.length(Sys.argv); -/* Argument parsing could be improved I guess, simply copied from current logic */ -let exitCode = - if (sysArgvLen > 2 && Sys.argv[1] == "--env") { - let environmentFile = Sys.argv[2]; - let args = Array.sub(Sys.argv, 3, sysArgvLen - 3); - EsyBashLib.bashExec( - ~environmentFile, - serialiseAsOneCommand(args), - ); - } else { - let args = Array.sub(Sys.argv, 1, sysArgvLen - 1); - EsyBashLib.bashExec( - serialiseAsOneCommand(args), - ); - }; - -exit(exitCode); diff --git a/re/bin/dune b/re/bin/dune deleted file mode 100644 index a07f534..0000000 --- a/re/bin/dune +++ /dev/null @@ -1,4 +0,0 @@ -(executable - (name EsyBash) - (public_name EsyBash.exe) - (libraries esy-bash.lib)) diff --git a/re/dune-project b/re/dune-project deleted file mode 100644 index de4fc20..0000000 --- a/re/dune-project +++ /dev/null @@ -1 +0,0 @@ -(lang dune 1.0) diff --git a/re/esy-bash.opam b/re/esy-bash.opam deleted file mode 100644 index e69de29..0000000 diff --git a/re/esy.lock.json b/re/esy.lock.json deleted file mode 100644 index b190b41..0000000 --- a/re/esy.lock.json +++ /dev/null @@ -1,696 +0,0 @@ -{ - "hash": "603c98ff4f5215f15eea5a885476d619", - "root": "root@path:./package.json", - "node": { - "root@path:./package.json": { - "record": { - "name": "root", - "version": "path:./package.json", - "source": "path:./package.json", - "files": [], - "opam": null - }, - "dependencies": [ - "@esy-ocaml/merlin@3.0.5005", "@esy-ocaml/reason@3.3.3", - "@opam/dune@opam:1.4.0", "@opam/ppx_inline_test@opam:v0.11.0", - "ocaml@4.6.7", "refmterr@3.1.7" - ] - }, - "refmterr@3.1.7": { - "record": { - "name": "refmterr", - "version": "3.1.7", - "source": - "archive:https://registry.npmjs.org/refmterr/-/refmterr-3.1.7.tgz#sha1:fdd6a58e212b18c6a0685ff21f27a7df6621b3e8", - "files": [], - "opam": null - }, - "dependencies": [ - "@esy-ocaml/reason@3.3.3", "@opam/jbuilder@opam:transition", - "@opam/re@opam:1.8.0" - ] - }, - "ocaml@4.6.7": { - "record": { - "name": "ocaml", - "version": "4.6.7", - "source": - "archive:https://registry.npmjs.org/ocaml/-/ocaml-4.6.7.tgz#sha1:5bfdf7f9b7752646c2a5ad3c9e4021180eeab704", - "files": [], - "opam": null - }, - "dependencies": [] - }, - "@opam/yojson@opam:1.4.1": { - "record": { - "name": "@opam/yojson", - "version": "opam:1.4.1", - "source": - "archive:https://github.com/mjambon/yojson/archive/v1.4.1.tar.gz#md5:3ea6e36422dd670e8ab880710d5f7398", - "files": [], - "opam": { - "name": "yojson", - "version": "1.4.1", - "opam": - "opam-version: \"2.0\"\nname: \"yojson\"\nversion: \"1.4.1\"\nsynopsis:\n \"Yojson is an optimized parsing and printing library for the JSON format\"\ndescription: \"\"\"\nIt addresses a few shortcomings of json-wheel including 2x speedup,\npolymorphic variants and optional syntax for tuples and variants.\n\nydump is a pretty-printing command-line program provided with the\nyojson package.\n\nThe program atdgen can be used to derive OCaml-JSON serializers and\ndeserializers from type definitions.\"\"\"\nmaintainer: \"martin@mjambon.com\"\nauthors: \"Martin Jambon\"\nhomepage: \"http://mjambon.com/yojson.html\"\nbug-reports: \"https://github.com/mjambon/yojson/issues\"\ndepends: [\n \"ocaml\" {>= \"4.02.3\"}\n \"jbuilder\" {build}\n \"cppo\" {build}\n \"easy-format\"\n \"biniou\" {>= \"1.2.0\"}\n]\nbuild: [\n [\"jbuilder\" \"build\" \"-p\" name \"-j\" jobs]\n [\"jbuilder\" \"runtest\" \"-p\" name] {with-test}\n]\ndev-repo: \"git+https://github.com/mjambon/yojson.git\"\nurl {\n src: \"https://github.com/mjambon/yojson/archive/v1.4.1.tar.gz\"\n checksum: \"md5=3ea6e36422dd670e8ab880710d5f7398\"\n}", - "override": null - } - }, - "dependencies": [ - "@esy-ocaml/substs@0.0.1", "@opam/biniou@opam:1.2.0", - "@opam/cppo@opam:1.6.5", "@opam/easy-format@opam:1.3.1", - "@opam/jbuilder@opam:transition", "ocaml@4.6.7" - ] - }, - "@opam/stdio@opam:v0.11.0": { - "record": { - "name": "@opam/stdio", - "version": "opam:v0.11.0", - "source": - "archive:https://ocaml.janestreet.com/ocaml-core/v0.11/files/stdio-v0.11.0.tar.gz#md5:2db42ee38c91b3ff7126c2634c407b99", - "files": [], - "opam": { - "name": "stdio", - "version": "v0.11.0", - "opam": - "opam-version: \"2.0\"\nname: \"stdio\"\nversion: \"v0.11.0\"\nsynopsis: \"Standard IO library for OCaml\"\ndescription: \"\"\"\nStdio implements simple input/output functionalities for OCaml.\n\nIt re-exports the input/output functions of the OCaml standard\nlibraries using a more consistent API.\"\"\"\nmaintainer: \"opensource@janestreet.com\"\nauthors: \"Jane Street Group, LLC \"\nlicense: \"Apache-2.0\"\nhomepage: \"https://github.com/janestreet/stdio\"\nbug-reports: \"https://github.com/janestreet/stdio/issues\"\ndepends: [\n \"ocaml\" {>= \"4.04.1\"}\n \"base\" {>= \"v0.11\" & < \"v0.12\"}\n \"jbuilder\" {build & >= \"1.0+beta18.1\"}\n]\nbuild: [\"jbuilder\" \"build\" \"-p\" name \"-j\" jobs]\ndev-repo: \"git+https://github.com/janestreet/stdio.git\"\nurl {\n src:\n \"https://ocaml.janestreet.com/ocaml-core/v0.11/files/stdio-v0.11.0.tar.gz\"\n checksum: \"md5=2db42ee38c91b3ff7126c2634c407b99\"\n}", - "override": null - } - }, - "dependencies": [ - "@esy-ocaml/substs@0.0.1", "@opam/base@opam:v0.11.1", - "@opam/jbuilder@opam:transition", "ocaml@4.6.7" - ] - }, - "@opam/sexplib0@opam:v0.11.0": { - "record": { - "name": "@opam/sexplib0", - "version": "opam:v0.11.0", - "source": - "archive:https://ocaml.janestreet.com/ocaml-core/v0.11/files/sexplib0-v0.11.0.tar.gz#md5:1c14ba30b471e49f1b23fea5ff99ea6b", - "files": [], - "opam": { - "name": "sexplib0", - "version": "v0.11.0", - "opam": - "opam-version: \"2.0\"\nname: \"sexplib0\"\nversion: \"v0.11.0\"\nsynopsis:\n \"Library containing the definition of S-expressions and some base converters\"\ndescription: \"\"\"\nPart of Jane Street's Core library\nThe Core suite of libraries is an industrial strength alternative to\nOCaml's standard library that was developed by Jane Street, the\nlargest industrial user of OCaml.\"\"\"\nmaintainer: \"opensource@janestreet.com\"\nauthors: \"Jane Street Group, LLC \"\nlicense: \"Apache-2.0\"\nhomepage: \"https://github.com/janestreet/sexplib0\"\nbug-reports: \"https://github.com/janestreet/sexplib0/issues\"\ndepends: [\n \"ocaml\" {>= \"4.04.1\"}\n \"jbuilder\" {build & >= \"1.0+beta18.1\"}\n]\nconflicts: [\n \"sexplib\" {< \"v0.11\"}\n]\nbuild: [\"jbuilder\" \"build\" \"-p\" name \"-j\" jobs]\ndev-repo: \"git+https://github.com/janestreet/sexplib0.git\"\nurl {\n src:\n \"https://ocaml.janestreet.com/ocaml-core/v0.11/files/sexplib0-v0.11.0.tar.gz\"\n checksum: \"md5=1c14ba30b471e49f1b23fea5ff99ea6b\"\n}", - "override": null - } - }, - "dependencies": [ - "@esy-ocaml/substs@0.0.1", "@opam/jbuilder@opam:transition", - "ocaml@4.6.7" - ] - }, - "@opam/seq@opam:0.1": { - "record": { - "name": "@opam/seq", - "version": "opam:0.1", - "source": - "archive:https://github.com/c-cube/seq/archive/0.1.tar.gz#md5:0e87f9709541ed46ecb6f414bc31458c", - "files": [], - "opam": { - "name": "seq", - "version": "0.1", - "opam": - "opam-version: \"2.0\"\nname: \"seq\"\nversion: \"0.1\"\nsynopsis:\n \"Compatibility package for OCaml's standard iterator type starting from 4.07.\"\nmaintainer: \"simon.cruanes.2007@m4x.org\"\nauthors: \"Simon Cruanes\"\nlicense: \"GPL\"\ntags: [\"iterator\" \"seq\" \"pure\" \"list\" \"compatibility\" \"cascade\"]\nhomepage: \"https://github.com/c-cube/seq/\"\nbug-reports: \"https://github.com/c-cube/seq/issues\"\ndepends: [\n \"ocaml\" {< \"4.07.0\"}\n \"ocamlfind\" {build}\n \"ocamlbuild\" {build}\n]\nflags: light-uninstall\nbuild: [make \"build\"]\ninstall: [make \"install\"]\nremove: [\"ocamlfind\" \"remove\" \"seq\"]\ndev-repo: \"git+https://github.com/c-cube/seq.git\"\nurl {\n src: \"https://github.com/c-cube/seq/archive/0.1.tar.gz\"\n checksum: \"md5=0e87f9709541ed46ecb6f414bc31458c\"\n}", - "override": null - } - }, - "dependencies": [ - "@esy-ocaml/substs@0.0.1", "@opam/ocamlbuild@opam:0.12.0", - "@opam/ocamlfind@opam:1.8.0", "ocaml@4.6.7" - ] - }, - "@opam/result@opam:1.3": { - "record": { - "name": "@opam/result", - "version": "opam:1.3", - "source": - "archive:https://github.com/janestreet/result/releases/download/1.3/result-1.3.tbz#md5:4beebefd41f7f899b6eeba7414e7ae01", - "files": [], - "opam": { - "name": "result", - "version": "1.3", - "opam": - "opam-version: \"2.0\"\nname: \"result\"\nversion: \"1.3\"\nsynopsis: \"Compatibility Result module\"\ndescription: \"\"\"\nProjects that want to use the new result type defined in OCaml >= 4.03\nwhile staying compatible with older version of OCaml should use the\nResult module defined in this library.\"\"\"\nmaintainer: \"opensource@janestreet.com\"\nauthors: \"Jane Street Group, LLC \"\nlicense: \"BSD3\"\nhomepage: \"https://github.com/janestreet/result\"\nbug-reports: \"https://github.com/janestreet/result/issues\"\ndepends: [\n \"ocaml\"\n \"jbuilder\" {build & >= \"1.0+beta11\"}\n]\nbuild: [\"jbuilder\" \"build\" \"-p\" name \"-j\" jobs]\ndev-repo: \"git+https://github.com/janestreet/result.git\"\nurl {\n src:\n \"https://github.com/janestreet/result/releases/download/1.3/result-1.3.tbz\"\n checksum: \"md5=4beebefd41f7f899b6eeba7414e7ae01\"\n}", - "override": null - } - }, - "dependencies": [ - "@esy-ocaml/substs@0.0.1", "@opam/jbuilder@opam:transition", - "ocaml@4.6.7" - ] - }, - "@opam/re@opam:1.8.0": { - "record": { - "name": "@opam/re", - "version": "opam:1.8.0", - "source": - "archive:https://github.com/ocaml/ocaml-re/releases/download/1.8.0/re-1.8.0.tbz#md5:765f6f8d3e6ab200866e719ed7e5178d", - "files": [], - "opam": { - "name": "re", - "version": "1.8.0", - "opam": - "opam-version: \"2.0\"\nname: \"re\"\nversion: \"1.8.0\"\nsynopsis: \"RE is a regular expression library for OCaml\"\ndescription: \"\"\"\nPure OCaml regular expressions with:\n* Perl-style regular expressions (module Re.Perl)\n* Posix extended regular expressions (module Re.Posix)\n* Emacs-style regular expressions (module Re.Emacs)\n* Shell-style file globbing (module Re.Glob)\n* Compatibility layer for OCaml's built-in Str module (module Re.Str)\"\"\"\nmaintainer: \"rudi.grinberg@gmail.com\"\nauthors: [\n \"Jerome Vouillon\"\n \"Thomas Gazagnaire\"\n \"Anil Madhavapeddy\"\n \"Rudi Grinberg\"\n \"Gabriel Radanne\"\n]\nlicense: \"LGPL-2.0 with OCaml linking exception\"\nhomepage: \"https://github.com/ocaml/ocaml-re\"\nbug-reports: \"https://github.com/ocaml/ocaml-re/issues\"\ndepends: [\n \"ocaml\" {>= \"4.02.3\"}\n \"jbuilder\" {build & >= \"1.0+beta10\"}\n \"ounit\" {with-test}\n \"seq\"\n]\nbuild: [\n [\"jbuilder\" \"subst\" \"-n\" name] {pinned}\n [\"jbuilder\" \"build\" \"-p\" name \"-j\" jobs]\n [\"jbuilder\" \"runtest\" \"-p\" name \"-j\" jobs] {with-test}\n]\ndev-repo: \"git+https://github.com/ocaml/ocaml-re.git\"\nurl {\n src:\n \"https://github.com/ocaml/ocaml-re/releases/download/1.8.0/re-1.8.0.tbz\"\n checksum: \"md5=765f6f8d3e6ab200866e719ed7e5178d\"\n}", - "override": null - } - }, - "dependencies": [ - "@esy-ocaml/substs@0.0.1", "@opam/jbuilder@opam:transition", - "@opam/seq@opam:0.1", "ocaml@4.6.7" - ] - }, - "@opam/ppxlib@opam:0.3.1": { - "record": { - "name": "@opam/ppxlib", - "version": "opam:0.3.1", - "source": - "archive:https://github.com/ocaml-ppx/ppxlib/releases/download/0.3.1/ppxlib-0.3.1.tbz#md5:d83dd03bc744651d4642b84063bffcf9", - "files": [], - "opam": { - "name": "ppxlib", - "version": "0.3.1", - "opam": - "opam-version: \"2.0\"\nname: \"ppxlib\"\nversion: \"0.3.1\"\nsynopsis: \"\"\ndescription: \"\"\"\nA comprehensive toolbox for ppx development. It features:\n- a OCaml AST / parser / pretty-printer snapshot,to create a full\n frontend independent of the version of OCaml;\n- a library for library for ppx rewriters in general, and type-driven\n code generators in particular;\n- a feature-full driver for OCaml AST transformers;\n- a quotation mechanism allowing to write values representing the\n OCaml AST in the OCaml syntax;\n- a generator of open recursion classes from type definitions.\"\"\"\nmaintainer: \"opensource@janestreet.com\"\nauthors: \"Jane Street Group, LLC \"\nlicense: \"MIT\"\nhomepage: \"https://github.com/ocaml-ppx/ppxlib\"\ndoc: \"https://ocaml-ppx.github.io/ppxlib/\"\nbug-reports: \"https://github.com/ocaml-ppx/ppxlib/issues\"\ndepends: [\n \"base\" {>= \"v0.11.0\"}\n \"jbuilder\" {build & >= \"1.0+beta18.1\"}\n \"ocaml-compiler-libs\" {>= \"v0.11.0\"}\n \"ocaml-migrate-parsetree\" {>= \"1.0.9\"}\n \"ppx_derivers\" {>= \"1.0\"}\n \"stdio\" {>= \"v0.11.0\"}\n \"ocaml\" {>= \"4.04.1\"}\n]\nbuild: [\"jbuilder\" \"build\" \"-p\" name \"-j\" jobs]\ndev-repo: \"git+https://github.com/ocaml-ppx/ppxlib.git\"\nurl {\n src:\n \"https://github.com/ocaml-ppx/ppxlib/releases/download/0.3.1/ppxlib-0.3.1.tbz\"\n checksum: \"md5=d83dd03bc744651d4642b84063bffcf9\"\n}", - "override": null - } - }, - "dependencies": [ - "@esy-ocaml/substs@0.0.1", "@opam/base@opam:v0.11.1", - "@opam/jbuilder@opam:transition", - "@opam/ocaml-compiler-libs@opam:v0.11.0", - "@opam/ocaml-migrate-parsetree@opam:1.1.0", - "@opam/ppx_derivers@opam:1.0", "@opam/stdio@opam:v0.11.0", - "ocaml@4.6.7" - ] - }, - "@opam/ppx_inline_test@opam:v0.11.0": { - "record": { - "name": "@opam/ppx_inline_test", - "version": "opam:v0.11.0", - "source": - "archive:https://ocaml.janestreet.com/ocaml-core/v0.11/files/ppx_inline_test-v0.11.0.tar.gz#md5:1f2e014332373638696d8893d87f4682", - "files": [], - "opam": { - "name": "ppx_inline_test", - "version": "v0.11.0", - "opam": - "opam-version: \"2.0\"\nname: \"ppx_inline_test\"\nversion: \"v0.11.0\"\nsynopsis: \"Syntax extension for writing in-line tests in ocaml code\"\ndescription: \"Part of the Jane Street's PPX rewriters collection.\"\nmaintainer: \"opensource@janestreet.com\"\nauthors: \"Jane Street Group, LLC \"\nlicense: \"Apache-2.0\"\nhomepage: \"https://github.com/janestreet/ppx_inline_test\"\nbug-reports: \"https://github.com/janestreet/ppx_inline_test/issues\"\ndepends: [\n \"ocaml\" {>= \"4.04.1\"}\n \"base\" {>= \"v0.11\" & < \"v0.12\"}\n \"jbuilder\" {build & >= \"1.0+beta18.1\"}\n \"ocaml-migrate-parsetree\" {>= \"1.0\"}\n \"ppxlib\" {>= \"0.1.0\"}\n]\nbuild: [\"jbuilder\" \"build\" \"-p\" name \"-j\" jobs]\ndev-repo: \"git+https://github.com/janestreet/ppx_inline_test.git\"\nurl {\n src:\n \"https://ocaml.janestreet.com/ocaml-core/v0.11/files/ppx_inline_test-v0.11.0.tar.gz\"\n checksum: \"md5=1f2e014332373638696d8893d87f4682\"\n}", - "override": null - } - }, - "dependencies": [ - "@esy-ocaml/substs@0.0.1", "@opam/base@opam:v0.11.1", - "@opam/jbuilder@opam:transition", - "@opam/ocaml-migrate-parsetree@opam:1.1.0", - "@opam/ppxlib@opam:0.3.1", "ocaml@4.6.7" - ] - }, - "@opam/ppx_derivers@opam:1.0": { - "record": { - "name": "@opam/ppx_derivers", - "version": "opam:1.0", - "source": - "archive:https://github.com/ocaml-ppx/ppx_derivers/archive/1.0.tar.gz#md5:4ddce8f43fdb9b0ef0ab6a7cbfebc3e3", - "files": [], - "opam": { - "name": "ppx_derivers", - "version": "1.0", - "opam": - "opam-version: \"2.0\"\nname: \"ppx_derivers\"\nversion: \"1.0\"\nsynopsis: \"Shared [@@deriving] plugin registry\"\ndescription: \"\"\"\nPpx_derivers is a tiny package whose sole purpose is to allow\nppx_deriving and ppx_type_conv to inter-operate gracefully when linked\nas part of the same ocaml-migrate-parsetree driver.\"\"\"\nmaintainer: \"jeremie@dimino.org\"\nauthors: \"Jérémie Dimino\"\nlicense: \"BSD3\"\nhomepage: \"https://github.com/ocaml-ppx/ppx_derivers\"\nbug-reports: \"https://github.com/ocaml-ppx/ppx_derivers/issues\"\ndepends: [\n \"ocaml\"\n \"jbuilder\" {build & >= \"1.0+beta7\"}\n]\nbuild: [\"jbuilder\" \"build\" \"-p\" name \"-j\" jobs]\ndev-repo: \"git://github.com/ocaml-ppx/ppx_derivers.git\"\nurl {\n src: \"https://github.com/ocaml-ppx/ppx_derivers/archive/1.0.tar.gz\"\n checksum: \"md5=4ddce8f43fdb9b0ef0ab6a7cbfebc3e3\"\n}", - "override": null - } - }, - "dependencies": [ - "@esy-ocaml/substs@0.0.1", "@opam/jbuilder@opam:transition", - "ocaml@4.6.7" - ] - }, - "@opam/ocamlfind@opam:1.8.0": { - "record": { - "name": "@opam/ocamlfind", - "version": "opam:1.8.0", - "source": [ - "archive:http://download.camlcity.org/download/findlib-1.8.0.tar.gz#md5:a710c559667672077a93d34eb6a42e5b", - "archive:http://download2.camlcity.org/download/findlib-1.8.0.tar.gz#md5:a710c559667672077a93d34eb6a42e5b" - ], - "files": [ - { - "name": "ocamlfind.install", - "content": - "bin: [\n \"src/findlib/ocamlfind\" {\"ocamlfind\"}\n \"?src/findlib/ocamlfind_opt\" {\"ocamlfind\"}\n \"?tools/safe_camlp4\"\n]\ntoplevel: [\"src/findlib/topfind\"]\n", - "perm": 438 - }, - { - "name": "ocaml-stub", - "content": - "#!/bin/sh\n\nBINDIR=$(dirname \"$(command -v ocamlc)\")\n\"$BINDIR/ocaml\" -I \"$OCAML_TOPLEVEL_PATH\" \"$@\"\n", - "perm": 438 - }, - { - "name": "findlib-1.8.0.patch", - "content": - "--- ./Makefile\n+++ ./Makefile\n@@ -57,16 +57,16 @@\n \tcat findlib.conf.in | \\\n \t $(SH) tools/patch '@SITELIB@' '$(OCAML_SITELIB)' >findlib.conf\n \tif ./tools/cmd_from_same_dir ocamlc; then \\\n-\t\techo 'ocamlc=\"ocamlc.opt\"' >>findlib.conf; \\\n+\t\techo 'ocamlc=\"ocamlc.opt$(EXEC_SUFFIX)\"' >>findlib.conf; \\\n \tfi\n \tif ./tools/cmd_from_same_dir ocamlopt; then \\\n-\t\techo 'ocamlopt=\"ocamlopt.opt\"' >>findlib.conf; \\\n+\t\techo 'ocamlopt=\"ocamlopt.opt$(EXEC_SUFFIX)\"' >>findlib.conf; \\\n \tfi\n \tif ./tools/cmd_from_same_dir ocamldep; then \\\n-\t\techo 'ocamldep=\"ocamldep.opt\"' >>findlib.conf; \\\n+\t\techo 'ocamldep=\"ocamldep.opt$(EXEC_SUFFIX)\"' >>findlib.conf; \\\n \tfi\n \tif ./tools/cmd_from_same_dir ocamldoc; then \\\n-\t\techo 'ocamldoc=\"ocamldoc.opt\"' >>findlib.conf; \\\n+\t\techo 'ocamldoc=\"ocamldoc.opt$(EXEC_SUFFIX)\"' >>findlib.conf; \\\n \tfi\n \n .PHONY: install-doc\n--- ./src/findlib/findlib_config.mlp\n+++ ./src/findlib/findlib_config.mlp\n@@ -24,3 +24,5 @@\n | \"MacOS\" -> \"\" (* don't know *)\n | _ -> failwith \"Unknown Sys.os_type\"\n ;;\n+\n+let exec_suffix = \"@EXEC_SUFFIX@\";;\n--- ./src/findlib/findlib.ml\n+++ ./src/findlib/findlib.ml\n@@ -28,15 +28,20 @@\n let conf_ldconf = ref \"\";;\n let conf_ignore_dups_in = ref ([] : string list);;\n \n-let ocamlc_default = \"ocamlc\";;\n-let ocamlopt_default = \"ocamlopt\";;\n-let ocamlcp_default = \"ocamlcp\";;\n-let ocamloptp_default = \"ocamloptp\";;\n-let ocamlmklib_default = \"ocamlmklib\";;\n-let ocamlmktop_default = \"ocamlmktop\";;\n-let ocamldep_default = \"ocamldep\";;\n-let ocamlbrowser_default = \"ocamlbrowser\";;\n-let ocamldoc_default = \"ocamldoc\";;\n+let add_exec str =\n+ match Findlib_config.exec_suffix with\n+ | \"\" -> str\n+ | a -> str ^ a ;;\n+let ocamlc_default = add_exec \"ocamlc\";;\n+let ocamlopt_default = add_exec \"ocamlopt\";;\n+let ocamlcp_default = add_exec \"ocamlcp\";;\n+let ocamloptp_default = add_exec \"ocamloptp\";;\n+let ocamlmklib_default = add_exec \"ocamlmklib\";;\n+let ocamlmktop_default = add_exec \"ocamlmktop\";;\n+let ocamldep_default = add_exec \"ocamldep\";;\n+let ocamlbrowser_default = add_exec \"ocamlbrowser\";;\n+let ocamldoc_default = add_exec \"ocamldoc\";;\n+\n \n \n let init_manually \n--- ./src/findlib/fl_package_base.ml\n+++ ./src/findlib/fl_package_base.ml\n@@ -133,7 +133,15 @@\n \t List.find (fun def -> def.def_var = \"exists_if\") p.package_defs in\n \tlet files = Fl_split.in_words def.def_value in\n \tList.exists \n-\t (fun file -> Sys.file_exists (Filename.concat d' file))\n+\t (fun file ->\n+ let fln = Filename.concat d' file in\n+ let e = Sys.file_exists fln in\n+ (* necessary for ppx executables *)\n+ if e || Sys.os_type <> \"Win32\" || Filename.check_suffix fln \".exe\" then\n+ e\n+ else\n+ Sys.file_exists (fln ^ \".exe\")\n+ )\n \t files\n with Not_found -> true in\n \n--- ./src/findlib/fl_split.ml\n+++ ./src/findlib/fl_split.ml\n@@ -126,10 +126,17 @@\n | '/' | '\\\\' -> true\n | _ -> false in\n let norm_dir_win() =\n- if l >= 1 && s.[0] = '/' then\n- Buffer.add_char b '\\\\' else Buffer.add_char b s.[0];\n- if l >= 2 && s.[1] = '/' then\n- Buffer.add_char b '\\\\' else Buffer.add_char b s.[1];\n+ if l >= 1 then (\n+ if s.[0] = '/' then\n+ Buffer.add_char b '\\\\'\n+ else\n+ Buffer.add_char b s.[0] ;\n+ if l >= 2 then\n+ if s.[1] = '/' then\n+ Buffer.add_char b '\\\\'\n+ else\n+ Buffer.add_char b s.[1];\n+ );\n for k = 2 to l - 1 do\n let c = s.[k] in\n if is_slash c then (\n--- ./src/findlib/frontend.ml\n+++ ./src/findlib/frontend.ml\n@@ -31,10 +31,18 @@\n else\n Sys_error (arg ^ \": \" ^ Unix.error_message code)\n \n+let is_win = Sys.os_type = \"Win32\"\n+\n+let () =\n+ match Findlib_config.system with\n+ | \"win32\" | \"win64\" | \"mingw\" | \"cygwin\" | \"mingw64\" | \"cygwin64\" ->\n+ (try set_binary_mode_out stdout true with _ -> ());\n+ (try set_binary_mode_out stderr true with _ -> ());\n+ | _ -> ()\n \n let slashify s =\n match Findlib_config.system with\n- | \"mingw\" | \"mingw64\" | \"cygwin\" ->\n+ | \"win32\" | \"win64\" | \"mingw\" | \"cygwin\" | \"mingw64\" | \"cygwin64\" ->\n let b = Buffer.create 80 in\n String.iter\n (function\n@@ -49,7 +57,7 @@\n \n let out_path ?(prefix=\"\") s =\n match Findlib_config.system with\n- | \"mingw\" | \"mingw64\" | \"cygwin\" ->\n+ | \"win32\" | \"win64\" | \"mingw\" | \"mingw64\" | \"cygwin\" ->\n \tlet u = slashify s in\n \tprefix ^ \n \t (if String.contains u ' ' then\n@@ -273,11 +281,9 @@\n \n \n let identify_dir d =\n- match Sys.os_type with\n- | \"Win32\" ->\n-\tfailwith \"identify_dir\" (* not available *)\n- | _ ->\n-\tlet s = Unix.stat d in\n+ if is_win then\n+ failwith \"identify_dir\"; (* not available *)\n+ let s = Unix.stat d in\n \t(s.Unix.st_dev, s.Unix.st_ino)\n ;;\n \n@@ -459,6 +465,96 @@\n )\n packages\n \n+let rewrite_cmd s =\n+ if s = \"\" || not is_win then\n+ s\n+ else\n+ let s =\n+ let l = String.length s in\n+ let b = Buffer.create l in\n+ for i = 0 to pred l do\n+ match s.[i] with\n+ | '/' -> Buffer.add_char b '\\\\'\n+ | x -> Buffer.add_char b x\n+ done;\n+ Buffer.contents b\n+ in\n+ if (Filename.is_implicit s && String.contains s '\\\\' = false) ||\n+ Filename.check_suffix (String.lowercase s) \".exe\" then\n+ s\n+ else\n+ let s' = s ^ \".exe\" in\n+ if Sys.file_exists s' then\n+ s'\n+ else\n+ s\n+\n+let rewrite_cmd s =\n+ if s = \"\" || not is_win then s else\n+ let s =\n+ let l = String.length s in\n+ let b = Buffer.create l in\n+ for i = 0 to pred l do\n+ match s.[i] with\n+ | '/' -> Buffer.add_char b '\\\\'\n+ | x -> Buffer.add_char b x\n+ done;\n+ Buffer.contents b\n+ in\n+ if (Filename.is_implicit s && String.contains s '\\\\' = false) ||\n+ Filename.check_suffix (String.lowercase s) \".exe\" then\n+ s\n+ else\n+ let s' = s ^ \".exe\" in\n+ if Sys.file_exists s' then\n+ s'\n+ else\n+ s\n+\n+let rewrite_pp cmd =\n+ if not is_win then cmd else\n+ let module T = struct exception Keep end in\n+ let is_whitespace = function\n+ | ' ' | '\\011' | '\\012' | '\\n' | '\\r' | '\\t' -> true\n+ | _ -> false in\n+ (* characters that triggers special behaviour (cmd.exe, not unix shell) *)\n+ let is_unsafe_char = function\n+ | '(' | ')' | '%' | '!' | '^' | '<' | '>' | '&' -> true\n+ | _ -> false in\n+ let len = String.length cmd in\n+ let buf = Buffer.create (len + 4) in\n+ let buf_cmd = Buffer.create len in\n+ let rec iter_ws i =\n+ if i >= len then () else\n+ let cur = cmd.[i] in\n+ if is_whitespace cur then (\n+ Buffer.add_char buf cur;\n+ iter_ws (succ i)\n+ )\n+ else\n+ iter_cmd i\n+ and iter_cmd i =\n+ if i >= len then add_buf_cmd () else\n+ let cur = cmd.[i] in\n+ if is_unsafe_char cur || cur = '\"' || cur = '\\'' then\n+ raise T.Keep;\n+ if is_whitespace cur then (\n+ add_buf_cmd ();\n+ Buffer.add_substring buf cmd i (len - i)\n+ )\n+ else (\n+ Buffer.add_char buf_cmd cur;\n+ iter_cmd (succ i)\n+ )\n+ and add_buf_cmd () =\n+ if Buffer.length buf_cmd > 0 then\n+ Buffer.add_string buf (rewrite_cmd (Buffer.contents buf_cmd))\n+ in\n+ try\n+ iter_ws 0;\n+ Buffer.contents buf\n+ with\n+ | T.Keep -> cmd\n \n let process_pp_spec syntax_preds packages pp_opts =\n (* Returns: pp_command *)\n@@ -549,7 +645,7 @@\n None -> []\n | Some cmd ->\n \t[\"-pp\";\n-\t cmd ^ \" \" ^\n+\t (rewrite_cmd cmd) ^ \" \" ^\n \t String.concat \" \" (List.map Filename.quote pp_i_options) ^ \" \" ^\n \t String.concat \" \" (List.map Filename.quote pp_archives) ^ \" \" ^\n \t String.concat \" \" (List.map Filename.quote pp_opts)]\n@@ -625,9 +721,11 @@\n in\n try\n let preprocessor =\n+ rewrite_cmd (\n resolve_path\n ~base ~explicit:true\n- (package_property predicates pname \"ppx\") in\n+ (package_property predicates pname \"ppx\") )\n+ in\n [\"-ppx\"; String.concat \" \" (preprocessor :: options)]\n with Not_found -> []\n )\n@@ -895,6 +993,14 @@\n switch (e.g. -L instead of -L )\n *)\n \n+(* We may need to remove files on which we do not have complete control.\n+ On Windows, removing a read-only file fails so try to change the\n+ mode of the file first. *)\n+let remove_file fname =\n+ try Sys.remove fname\n+ with Sys_error _ when is_win ->\n+ (try Unix.chmod fname 0o666 with Unix.Unix_error _ -> ());\n+ Sys.remove fname\n \n let ocamlc which () =\n \n@@ -1022,9 +1128,12 @@\n \n \t \"-intf\", \n \t Arg.String (fun s -> pass_files := !pass_files @ [ Intf(slashify s) ]);\n- \n+\n \t \"-pp\", \n-\t Arg.String (fun s -> pp_specified := true; add_spec_fn \"-pp\" s);\n+\t Arg.String (fun s -> pp_specified := true; add_spec_fn \"-pp\" (rewrite_pp s));\n+\n+ \"-ppx\",\n+ Arg.String (fun s -> add_spec_fn \"-ppx\" (rewrite_pp s));\n \t \n \t \"-thread\", \n \t Arg.Unit (fun _ -> threads := threads_default);\n@@ -1237,7 +1346,7 @@\n with\n any ->\n \tclose_out initl;\n-\tSys.remove initl_file_name;\n+\tremove_file initl_file_name;\n \traise any\n end;\n \n@@ -1245,9 +1354,9 @@\n at_exit\n (fun () ->\n \tlet tr f x = try f x with _ -> () in\n-\ttr Sys.remove initl_file_name;\n-\ttr Sys.remove (Filename.chop_extension initl_file_name ^ \".cmi\");\n-\ttr Sys.remove (Filename.chop_extension initl_file_name ^ \".cmo\");\n+\ttr remove_file initl_file_name;\n+\ttr remove_file (Filename.chop_extension initl_file_name ^ \".cmi\");\n+\ttr remove_file (Filename.chop_extension initl_file_name ^ \".cmo\");\n );\n \n let exclude_list = [ stdlibdir; threads_dir; vmthreads_dir ] in\n@@ -1493,7 +1602,9 @@\n \t [ \"-v\", Arg.Unit (fun () -> verbose := Verbose);\n \t \"-pp\", Arg.String (fun s ->\n \t\t\t\t pp_specified := true;\n-\t\t\t\t options := !options @ [\"-pp\"; s]);\n+\t\t\t\t options := !options @ [\"-pp\"; rewrite_pp s]);\n+ \"-ppx\", Arg.String (fun s ->\n+\t\t\t\t options := !options @ [\"-ppx\"; rewrite_pp s]);\n \t ]\n )\n )\n@@ -1672,7 +1783,9 @@\n \t Arg.String (fun s -> add_spec_fn \"-I\" (slashify (resolve_path s)));\n \n \t \"-pp\", Arg.String (fun s -> pp_specified := true;\n-\t\t \t add_spec_fn \"-pp\" s);\n+ add_spec_fn \"-pp\" (rewrite_pp s));\n+ \"-ppx\", Arg.String (fun s -> add_spec_fn \"-ppx\" (rewrite_pp s));\n+\n \t ]\n \t)\n )\n@@ -1830,7 +1943,10 @@\n output_string ch_out append;\n close_out ch_out;\n close_in ch_in;\n- Unix.utimes outpath s.Unix.st_mtime s.Unix.st_mtime;\n+ (try Unix.utimes outpath s.Unix.st_mtime s.Unix.st_mtime\n+ with Unix.Unix_error(e,_,_) ->\n+ prerr_endline(\"Warning: setting utimes for \" ^ outpath\n+ ^ \": \" ^ Unix.error_message e));\n \n prerr_endline(\"Installed \" ^ outpath);\n with\n@@ -1882,6 +1998,8 @@\n Unix.openfile (Filename.concat dir owner_file) [Unix.O_RDONLY] 0 in\n let f =\n Unix.in_channel_of_descr fd in\n+ if is_win then\n+ set_binary_mode_in f false;\n try\n let line = input_line f in\n let is_my_file = (line = pkg) in\n@@ -2208,7 +2326,7 @@\n let lines = read_ldconf !ldconf in\n let dlldir_norm = Fl_split.norm_dir dlldir in\n let dlldir_norm_lc = string_lowercase_ascii dlldir_norm in\n- let ci_filesys = (Sys.os_type = \"Win32\") in\n+ let ci_filesys = is_win in\n let check_dir d =\n let d' = Fl_split.norm_dir d in\n (d' = dlldir_norm) || \n@@ -2356,7 +2474,7 @@\n List.iter\n (fun file ->\n let absfile = Filename.concat dlldir file in\n- Sys.remove absfile;\n+ remove_file absfile;\n prerr_endline (\"Removed \" ^ absfile)\n )\n dll_files\n@@ -2365,7 +2483,7 @@\n (* Remove the files from the package directory: *)\n if Sys.file_exists pkgdir then begin\n let files = Sys.readdir pkgdir in\n- Array.iter (fun f -> Sys.remove (Filename.concat pkgdir f)) files;\n+ Array.iter (fun f -> remove_file (Filename.concat pkgdir f)) files;\n Unix.rmdir pkgdir;\n prerr_endline (\"Removed \" ^ pkgdir)\n end\n@@ -2415,7 +2533,9 @@\n \n \n let print_configuration() =\n+ let sl = slashify in\n let dir s =\n+ let s = sl s in\n if Sys.file_exists s then\n s\n else\n@@ -2453,27 +2573,27 @@\n \t if md = \"\" then \"the corresponding package directories\" else dir md\n \t );\n \tPrintf.printf \"The standard library is assumed to reside in:\\n %s\\n\"\n-\t (Findlib.ocaml_stdlib());\n+ (sl (Findlib.ocaml_stdlib()));\n \tPrintf.printf \"The ld.conf file can be found here:\\n %s\\n\"\n-\t (Findlib.ocaml_ldconf());\n+ (sl (Findlib.ocaml_ldconf()));\n \tflush stdout\n | Some \"conf\" ->\n-\tprint_endline Findlib_config.config_file\n+ print_endline (sl Findlib_config.config_file)\n | Some \"path\" ->\n-\tList.iter print_endline (Findlib.search_path())\n+ List.iter ( fun x -> print_endline (sl x)) (Findlib.search_path())\n | Some \"destdir\" ->\n-\tprint_endline (Findlib.default_location())\n+ print_endline ( sl (Findlib.default_location()))\n | Some \"metadir\" ->\n-\tprint_endline (Findlib.meta_directory())\n+ print_endline ( sl (Findlib.meta_directory()))\n | Some \"metapath\" ->\n let mdir = Findlib.meta_directory() in\n let ddir = Findlib.default_location() in\n-\tprint_endline \n- (if mdir <> \"\" then mdir ^ \"/META.%s\" else ddir ^ \"/%s/META\")\n+ print_endline ( sl\n+ (if mdir <> \"\" then mdir ^ \"/META.%s\" else ddir ^ \"/%s/META\"))\n | Some \"stdlib\" ->\n-\tprint_endline (Findlib.ocaml_stdlib())\n+ print_endline ( sl (Findlib.ocaml_stdlib()))\n | Some \"ldconf\" ->\n-\tprint_endline (Findlib.ocaml_ldconf())\n+ print_endline ( sl (Findlib.ocaml_ldconf()))\n | _ ->\n \tassert false\n ;;\n@@ -2481,7 +2601,7 @@\n \n let ocamlcall pkg cmd =\n let dir = package_directory pkg in\n- let path = Filename.concat dir cmd in\n+ let path = rewrite_cmd (Filename.concat dir cmd) in\n begin\n try Unix.access path [ Unix.X_OK ]\n with\n@@ -2647,6 +2767,10 @@\n | Sys_error f ->\n prerr_endline (\"ocamlfind: \" ^ f);\n exit 2\n+ | Unix.Unix_error (e, fn, f) ->\n+ prerr_endline (\"ocamlfind: \" ^ fn ^ \" \" ^ f\n+ ^ \": \" ^ Unix.error_message e);\n+ exit 2\n | Findlib.No_such_package(pkg,info) ->\n prerr_endline (\"ocamlfind: Package `\" ^ pkg ^ \"' not found\" ^\n \t\t (if info <> \"\" then \" - \" ^ info else \"\"));\n--- ./src/findlib/Makefile\n+++ ./src/findlib/Makefile\n@@ -90,6 +90,7 @@\n \tcat findlib_config.mlp | \\\n \t $(SH) $(TOP)/tools/patch '@CONFIGFILE@' '$(OCAMLFIND_CONF)' | \\\n \t $(SH) $(TOP)/tools/patch '@STDLIB@' '$(OCAML_CORE_STDLIB)' | \\\n+\t\t\t$(SH) $(TOP)/tools/patch '@EXEC_SUFFIX@' '$(EXEC_SUFFIX)' | \\\n \t\tsed -e 's;@AUTOLINK@;$(OCAML_AUTOLINK);g' \\\n \t\t -e 's;@SYSTEM@;$(SYSTEM);g' \\\n \t\t >findlib_config.ml\n@@ -113,7 +114,7 @@\n \t$(OCAMLC) -a -o num_top.cma $(NUMTOP_OBJECTS)\n \n clean:\n-\trm -f *.cmi *.cmo *.cma *.cmx *.a *.o *.cmxa \\\n+\trm -f *.cmi *.cmo *.cma *.cmx *.lib *.a *.o *.cmxa \\\n \t fl_meta.ml findlib_config.ml findlib.mml topfind.ml topfind \\\n \t ocamlfind$(EXEC_SUFFIX) ocamlfind_opt$(EXEC_SUFFIX)\n \n@@ -121,7 +122,7 @@\n \tmkdir -p \"$(prefix)$(OCAML_SITELIB)/$(NAME)\"\n \tmkdir -p \"$(prefix)$(OCAMLFIND_BIN)\"\n \ttest $(INSTALL_TOPFIND) -eq 0 || cp topfind \"$(prefix)$(OCAML_CORE_STDLIB)\"\n-\tfiles=`$(SH) $(TOP)/tools/collect_files $(TOP)/Makefile.config findlib.cmi findlib.mli findlib.cma findlib.cmxa findlib.a findlib.cmxs topfind.cmi topfind.mli fl_package_base.mli fl_package_base.cmi fl_metascanner.mli fl_metascanner.cmi fl_metatoken.cmi findlib_top.cma findlib_top.cmxa findlib_top.a findlib_top.cmxs findlib_dynload.cma findlib_dynload.cmxa findlib_dynload.a findlib_dynload.cmxs fl_dynload.mli fl_dynload.cmi META` && \\\n+\tfiles=`$(SH) $(TOP)/tools/collect_files $(TOP)/Makefile.config findlib.cmi findlib.mli findlib.cma findlib.cmxa findlib$(LIB_SUFFIX) findlib.cmxs topfind.cmi topfind.mli fl_package_base.mli fl_package_base.cmi fl_metascanner.mli fl_metascanner.cmi fl_metatoken.cmi findlib_top.cma findlib_top.cmxa findlib_top$(LIB_SUFFIX) findlib_top.cmxs findlib_dynload.cma findlib_dynload.cmxa findlib_dynload$(LIB_SUFFIX) findlib_dynload.cmxs fl_dynload.mli fl_dynload.cmi META` && \\\n \tcp $$files \"$(prefix)$(OCAML_SITELIB)/$(NAME)\"\n \tf=\"ocamlfind$(EXEC_SUFFIX)\"; { test -f ocamlfind_opt$(EXEC_SUFFIX) && f=\"ocamlfind_opt$(EXEC_SUFFIX)\"; }; \\\n \tcp $$f \"$(prefix)$(OCAMLFIND_BIN)/ocamlfind$(EXEC_SUFFIX)\"\n", - "perm": 438 - } - ], - "opam": { - "name": "ocamlfind", - "version": "1.8.0", - "opam": - "opam-version: \"2.0\"\nname: \"ocamlfind\"\nversion: \"1.8.0\"\nsynopsis: \"A library manager for OCaml\"\ndescription: \"\"\"\nFindlib is a library manager for OCaml. It provides a convention how\nto store libraries, and a file format (\"META\") to describe the\nproperties of libraries. There is also a tool (ocamlfind) for\ninterpreting the META files, so that it is very easy to use libraries\nin programs and scripts.\"\"\"\nmaintainer: \"Thomas Gazagnaire \"\nauthors: \"Gerd Stolpmann \"\nhomepage: \"http://projects.camlcity.org/projects/findlib.html\"\nbug-reports: \"https://gitlab.camlcity.org/gerd/lib-findlib/issues\"\ndepends: [\n \"ocaml\" {>= \"4.00.0\"}\n \"conf-m4\" {build}\n]\nbuild: [\n [\n \"./configure\"\n \"-bindir\"\n bin\n \"-sitelib\"\n lib\n \"-mandir\"\n man\n \"-config\"\n \"%{lib}%/findlib.conf\"\n \"-no-custom\"\n \"-no-topfind\" {ocaml:preinstalled}\n ]\n [make \"all\"]\n [make \"opt\"] {ocaml:native}\n]\ninstall: [\n [make \"install\"]\n [\"install\" \"-m\" \"0755\" \"ocaml-stub\" \"%{bin}%/ocaml\"] {ocaml:preinstalled}\n]\nremove: [\n [\"ocamlfind\" \"remove\" \"bytes\"]\n [\n \"./configure\"\n \"-bindir\"\n bin\n \"-sitelib\"\n lib\n \"-mandir\"\n man\n \"-config\"\n \"%{lib}%/findlib.conf\"\n \"-no-topfind\" {ocaml:preinstalled}\n ]\n [make \"uninstall\"]\n [\"rm\" \"-f\" \"%{bin}%/ocaml\"] {ocaml:preinstalled}\n]\ndev-repo: \"git+https://gitlab.camlcity.org/gerd/lib-findlib.git\"\nextra-files: [\n [\"ocamlfind.install\" \"md5=06f2c282ab52d93aa6adeeadd82a2543\"]\n [\"ocaml-stub\" \"md5=181f259c9e0bad9ef523e7d4abfdf87a\"]\n]\nurl {\n src: \"http://download.camlcity.org/download/findlib-1.8.0.tar.gz\"\n checksum: \"md5=a710c559667672077a93d34eb6a42e5b\"\n mirrors: \"http://download2.camlcity.org/download/findlib-1.8.0.tar.gz\"\n}", - "override": { - "build": [ - [ - "bash", "-c", - "#{os == 'windows' ? 'patch -p1 < findlib-1.8.0.patch' : 'true'}" - ], - [ - "./configure", "-bindir", "#{self.bin}", "-sitelib", - "#{self.lib}", "-mandir", "#{self.man}", "-config", - "#{self.lib}/findlib.conf", "-no-custom", "-no-topfind" - ], - [ "make", "all" ], - [ "make", "opt" ] - ], - "install": [ - [ "make", "install" ], - [ "install", "-m", "0755", "ocaml-stub", "#{self.bin}/ocaml" ], - [ "mkdir", "-p", "#{self.toplevel}" ], - [ - "install", "-m", "0644", "src/findlib/topfind", - "#{self.toplevel}/topfind" - ] - ], - "exportedEnv": { - "OCAML_TOPLEVEL_PATH": { - "val": "#{self.toplevel}", - "scope": "global", - "exclusive": false - } - } - } - } - }, - "dependencies": [ - "@esy-ocaml/substs@0.0.1", "@opam/conf-m4@opam:1", "ocaml@4.6.7" - ] - }, - "@opam/ocamlbuild@opam:0.12.0": { - "record": { - "name": "@opam/ocamlbuild", - "version": "opam:0.12.0", - "source": - "archive:https://github.com/ocaml/ocamlbuild/archive/0.12.0.tar.gz#md5:442baa19470bd49150f153122e22907b", - "files": [ - { - "name": "ocamlbuild-0.12.0.patch", - "content": - "--- ./Makefile\n+++ ./Makefile\n@@ -213,7 +213,7 @@\n \trm -f man/ocamlbuild.1\n \n man/options_man.byte: src/ocamlbuild_pack.cmo\n-\t$(OCAMLC) $^ -I src man/options_man.ml -o man/options_man.byte\n+\t$(OCAMLC) -I +unix unix.cma $^ -I src man/options_man.ml -o man/options_man.byte\n \n clean::\n \trm -f man/options_man.cm*\n--- ./src/command.ml\n+++ ./src/command.ml\n@@ -148,9 +148,10 @@\n let self = string_of_command_spec_with_calls call_with_tags call_with_target resolve_virtuals in\n let b = Buffer.create 256 in\n (* The best way to prevent bash from switching to its windows-style\n- * quote-handling is to prepend an empty string before the command name. *)\n+ * quote-handling is to prepend an empty string before the command name.\n+ * space seems to work, too - and the ouput is nicer *)\n if Sys.os_type = \"Win32\" then\n- Buffer.add_string b \"''\";\n+ Buffer.add_char b ' ';\n let first = ref true in\n let put_space () =\n if !first then\n@@ -260,7 +261,7 @@\n \n let execute_many ?(quiet=false) ?(pretend=false) cmds =\n add_parallel_stat (List.length cmds);\n- let degraded = !*My_unix.is_degraded || Sys.os_type = \"Win32\" in\n+ let degraded = !*My_unix.is_degraded in\n let jobs = !jobs in\n if jobs < 0 then invalid_arg \"jobs < 0\";\n let max_jobs = if jobs = 0 then None else Some jobs in\n--- ./src/findlib.ml\n+++ ./src/findlib.ml\n@@ -66,9 +66,6 @@\n (fun command -> lexer & Lexing.from_string & run_and_read command)\n command\n \n-let run_and_read command =\n- Printf.ksprintf run_and_read command\n-\n let rec query name =\n try\n Hashtbl.find packages name\n@@ -135,7 +132,8 @@\n with Not_found -> s\n \n let list () =\n- List.map before_space (split_nl & run_and_read \"%s list\" ocamlfind)\n+ let cmd = Shell.quote_filename_if_needed ocamlfind ^ \" list\" in\n+ List.map before_space (split_nl & run_and_read cmd)\n \n (* The closure algorithm is easy because the dependencies are already closed\n and sorted for each package. We only have to make the union. We could also\n--- ./src/main.ml\n+++ ./src/main.ml\n@@ -162,6 +162,9 @@\n Tags.mem \"traverse\" tags\n || List.exists (Pathname.is_prefix path_name) !Options.include_dirs\n || List.exists (Pathname.is_prefix path_name) target_dirs)\n+ && ((* beware: !Options.build_dir is an absolute directory *)\n+ Pathname.normalize !Options.build_dir\n+ <> Pathname.normalize (Pathname.pwd/path_name))\n end\n end\n end\n--- ./src/my_std.ml\n+++ ./src/my_std.ml\n@@ -271,13 +271,107 @@\n try Array.iter (fun x -> if x = basename then raise Exit) a; false\n with Exit -> true\n \n+let command_plain = function\n+| [| |] -> 0\n+| margv ->\n+ let rec waitpid a b =\n+ match Unix.waitpid a b with\n+ | exception (Unix.Unix_error(Unix.EINTR,_,_)) -> waitpid a b\n+ | x -> x\n+ in\n+ let pid = Unix.(create_process margv.(0) margv stdin stdout stderr) in\n+ let pid', process_status = waitpid [] pid in\n+ assert (pid = pid');\n+ match process_status with\n+ | Unix.WEXITED n -> n\n+ | Unix.WSIGNALED _ -> 2 (* like OCaml's uncaught exceptions *)\n+ | Unix.WSTOPPED _ -> 127\n+\n+(* can't use Lexers because of circular dependency *)\n+let split_path_win str =\n+ let rec aux pos =\n+ try\n+ let i = String.index_from str pos ';' in\n+ let len = i - pos in\n+ if len = 0 then\n+ aux (succ i)\n+ else\n+ String.sub str pos (i - pos) :: aux (succ i)\n+ with Not_found | Invalid_argument _ ->\n+ let len = String.length str - pos in\n+ if len = 0 then [] else [String.sub str pos len]\n+ in\n+ aux 0\n+\n+let windows_shell = lazy begin\n+ let rec iter = function\n+ | [] -> [| \"bash.exe\" ; \"--norc\" ; \"--noprofile\" |]\n+ | hd::tl ->\n+ let dash = Filename.concat hd \"dash.exe\" in\n+ if Sys.file_exists dash then [|dash|] else\n+ let bash = Filename.concat hd \"bash.exe\" in\n+ if Sys.file_exists bash = false then iter tl else\n+ (* if sh.exe and bash.exe exist in the same dir, choose sh.exe *)\n+ let sh = Filename.concat hd \"sh.exe\" in\n+ if Sys.file_exists sh then [|sh|] else [|bash ; \"--norc\" ; \"--noprofile\"|]\n+ in\n+ split_path_win (try Sys.getenv \"PATH\" with Not_found -> \"\") |> iter\n+end\n+\n+let prep_windows_cmd cmd =\n+ (* workaround known ocaml bug, remove later *)\n+ if String.contains cmd '\\t' && String.contains cmd ' ' = false then\n+ \" \" ^ cmd\n+ else\n+ cmd\n+\n+let run_with_shell = function\n+| \"\" -> 0\n+| cmd ->\n+ let cmd = prep_windows_cmd cmd in\n+ let shell = Lazy.force windows_shell in\n+ let qlen = Filename.quote cmd |> String.length in\n+ (* old versions of dash had problems with bs *)\n+ try\n+ if qlen < 7_900 then\n+ command_plain (Array.append shell [| \"-ec\" ; cmd |])\n+ else begin\n+ (* it can still work, if the called command is a cygwin tool *)\n+ let ch_closed = ref false in\n+ let file_deleted = ref false in\n+ let fln,ch =\n+ Filename.open_temp_file\n+ ~mode:[Open_binary]\n+ \"ocamlbuildtmp\"\n+ \".sh\"\n+ in\n+ try\n+ let f_slash = String.map ( fun x -> if x = '\\\\' then '/' else x ) fln in\n+ output_string ch cmd;\n+ ch_closed:= true;\n+ close_out ch;\n+ let ret = command_plain (Array.append shell [| \"-e\" ; f_slash |]) in\n+ file_deleted:= true;\n+ Sys.remove fln;\n+ ret\n+ with\n+ | x ->\n+ if !ch_closed = false then\n+ close_out_noerr ch;\n+ if !file_deleted = false then\n+ (try Sys.remove fln with _ -> ());\n+ raise x\n+ end\n+ with\n+ | (Unix.Unix_error _) as x ->\n+ (* Sys.command doesn't raise an exception, so run_with_shell also won't\n+ raise *)\n+ Printexc.to_string x ^ \":\" ^ cmd |> prerr_endline;\n+ 1\n+\n let sys_command =\n- match Sys.os_type with\n- | \"Win32\" -> fun cmd ->\n- if cmd = \"\" then 0 else\n- let cmd = \"bash --norc -c \" ^ Filename.quote cmd in\n- Sys.command cmd\n- | _ -> fun cmd -> if cmd = \"\" then 0 else Sys.command cmd\n+ if Sys.win32 then run_with_shell\n+ else fun cmd -> if cmd = \"\" then 0 else Sys.command cmd\n \n (* FIXME warning fix and use Filename.concat *)\n let filename_concat x y =\n--- ./src/my_std.mli\n+++ ./src/my_std.mli\n@@ -69,3 +69,6 @@\n \n val split_ocaml_version : (int * int * int * string) option\n (** (major, minor, patchlevel, rest) *)\n+\n+val windows_shell : string array Lazy.t\n+val prep_windows_cmd : string -> string\n--- ./src/ocamlbuild_executor.ml\n+++ ./src/ocamlbuild_executor.ml\n@@ -34,6 +34,8 @@\n job_stdin : out_channel;\n job_stderr : in_channel;\n job_buffer : Buffer.t;\n+ job_pid : int;\n+ job_tmp_file: string option;\n mutable job_dying : bool;\n };;\n \n@@ -76,6 +78,61 @@\n in\n loop 0\n ;;\n+\n+let open_process_full_win cmd env =\n+ let (in_read, in_write) = Unix.pipe () in\n+ let (out_read, out_write) = Unix.pipe () in\n+ let (err_read, err_write) = Unix.pipe () in\n+ Unix.set_close_on_exec in_read;\n+ Unix.set_close_on_exec out_write;\n+ Unix.set_close_on_exec err_read;\n+ let inchan = Unix.in_channel_of_descr in_read in\n+ let outchan = Unix.out_channel_of_descr out_write in\n+ let errchan = Unix.in_channel_of_descr err_read in\n+ let shell = Lazy.force Ocamlbuild_pack.My_std.windows_shell in\n+ let test_cmd =\n+ String.concat \" \" (List.map Filename.quote (Array.to_list shell)) ^\n+ \"-ec \" ^\n+ Filename.quote (Ocamlbuild_pack.My_std.prep_windows_cmd cmd) in\n+ let argv,tmp_file =\n+ if String.length test_cmd < 7_900 then\n+ Array.append\n+ shell\n+ [| \"-ec\" ; Ocamlbuild_pack.My_std.prep_windows_cmd cmd |],None\n+ else\n+ let fln,ch = Filename.open_temp_file ~mode:[Open_binary] \"ocamlbuild\" \".sh\" in\n+ output_string ch (Ocamlbuild_pack.My_std.prep_windows_cmd cmd);\n+ close_out ch;\n+ let fln' = String.map (function '\\\\' -> '/' | c -> c) fln in\n+ Array.append\n+ shell\n+ [| \"-c\" ; fln' |], Some fln in\n+ let pid =\n+ Unix.create_process_env argv.(0) argv env out_read in_write err_write in\n+ Unix.close out_read;\n+ Unix.close in_write;\n+ Unix.close err_write;\n+ (pid, inchan, outchan, errchan,tmp_file)\n+\n+let close_process_full_win (pid,inchan, outchan, errchan, tmp_file) =\n+ let delete tmp_file =\n+ match tmp_file with\n+ | None -> ()\n+ | Some x -> try Sys.remove x with Sys_error _ -> () in\n+ let tmp_file_deleted = ref false in\n+ try\n+ close_in inchan;\n+ close_out outchan;\n+ close_in errchan;\n+ let res = snd(Unix.waitpid [] pid) in\n+ tmp_file_deleted := true;\n+ delete tmp_file;\n+ res\n+ with\n+ | x when tmp_file <> None && !tmp_file_deleted = false ->\n+ delete tmp_file;\n+ raise x\n+\n (* ***)\n (*** execute *)\n (* XXX: Add test for non reentrancy *)\n@@ -130,10 +187,16 @@\n (*** add_job *)\n let add_job cmd rest result id =\n (*display begin fun oc -> fp oc \"Job %a is %s\\n%!\" print_job_id id cmd; end;*)\n- let (stdout', stdin', stderr') = open_process_full cmd env in\n+ let (pid,stdout', stdin', stderr', tmp_file) =\n+ if Sys.win32 then open_process_full_win cmd env else\n+ let a,b,c = open_process_full cmd env in\n+ -1,a,b,c,None\n+ in\n incr jobs_active;\n- set_nonblock (doi stdout');\n- set_nonblock (doi stderr');\n+ if not Sys.win32 then (\n+ set_nonblock (doi stdout');\n+ set_nonblock (doi stderr');\n+ );\n let job =\n { job_id = id;\n job_command = cmd;\n@@ -143,7 +206,9 @@\n job_stdin = stdin';\n job_stderr = stderr';\n job_buffer = Buffer.create 1024;\n- job_dying = false }\n+ job_dying = false;\n+ job_tmp_file = tmp_file;\n+ job_pid = pid }\n in\n outputs := FDM.add (doi stdout') job (FDM.add (doi stderr') job !outputs);\n jobs := JS.add job !jobs;\n@@ -199,6 +264,7 @@\n try\n read fd u 0 (Bytes.length u)\n with\n+ | Unix.Unix_error(Unix.EPIPE,_,_) when Sys.win32 -> 0\n | Unix.Unix_error(e,_,_) ->\n let msg = error_message e in\n display (fun oc -> fp oc\n@@ -241,14 +307,19 @@\n decr jobs_active;\n \n (* PR#5371: we would get EAGAIN below otherwise *)\n- clear_nonblock (doi job.job_stdout);\n- clear_nonblock (doi job.job_stderr);\n-\n+ if not Sys.win32 then (\n+ clear_nonblock (doi job.job_stdout);\n+ clear_nonblock (doi job.job_stderr);\n+ );\n do_read ~loop:true (doi job.job_stdout) job;\n do_read ~loop:true (doi job.job_stderr) job;\n outputs := FDM.remove (doi job.job_stdout) (FDM.remove (doi job.job_stderr) !outputs);\n jobs := JS.remove job !jobs;\n- let status = close_process_full (job.job_stdout, job.job_stdin, job.job_stderr) in\n+ let status =\n+ if Sys.win32 then\n+ close_process_full_win (job.job_pid, job.job_stdout, job.job_stdin, job.job_stderr, job.job_tmp_file)\n+ else\n+ close_process_full (job.job_stdout, job.job_stdin, job.job_stderr) in\n \n let shown = ref false in\n \n--- ./src/ocamlbuild_unix_plugin.ml\n+++ ./src/ocamlbuild_unix_plugin.ml\n@@ -48,12 +48,22 @@\n end\n \n let run_and_open s kont =\n+ let s_orig = s in\n+ let s =\n+ (* Be consistent! My_unix.run_and_open uses My_std.sys_command and\n+ sys_command uses bash. *)\n+ if Sys.win32 = false then s else\n+ let l = match Lazy.force My_std.windows_shell |> Array.to_list with\n+ | hd::tl -> (Filename.quote hd)::tl\n+ | _ -> assert false in\n+ \"\\\"\" ^ (String.concat \" \" l) ^ \" -ec \" ^ Filename.quote (\" \" ^ s) ^ \"\\\"\"\n+ in\n let ic = Unix.open_process_in s in\n let close () =\n match Unix.close_process_in ic with\n | Unix.WEXITED 0 -> ()\n | Unix.WEXITED _ | Unix.WSIGNALED _ | Unix.WSTOPPED _ ->\n- failwith (Printf.sprintf \"Error while running: %s\" s) in\n+ failwith (Printf.sprintf \"Error while running: %s\" s_orig) in\n let res = try\n kont ic\n with e -> (close (); raise e)\n--- ./src/options.ml\n+++ ./src/options.ml\n@@ -174,11 +174,24 @@\n build_dir := Filename.concat (Sys.getcwd ()) s\n else\n build_dir := s\n+\n+let slashify =\n+ if Sys.win32 then fun p -> String.map (function '\\\\' -> '/' | x -> x) p\n+ else fun p ->p\n+\n+let sb () =\n+ match Sys.os_type with\n+ | \"Win32\" ->\n+ (try set_binary_mode_out stdout true with _ -> ());\n+ | _ -> ()\n+\n+\n let spec = ref (\n let print_version () =\n+ sb ();\n Printf.printf \"ocamlbuild %s\\n%!\" Ocamlbuild_config.version; raise Exit_OK\n in\n- let print_vnum () = print_endline Ocamlbuild_config.version; raise Exit_OK in\n+ let print_vnum () = sb (); print_endline Ocamlbuild_config.version; raise Exit_OK in\n Arg.align\n [\n \"-version\", Unit print_version , \" Display the version\";\n@@ -257,8 +270,8 @@\n \"-build-dir\", String set_build_dir, \" Set build directory (implies no-links)\";\n \"-install-lib-dir\", Set_string Ocamlbuild_where.libdir, \" Set the install library directory\";\n \"-install-bin-dir\", Set_string Ocamlbuild_where.bindir, \" Set the install binary directory\";\n- \"-where\", Unit (fun () -> print_endline !Ocamlbuild_where.libdir; raise Exit_OK), \" Display the install library directory\";\n- \"-which\", String (fun cmd -> print_endline (find_tool cmd); raise Exit_OK), \" Display path to the tool command\";\n+ \"-where\", Unit (fun () -> sb (); print_endline (slashify !Ocamlbuild_where.libdir); raise Exit_OK), \" Display the install library directory\";\n+ \"-which\", String (fun cmd -> sb (); print_endline (slashify (find_tool cmd)); raise Exit_OK), \" Display path to the tool command\";\n \"-ocamlc\", set_cmd ocamlc, \" Set the OCaml bytecode compiler\";\n \"-plugin-ocamlc\", set_cmd plugin_ocamlc, \" Set the OCaml bytecode compiler \\\n used when building myocamlbuild.ml (only)\";\n--- ./src/pathname.ml\n+++ ./src/pathname.ml\n@@ -84,6 +84,26 @@\n | x :: xs -> x :: normalize_list xs\n \n let normalize x =\n+ let x =\n+ if Sys.win32 = false then\n+ x\n+ else\n+ let len = String.length x in\n+ let b = Bytes.create len in\n+ for i = 0 to pred len do\n+ match x.[i] with\n+ | '\\\\' -> Bytes.set b i '/'\n+ | c -> Bytes.set b i c\n+ done;\n+ if len > 1 then (\n+ let c1 = Bytes.get b 0 in\n+ let c2 = Bytes.get b 1 in\n+ if c2 = ':' && c1 >= 'a' && c1 <= 'z' &&\n+ ( len = 2 || Bytes.get b 2 = '/') then\n+ Bytes.set b 0 (Char.uppercase_ascii c1)\n+ );\n+ Bytes.unsafe_to_string b\n+ in\n if Glob.eval not_normal_form_re x then\n let root, paths = split x in\n join root (normalize_list paths)\n--- ./src/shell.ml\n+++ ./src/shell.ml\n@@ -24,12 +24,26 @@\n | 'a'..'z' | 'A'..'Z' | '0'..'9' | '.' | '-' | '/' | '_' | ':' | '@' | '+' | ',' -> loop (pos + 1)\n | _ -> false in\n loop 0\n+\n+let generic_quote quotequote s =\n+ let l = String.length s in\n+ let b = Buffer.create (l + 20) in\n+ Buffer.add_char b '\\'';\n+ for i = 0 to l - 1 do\n+ if s.[i] = '\\''\n+ then Buffer.add_string b quotequote\n+ else Buffer.add_char b s.[i]\n+ done;\n+ Buffer.add_char b '\\'';\n+ Buffer.contents b\n+let unix_quote = generic_quote \"'\\\\''\"\n+\n let quote_filename_if_needed s =\n if is_simple_filename s then s\n (* We should probably be using [Filename.unix_quote] except that function\n * isn't exported. Users on Windows will have to live with not being able to\n * install OCaml into c:\\o'caml. Too bad. *)\n- else if Sys.os_type = \"Win32\" then Printf.sprintf \"'%s'\" s\n+ else if Sys.os_type = \"Win32\" then unix_quote s\n else Filename.quote s\n let chdir dir =\n reset_filesys_cache ();\n@@ -37,7 +51,7 @@\n let run args target =\n reset_readdir_cache ();\n let cmd = String.concat \" \" (List.map quote_filename_if_needed args) in\n- if !*My_unix.is_degraded || Sys.os_type = \"Win32\" then\n+ if !*My_unix.is_degraded then\n begin\n Log.event cmd target Tags.empty;\n let st = sys_command cmd in\n", - "perm": 438 - } - ], - "opam": { - "name": "ocamlbuild", - "version": "0.12.0", - "opam": - "opam-version: \"2.0\"\nname: \"ocamlbuild\"\nversion: \"0.12.0\"\nsynopsis:\n \"OCamlbuild is a build system with builtin rules to easily build most OCaml projects.\"\nmaintainer: \"Gabriel Scherer \"\nauthors: [\"Nicolas Pouillard\" \"Berke Durak\"]\nlicense: \"LGPL-2 with OCaml linking exception\"\nhomepage: \"https://github.com/ocaml/ocamlbuild/\"\ndoc: \"https://github.com/ocaml/ocamlbuild/blob/master/manual/manual.adoc\"\nbug-reports: \"https://github.com/ocaml/ocamlbuild/issues\"\ndepends: [\n \"ocaml\" {>= \"4.03\" & < \"4.08.0\"}\n]\nconflicts: [\n \"base-ocamlbuild\"\n \"ocamlfind\" {< \"1.6.2\"}\n]\nbuild: [\n [\n make\n \"-f\"\n \"configure.make\"\n \"all\"\n \"OCAMLBUILD_PREFIX=%{prefix}%\"\n \"OCAMLBUILD_BINDIR=%{bin}%\"\n \"OCAMLBUILD_LIBDIR=%{lib}%\"\n \"OCAMLBUILD_MANDIR=%{man}%\"\n \"OCAML_NATIVE=%{ocaml:native}%\"\n \"OCAML_NATIVE_TOOLS=%{ocaml:native}%\"\n ]\n [make \"check-if-preinstalled\" \"all\" \"opam-install\"]\n]\ndev-repo: \"git+https://github.com/ocaml/ocamlbuild.git\"\nurl {\n src: \"https://github.com/ocaml/ocamlbuild/archive/0.12.0.tar.gz\"\n checksum: \"md5=442baa19470bd49150f153122e22907b\"\n}", - "override": { - "build": [ - [ - "bash", "-c", - "#{os == 'windows' ? 'patch -p1 < ocamlbuild-0.12.0.patch' : 'true'}" - ], - [ - "make", "-f", "configure.make", "all", - "OCAMLBUILD_PREFIX=#{self.install}", - "OCAMLBUILD_BINDIR=#{self.bin}", - "OCAMLBUILD_LIBDIR=#{self.lib}", - "OCAMLBUILD_MANDIR=#{self.man}", "OCAMLBUILD_NATIVE=true", - "OCAMLBUILD_NATIVE_TOOLS=true" - ], - [ - "make", "check-if-preinstalled", "all", - "#{os == 'windows' ? 'install' : 'opam-install'}" - ] - ] - } - } - }, - "dependencies": [ "@esy-ocaml/substs@0.0.1", "ocaml@4.6.7" ] - }, - "@opam/ocaml-migrate-parsetree@opam:1.1.0": { - "record": { - "name": "@opam/ocaml-migrate-parsetree", - "version": "opam:1.1.0", - "source": - "archive:https://github.com/ocaml-ppx/ocaml-migrate-parsetree/releases/download/v1.1.0/ocaml-migrate-parsetree-1.1.0.tbz#md5:7dd4808e27af98065f63604c9658d311", - "files": [], - "opam": { - "name": "ocaml-migrate-parsetree", - "version": "1.1.0", - "opam": - "opam-version: \"2.0\"\nname: \"ocaml-migrate-parsetree\"\nversion: \"1.1.0\"\nsynopsis: \"\"\ndescription: \"\"\"\nConvert OCaml parsetrees between different versions \n\nThis library converts parsetrees, outcometree and ast mappers between different OCaml versions.\nHigh-level functions help making PPX rewriters independent of a compiler version.\"\"\"\nmaintainer: \"frederic.bour@lakaban.net\"\nauthors: [\n \"Frédéric Bour \"\n \"Jérémie Dimino \"\n]\nlicense: \"LGPL-2.1\"\ntags: [\"syntax\" \"org:ocamllabs\"]\nhomepage: \"https://github.com/ocaml-ppx/ocaml-migrate-parsetree\"\ndoc: \"https://ocaml-ppx.github.io/ocaml-migrate-parsetree/\"\nbug-reports: \"https://github.com/ocaml-ppx/ocaml-migrate-parsetree/issues\"\ndepends: [\n \"result\"\n \"dune\" {build}\n \"ocaml\" {>= \"4.02.0\"}\n]\nbuild: [\"jbuilder\" \"build\" \"-p\" name \"-j\" jobs]\ndev-repo: \"git+https://github.com/ocaml-ppx/ocaml-migrate-parsetree.git\"\nurl {\n src:\n \"https://github.com/ocaml-ppx/ocaml-migrate-parsetree/releases/download/v1.1.0/ocaml-migrate-parsetree-1.1.0.tbz\"\n checksum: \"md5=7dd4808e27af98065f63604c9658d311\"\n}", - "override": null - } - }, - "dependencies": [ - "@esy-ocaml/substs@0.0.1", "@opam/dune@opam:1.4.0", - "@opam/result@opam:1.3", "ocaml@4.6.7" - ] - }, - "@opam/ocaml-compiler-libs@opam:v0.11.0": { - "record": { - "name": "@opam/ocaml-compiler-libs", - "version": "opam:v0.11.0", - "source": - "archive:https://ocaml.janestreet.com/ocaml-core/v0.11/files/ocaml-compiler-libs-v0.11.0.tar.gz#md5:e170c16186aa55b7e8b11e461418a10a", - "files": [], - "opam": { - "name": "ocaml-compiler-libs", - "version": "v0.11.0", - "opam": - "opam-version: \"2.0\"\nname: \"ocaml-compiler-libs\"\nversion: \"v0.11.0\"\nsynopsis: \"OCaml compiler libraries repackaged\"\ndescription: \"\"\"\nThis packages exposes the OCaml compiler libraries repackages under\nthe toplevel names Ocaml_common, Ocaml_bytecomp, ...\"\"\"\nmaintainer: \"opensource@janestreet.com\"\nauthors: \"Jane Street Group, LLC \"\nlicense: \"Apache-2.0\"\nhomepage: \"https://github.com/janestreet/ocaml-compiler-libs\"\nbug-reports: \"https://github.com/janestreet/ocaml-compiler-libs/issues\"\ndepends: [\n \"ocaml\" {>= \"4.04.1\"}\n \"jbuilder\" {build & >= \"1.0+beta12\"}\n]\nbuild: [\"jbuilder\" \"build\" \"-p\" name \"-j\" jobs]\ndev-repo: \"git+https://github.com/janestreet/ocaml-compiler-libs.git\"\nurl {\n src:\n \"https://ocaml.janestreet.com/ocaml-core/v0.11/files/ocaml-compiler-libs-v0.11.0.tar.gz\"\n checksum: \"md5=e170c16186aa55b7e8b11e461418a10a\"\n}", - "override": null - } - }, - "dependencies": [ - "@esy-ocaml/substs@0.0.1", "@opam/jbuilder@opam:transition", - "ocaml@4.6.7" - ] - }, - "@opam/merlin-extend@opam:0.3": { - "record": { - "name": "@opam/merlin-extend", - "version": "opam:0.3", - "source": - "archive:https://github.com/let-def/merlin-extend/archive/v0.3.tar.gz#md5:9c6dfd4f53328f02f12fcc265f4e2dda", - "files": [ - { - "name": "merlin-extend-winfix.patch", - "content": - "--- ./extend_helper.ml\n+++ ./extend_helper.ml\n@@ -1,13 +1,6 @@\n-(*pp cppo -V OCAML:`ocamlc -version` *)\n open Parsetree\n open Extend_protocol\n \n-#if OCAML_VERSION < (4, 3, 0)\n-# define CONST_STRING Asttypes.Const_string\n-#else\n-# define CONST_STRING Parsetree.Pconst_string\n-#endif\n-\n (** Default implementation for [Reader_def.print_outcome] using\n [Oprint] from compiler-libs *)\n let print_outcome_using_oprint ppf = function\n@@ -28,7 +21,7 @@\n pstr_loc = Location.none;\n pstr_desc = Pstr_eval ({\n pexp_loc = Location.none;\n- pexp_desc = Pexp_constant (CONST_STRING (msg, None));\n+ pexp_desc = Pexp_constant (Parsetree.Pconst_string (msg, None));\n pexp_attributes = [];\n }, []);\n }]\n@@ -112,7 +105,7 @@\n let msg = match payload with\n | PStr [{\n pstr_desc = Pstr_eval ({\n- pexp_desc = Pexp_constant (CONST_STRING (msg, _));\n+ pexp_desc = Pexp_constant (Parsetree.Pconst_string (msg, _));\n }, _);\n }] -> msg\n | _ -> \"Warning: extension produced an incorrect syntax-error node\"\n", - "perm": 438 - } - ], - "opam": { - "name": "merlin-extend", - "version": "0.3", - "opam": - "opam-version: \"2.0\"\nname: \"merlin-extend\"\nversion: \"0.3\"\nsynopsis: \"A protocol to provide custom frontend to Merlin\"\ndescription: \"\"\"\nThis protocol allows to replace the OCaml frontend of Merlin.\nIt extends what used to be done with the `-pp' flag to handle a few more cases.\"\"\"\nmaintainer: \"Frederic Bour \"\nauthors: \"Frederic Bour \"\nlicense: \"MIT\"\nhomepage: \"https://github.com/let-def/merlin-extend\"\nbug-reports: \"https://github.com/let-def/merlin-extend\"\ndepends: [\n \"ocaml\" {>= \"4.02.3\"}\n \"ocamlfind\" {build}\n \"cppo\" {build}\n]\nflags: light-uninstall\nbuild: make\ninstall: [make \"install\"]\nremove: [\"ocamlfind\" \"remove\" \"merlin_extend\"]\ndev-repo: \"git+https://github.com/let-def/merlin-extend.git\"\nurl {\n src: \"https://github.com/let-def/merlin-extend/archive/v0.3.tar.gz\"\n checksum: \"md5=9c6dfd4f53328f02f12fcc265f4e2dda\"\n}", - "override": { - "build": [ - [ - "bash", "-c", - "#{os == 'windows' ? 'patch -p1 < merlin-extend-winfix.patch' : 'true'}" - ], - [ "make" ] - ] - } - } - }, - "dependencies": [ - "@esy-ocaml/substs@0.0.1", "@opam/cppo@opam:1.6.5", - "@opam/ocamlfind@opam:1.8.0", "ocaml@4.6.7" - ] - }, - "@opam/menhir@opam:20171013": { - "record": { - "name": "@opam/menhir", - "version": "opam:20171013", - "source": - "archive:http://gallium.inria.fr/~fpottier/menhir/menhir-20171013.tar.gz#md5:620863edea40437390ee5e5bd82fba11", - "files": [ - { - "name": "menhir-20171013.patch", - "content": - "--- ./Makefile\n+++ ./Makefile\n@@ -59,13 +59,8 @@\n \n # If the compiler is MSVC, then object file names end in .obj instead of .o.\n \n-ifneq (,$(shell ocamlc -config | grep -E \"ccomp_type: msvc\"))\n- OBJ := obj\n-# LIBSUFFIX := lib\n-else\n- OBJ := o\n-# LIBSUFFIX := a\n-endif\n+OBJ := $(shell ocamlc -config | awk -F '[\\t \\r]+' '/^ext_obj:/ {print $$2}' | tr -d '.')\n+#LIBSUFFIX := $(shell ocamlc -config | awk -F '[\\t \\r]+' '/^ext_lib:/ {print $$2}' | tr -d '.')\n \n # If we are under Windows (regardless of whether we are using MSVC or mingw)\n # then the name of the executable file ends in .exe.\n@@ -91,8 +86,9 @@\n # performed if \"os_type\" is \"Win32\" or \"Win64\", and must not be performed if\n # \"os_type\" is \"Cygwin\" or \"Unix\".\n \n-ifneq (,$(shell ocamlc -config | grep -E \"os_type: (Win32|Win64)\"))\n-installation_libdir := $(shell cygpath -m $(libdir))\n+OS_TYPE:=\t$(shell ocamlc -config | awk -F '[\\t \\r]+' '/^os_type:/ {print $$2}')\n+ifeq ($(OS_TYPE),Win32)\n+installation_libdir := $(shell cygpath -m $(libdir) || echo $(libdir))\n else\n installation_libdir := $(libdir)\n endif\n--- ./src/cmly_write.ml\n+++ ./src/cmly_write.ml\n@@ -168,6 +168,6 @@\n output_value oc (t : grammar)\n \n let write filename =\n- let oc = open_out filename in\n+ let oc = open_out_bin filename in\n write oc (encode());\n close_out oc\n", - "perm": 438 - } - ], - "opam": { - "name": "menhir", - "version": "20171013", - "opam": - "opam-version: \"2.0\"\nname: \"menhir\"\nversion: \"20171013\"\nsynopsis: \"LR(1) parser generator\"\nmaintainer: \"francois.pottier@inria.fr\"\nauthors: [\n \"François Pottier \"\n \"Yann Régis-Gianas \"\n]\nhomepage: \"http://gallium.inria.fr/~fpottier/menhir/\"\nbug-reports: \"menhir@inria.fr\"\ndepends: [\n \"ocaml\" {>= \"4.02\"}\n \"ocamlfind\"\n \"ocamlbuild\" {build}\n]\nbuild: [\n make\n \"-f\"\n \"Makefile\"\n \"PREFIX=%{prefix}%\"\n \"USE_OCAMLFIND=true\"\n \"docdir=%{doc}%/menhir\"\n \"libdir=%{lib}%/menhir\"\n \"mandir=%{man}%/man1\"\n]\ninstall: [\n make\n \"-f\"\n \"Makefile\"\n \"install\"\n \"PREFIX=%{prefix}%\"\n \"docdir=%{doc}%/menhir\"\n \"libdir=%{lib}%/menhir\"\n \"mandir=%{man}%/man1\"\n]\nremove: [\n make\n \"-f\"\n \"Makefile\"\n \"uninstall\"\n \"PREFIX=%{prefix}%\"\n \"docdir=%{doc}%/menhir\"\n \"libdir=%{lib}%/menhir\"\n \"mandir=%{man}%/man1\"\n]\ndev-repo: \"git+https://gitlab.inria.fr/fpottier/menhir.git\"\nurl {\n src: \"http://gallium.inria.fr/~fpottier/menhir/menhir-20171013.tar.gz\"\n checksum: \"md5=620863edea40437390ee5e5bd82fba11\"\n}", - "override": { - "build": [ - [ - "bash", "-c", - "#{os == 'windows' ? 'patch -p1 < menhir-20171013.patch' : 'true'}" - ], - [ - "make", "-f", "Makefile", "PREFIX=#{self.install}", - "USE_OCAMLFIND=true", "docdir=#{self.doc}/menhir", - "libdir=#{self.lib}/menhir", "mandir=#{self.man}/man1" - ] - ] - } - } - }, - "dependencies": [ - "@esy-ocaml/substs@0.0.1", "@opam/ocamlbuild@opam:0.12.0", - "@opam/ocamlfind@opam:1.8.0", "ocaml@4.6.7" - ] - }, - "@opam/jbuilder@opam:transition": { - "record": { - "name": "@opam/jbuilder", - "version": "opam:transition", - "source": "no-source:", - "files": [], - "opam": { - "name": "jbuilder", - "version": "transition", - "opam": - "opam-version: \"2.0\"\nname: \"jbuilder\"\nversion: \"transition\"\nsynopsis:\n \"This is a transition package, jbuilder is now named dune. Use the dune\"\ndescription: \"package instead.\"\nmaintainer: \"opensource@janestreet.com\"\nauthors: \"Jane Street Group, LLC \"\nlicense: \"MIT\"\nhomepage: \"https://github.com/ocaml/dune\"\nbug-reports: \"https://github.com/ocaml/dune/issues\"\ndepends: [\"ocaml\" \"dune\"]\npost-messages:\n \"Jbuilder has been renamed and the jbuilder package is now a transition package. Use the dune package instead.\"\ndev-repo: \"git+https://github.com/ocaml/dune.git\"", - "override": null - } - }, - "dependencies": [ - "@esy-ocaml/substs@0.0.1", "@opam/dune@opam:1.4.0", "ocaml@4.6.7" - ] - }, - "@opam/easy-format@opam:1.3.1": { - "record": { - "name": "@opam/easy-format", - "version": "opam:1.3.1", - "source": - "archive:https://github.com/mjambon/easy-format/archive/v1.3.1.tar.gz#md5:4e163700fb88fdcd6b8976c3a216c8ea", - "files": [], - "opam": { - "name": "easy-format", - "version": "1.3.1", - "opam": - "opam-version: \"2.0\"\nname: \"easy-format\"\nversion: \"1.3.1\"\nsynopsis:\n \"High-level and functional interface to the Format module of the OCaml standard library\"\nmaintainer: \"martin@mjambon.com\"\nauthors: \"Martin Jambon\"\nhomepage: \"http://mjambon.com/easy-format.html\"\nbug-reports: \"https://github.com/mjambon/easy-format/issues\"\ndepends: [\n \"ocaml\" {>= \"4.02.3\"}\n \"jbuilder\" {build}\n]\nbuild: [\n [\"jbuilder\" \"build\" \"-p\" name \"-j\" jobs]\n [\"jbuilder\" \"runtest\" \"-p\" name] {with-test}\n]\ndev-repo: \"git+https://github.com/mjambon/easy-format.git\"\nurl {\n src: \"https://github.com/mjambon/easy-format/archive/v1.3.1.tar.gz\"\n checksum: \"md5=4e163700fb88fdcd6b8976c3a216c8ea\"\n}", - "override": null - } - }, - "dependencies": [ - "@esy-ocaml/substs@0.0.1", "@opam/jbuilder@opam:transition", - "ocaml@4.6.7" - ] - }, - "@opam/dune@opam:1.4.0": { - "record": { - "name": "@opam/dune", - "version": "opam:1.4.0", - "source": - "archive:https://github.com/ocaml/dune/releases/download/1.4.0/dune-1.4.0.tbz#md5:dc862e5d821ff4d8bef16a78bd472431", - "files": [], - "opam": { - "name": "dune", - "version": "1.4.0", - "opam": - "opam-version: \"2.0\"\nname: \"dune\"\nversion: \"1.4.0\"\nsynopsis: \"Fast, portable and opinionated build system\"\ndescription: \"\"\"\ndune is a build system that was designed to simplify the release of\nJane Street packages. It reads metadata from \"dune\" files following a\nvery simple s-expression syntax.\n\ndune is fast, it has very low-overhead and support parallel builds on\nall platforms. It has no system dependencies, all you need to build\ndune and packages using dune is OCaml. You don't need or make or bash\nas long as the packages themselves don't use bash explicitly.\n\ndune supports multi-package development by simply dropping multiple\nrepositories into the same directory.\n\nIt also supports multi-context builds, such as building against\nseveral opam roots/switches simultaneously. This helps maintaining\npackages across several versions of OCaml and gives cross-compilation\nfor free.\"\"\"\nmaintainer: \"opensource@janestreet.com\"\nauthors: \"Jane Street Group, LLC \"\nlicense: \"MIT\"\nhomepage: \"https://github.com/ocaml/dune\"\nbug-reports: \"https://github.com/ocaml/dune/issues\"\ndepends: [\n \"ocaml\" {>= \"4.02\"}\n]\nconflicts: [\n \"jbuilder\" {!= \"transition\"}\n]\nbuild: [\n [\"ocaml\" \"configure.ml\" \"--libdir\" lib] {opam-version < \"2\"}\n [\"ocaml\" \"bootstrap.ml\"]\n [\"./boot.exe\" \"--release\" \"--subst\"] {pinned}\n [\"./boot.exe\" \"--release\" \"-j\" jobs]\n]\ndev-repo: \"git+https://github.com/ocaml/dune.git\"\nurl {\n src: \"https://github.com/ocaml/dune/releases/download/1.4.0/dune-1.4.0.tbz\"\n checksum: \"md5=dc862e5d821ff4d8bef16a78bd472431\"\n}", - "override": { - "build": [ - [ "ocaml", "bootstrap.ml" ], - [ "./boot.exe", "--release", "-j", "4" ] - ] - } - } - }, - "dependencies": [ "@esy-ocaml/substs@0.0.1", "ocaml@4.6.7" ] - }, - "@opam/cppo@opam:1.6.5": { - "record": { - "name": "@opam/cppo", - "version": "opam:1.6.5", - "source": - "archive:https://github.com/mjambon/cppo/archive/v1.6.5.tar.gz#md5:1cd25741d31417995b0973fe0b6f6c82", - "files": [], - "opam": { - "name": "cppo", - "version": "1.6.5", - "opam": - "opam-version: \"2.0\"\nname: \"cppo\"\nversion: \"1.6.5\"\nsynopsis: \"Equivalent of the C preprocessor for OCaml programs\"\nmaintainer: \"martin@mjambon.com\"\nauthors: \"Martin Jambon\"\nlicense: \"BSD-3-Clause\"\nhomepage: \"https://github.com/mjambon/cppo\"\nbug-reports: \"https://github.com/mjambon/cppo/issues\"\ndepends: [\n \"ocaml\"\n \"jbuilder\" {build & >= \"1.0+beta17\"}\n \"base-unix\"\n]\nbuild: [\n [\"jbuilder\" \"subst\" \"-p\" name] {pinned}\n [\"jbuilder\" \"build\" \"-p\" name \"-j\" jobs]\n [\"jbuilder\" \"runtest\" \"-p\" name] {with-test}\n]\ndev-repo: \"git+https://github.com/mjambon/cppo.git\"\nurl {\n src: \"https://github.com/mjambon/cppo/archive/v1.6.5.tar.gz\"\n checksum: \"md5=1cd25741d31417995b0973fe0b6f6c82\"\n}", - "override": null - } - }, - "dependencies": [ - "@esy-ocaml/substs@0.0.1", "@opam/base-unix@opam:base", - "@opam/jbuilder@opam:transition", "ocaml@4.6.7" - ] - }, - "@opam/conf-which@opam:1": { - "record": { - "name": "@opam/conf-which", - "version": "opam:1", - "source": "no-source:", - "files": [], - "opam": { - "name": "conf-which", - "version": "1", - "opam": - "opam-version: \"2.0\"\nname: \"conf-which\"\nversion: \"1\"\nsynopsis: \"Virtual package relying on which\"\ndescription:\n \"This package can only install if the which program is installed on the system.\"\nmaintainer: \"unixjunkie@sdf.org\"\nauthors: \"Carlo Wood\"\nlicense: \"GPL-2+\"\nhomepage: \"http://www.gnu.org/software/which/\"\nbug-reports: \"https://github.com/ocaml/opam-repository/issues\"\nbuild: [\"which\" \"which\"]\ndepexts: [\n [\"which\"] {os-distribution = \"centos\"}\n [\"which\"] {os-distribution = \"fedora\"}\n [\"which\"] {os-distribution = \"opensuse\"}\n [\"debianutils\"] {os-distribution = \"debian\"}\n [\"debianutils\"] {os-distribution = \"ubuntu\"}\n [\"which\"] {os-distribution = \"nixos\"}\n [\"which\"] {os-distribution = \"archlinux\"}\n]", - "override": null - } - }, - "dependencies": [ "@esy-ocaml/substs@0.0.1" ] - }, - "@opam/conf-m4@opam:1": { - "record": { - "name": "@opam/conf-m4", - "version": "opam:1", - "source": "no-source:", - "files": [], - "opam": { - "name": "conf-m4", - "version": "1", - "opam": - "opam-version: \"2.0\"\nname: \"conf-m4\"\nversion: \"1\"\nsynopsis: \"Virtual package relying on m4\"\ndescription:\n \"This package can only install if the m4 binary is installed on the system.\"\nmaintainer: \"tim@gfxmonk.net\"\nauthors: \"GNU Project\"\nlicense: \"GPL-3\"\nhomepage: \"http://www.gnu.org/software/m4/m4.html\"\nbug-reports: \"https://github.com/ocaml/opam-repository/issues\"\nbuild: [\"sh\" \"-exc\" \"echo | m4\"]\ndepexts: [\n [\"m4\"] {os-distribution = \"debian\"}\n [\"m4\"] {os-distribution = \"ubuntu\"}\n [\"m4\"] {os-distribution = \"fedora\"}\n [\"m4\"] {os-distribution = \"rhel\"}\n [\"m4\"] {os-distribution = \"centos\"}\n [\"m4\"] {os-distribution = \"alpine\"}\n [\"m4\"] {os-distribution = \"nixos\"}\n [\"m4\"] {os-distribution = \"opensuse\"}\n [\"m4\"] {os-distribution = \"oraclelinux\"}\n [\"m4\"] {os-distribution = \"archlinux\"}\n]", - "override": null - } - }, - "dependencies": [ "@esy-ocaml/substs@0.0.1" ] - }, - "@opam/biniou@opam:1.2.0": { - "record": { - "name": "@opam/biniou", - "version": "opam:1.2.0", - "source": - "archive:https://github.com/mjambon/biniou/archive/v1.2.0.tar.gz#md5:f3e92358e832ed94eaf23ce622ccc2f9", - "files": [], - "opam": { - "name": "biniou", - "version": "1.2.0", - "opam": - "opam-version: \"2.0\"\nname: \"biniou\"\nversion: \"1.2.0\"\nsynopsis:\n \"Binary data format designed for speed, safety, ease of use and backward compatibility as protocols evolve\"\nmaintainer: \"martin@mjambon.com\"\nauthors: \"Martin Jambon\"\nlicense: \"BSD-3-Clause\"\nhomepage: \"https://github.com/mjambon/biniou\"\nbug-reports: \"https://github.com/mjambon/biniou/issues\"\ndepends: [\n \"ocaml\" {>= \"4.02.3\"}\n \"conf-which\" {build}\n \"jbuilder\" {build & >= \"1.0+beta7\"}\n \"easy-format\"\n]\nbuild: [\n [\"jbuilder\" \"build\" \"-p\" name \"-j\" jobs]\n [\"jbuilder\" \"runtest\" \"-p\" name] {with-test}\n]\ndev-repo: \"git+https://github.com/mjambon/biniou.git\"\nurl {\n src: \"https://github.com/mjambon/biniou/archive/v1.2.0.tar.gz\"\n checksum: \"md5=f3e92358e832ed94eaf23ce622ccc2f9\"\n}", - "override": null - } - }, - "dependencies": [ - "@esy-ocaml/substs@0.0.1", "@opam/conf-which@opam:1", - "@opam/easy-format@opam:1.3.1", "@opam/jbuilder@opam:transition", - "ocaml@4.6.7" - ] - }, - "@opam/base-unix@opam:base": { - "record": { - "name": "@opam/base-unix", - "version": "opam:base", - "source": "no-source:", - "files": [], - "opam": { - "name": "base-unix", - "version": "base", - "opam": - "opam-version: \"2.0\"\nname: \"base-unix\"\nversion: \"base\"\nsynopsis: \"\"\ndescription: \"Unix library distributed with the OCaml compiler\"\nmaintainer: \"https://github.com/ocaml/opam-repository/issues\"", - "override": null - } - }, - "dependencies": [ "@esy-ocaml/substs@0.0.1" ] - }, - "@opam/base@opam:v0.11.1": { - "record": { - "name": "@opam/base", - "version": "opam:v0.11.1", - "source": - "archive:https://github.com/janestreet/base/releases/download/v0.11.1/base-v0.11.1.tbz#md5:e7e7dc5db3f1fea19d74a31bbd4ac621", - "files": [ - { - "name": "base-v0.11.1.patch", - "content": - "--- ./src/exn_stubs.c\n+++ ./src/exn_stubs.c\n@@ -1,8 +1,13 @@\n #include \n \n extern int caml_backtrace_pos;\n+#ifndef _MSC_VER\n+#define UNUSED __attribute__((unused))\n+#else\n+#define UNUSED\n+#endif\n \n-CAMLprim value Base_clear_caml_backtrace_pos (value __attribute__((unused)) unit) {\n+CAMLprim value Base_clear_caml_backtrace_pos (value UNUSED unit) {\n caml_backtrace_pos = 0;\n return Val_unit;\n }\n--- ./src/int_math_stubs.c\n+++ ./src/int_math_stubs.c\n@@ -5,6 +5,25 @@\n #include \n #include \n \n+#if defined(_MSC_VER)\n+#include \n+#ifdef ARCH_SIXTYFOUR\n+#define __builtin_popcountll(x) __popcnt64((uint64_t)(x))\n+static __inline uint32_t __builtin_clzll(uint64_t value) {\n+ uint32_t leading_zero = 0;\n+ _BitScanReverse64(&leading_zero, value);\n+ return (63 - leading_zero);\n+}\n+#else\n+#define __builtin_popcount(x) __popcnt((unsigned int)(x))\n+static __inline uint32_t __builtin_clz(uint32_t value) {\n+ uint32_t leading_zero = 0;\n+ _BitScanReverse(&leading_zero, value);\n+ return (31 - leading_zero);\n+}\n+#endif /* ARCH_SIXTYFOUR */\n+#endif /* defined(_MSC_VER) */\n+\n static int64_t int_pow(int64_t base, int64_t exponent) {\n int64_t ret = 1;\n int64_t mul[4];\n--- ./src/jbuild\n+++ ./src/jbuild\n@@ -65,7 +65,7 @@\n (progn\n (with-stdout-to popcnt_test.c\n (echo \"int main(int argc, char ** argv) { return __builtin_popcount(argc); }\"))\n- (system \"${CC} -mpopcnt -c popcnt_test.c 2> ${null} && \\\n+ (bash \"${CC} -mpopcnt -c popcnt_test.c 2> ${null} && \\\n echo '(-mpopcnt)' > ${@} || echo '()' > ${@}\"))))))\n \n (ocamllex (hex_lexer))\n", - "perm": 438 - } - ], - "opam": { - "name": "base", - "version": "v0.11.1", - "opam": - "opam-version: \"2.0\"\nname: \"base\"\nversion: \"v0.11.1\"\nsynopsis: \"Full standard library replacement for OCaml\"\ndescription: \"\"\"\nFull standard library replacement for OCaml\n\nBase is a complete and portable alternative to the OCaml standard\nlibrary. It provides all standard functionalities one would expect\nfrom a language standard library. It uses consistent conventions\nacross all of its module.\n\nBase aims to be usable in any context. As a result system dependent\nfeatures such as I/O are not offered by Base. They are instead\nprovided by companion libraries such as stdio:\n\n https://github.com/janestreet/stdio\"\"\"\nmaintainer: \"opensource@janestreet.com\"\nauthors: \"Jane Street Group, LLC \"\nlicense: \"Apache-2.0\"\nhomepage: \"https://github.com/janestreet/base\"\nbug-reports: \"https://github.com/janestreet/base/issues\"\ndepends: [\n \"ocaml\" {>= \"4.04.1\"}\n \"sexplib0\" {>= \"v0.11\" & < \"v0.12\"}\n \"jbuilder\" {build & >= \"1.0+beta18.1\"}\n]\ndepopts: [\"base-native-int63\"]\nbuild: [\"jbuilder\" \"build\" \"-p\" name \"-j\" jobs]\ndev-repo: \"git+https://github.com/janestreet/base.git\"\nurl {\n src:\n \"https://github.com/janestreet/base/releases/download/v0.11.1/base-v0.11.1.tbz\"\n checksum: \"md5=e7e7dc5db3f1fea19d74a31bbd4ac621\"\n}", - "override": { - "build": [ - [ - "bash", "-c", - "#{os == 'windows' ? 'patch -p1 < base-v0.11.1.patch' : 'true'}" - ], - [ "jbuilder", "build", "-p", "base", "-j", "4" ] - ] - } - } - }, - "dependencies": [ - "@esy-ocaml/substs@0.0.1", "@opam/jbuilder@opam:transition", - "@opam/sexplib0@opam:v0.11.0", "ocaml@4.6.7" - ] - }, - "@esy-ocaml/substs@0.0.1": { - "record": { - "name": "@esy-ocaml/substs", - "version": "0.0.1", - "source": - "archive:https://registry.npmjs.org/@esy-ocaml/substs/-/substs-0.0.1.tgz#sha1:59ebdbbaedcda123fc7ed8fb2b302b7d819e9a46", - "files": [], - "opam": null - }, - "dependencies": [] - }, - "@esy-ocaml/reason@3.3.3": { - "record": { - "name": "@esy-ocaml/reason", - "version": "3.3.3", - "source": - "archive:https://registry.npmjs.org/@esy-ocaml/reason/-/reason-3.3.3.tgz#sha1:cd4c673504f7217a11a77089b021b5ba9ed1f744", - "files": [], - "opam": null - }, - "dependencies": [ - "@esy-ocaml/esy-installer@0.0.1", "@esy-ocaml/substs@0.0.1", - "@opam/jbuilder@opam:transition", "@opam/menhir@opam:20171013", - "@opam/merlin-extend@opam:0.3", - "@opam/ocaml-migrate-parsetree@opam:1.1.0", - "@opam/ocamlfind@opam:1.8.0", "@opam/result@opam:1.3" - ] - }, - "@esy-ocaml/merlin@3.0.5005": { - "record": { - "name": "@esy-ocaml/merlin", - "version": "3.0.5005", - "source": - "archive:https://registry.npmjs.org/@esy-ocaml/merlin/-/merlin-3.0.5005.tgz#sha1:4a9e2b4df20672524603b7b1797b7761d5d0d9ad", - "files": [], - "opam": null - }, - "dependencies": [ - "@esy-ocaml/esy-installer@0.0.1", "@esy-ocaml/substs@0.0.1", - "@opam/ocamlfind@opam:1.8.0", "@opam/yojson@opam:1.4.1" - ] - }, - "@esy-ocaml/esy-installer@0.0.1": { - "record": { - "name": "@esy-ocaml/esy-installer", - "version": "0.0.1", - "source": - "archive:https://registry.npmjs.org/@esy-ocaml/esy-installer/-/esy-installer-0.0.1.tgz#sha1:420c65f7e5f9bafa3da578532c352acdf00837aa", - "files": [], - "opam": null - }, - "dependencies": [] - } - } -} \ No newline at end of file diff --git a/re/esy.lock/.gitattributes b/re/esy.lock/.gitattributes deleted file mode 100644 index e0b4e26..0000000 --- a/re/esy.lock/.gitattributes +++ /dev/null @@ -1,3 +0,0 @@ - -# Set eol to LF so files aren't converted to CRLF-eol on Windows. -* text eol=lf linguist-generated diff --git a/re/esy.lock/.gitignore b/re/esy.lock/.gitignore deleted file mode 100644 index a221be2..0000000 --- a/re/esy.lock/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ - -# Reset any possible .gitignore, we want all esy.lock to be un-ignored. -!* diff --git a/re/esy.lock/index.json b/re/esy.lock/index.json deleted file mode 100644 index a04a5de..0000000 --- a/re/esy.lock/index.json +++ /dev/null @@ -1,1290 +0,0 @@ -{ - "checksum": "66770b9ac13e0d0e2e3e5ca74880d1a6", - "root": "esy-bash@link-dev:./package.json", - "node": { - "refmterr@3.3.2@d41d8cd9": { - "id": "refmterr@3.3.2@d41d8cd9", - "name": "refmterr", - "version": "3.3.2", - "source": { - "type": "install", - "source": [ - "archive:https://registry.npmjs.org/refmterr/-/refmterr-3.3.2.tgz#sha1:0536990e8a9f69684bdaa1e441904da6722fbb5a" - ] - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@reason-native/pastel@0.3.0@d41d8cd9", - "@reason-native/console@0.1.0@d41d8cd9", - "@opam/re@opam:1.10.3@0585c65d", "@opam/dune@opam:2.9.1@1e504822", - "@opam/atdgen@opam:2.2.1@6ace3080", - "@esy-ocaml/reason@3.7.0@d41d8cd9" - ], - "devDependencies": [] - }, - "ocaml@4.10.2000@d41d8cd9": { - "id": "ocaml@4.10.2000@d41d8cd9", - "name": "ocaml", - "version": "4.10.2000", - "source": { - "type": "install", - "source": [ - "archive:https://registry.npmjs.org/ocaml/-/ocaml-4.10.2000.tgz#sha1:9e9a6305340fdcac2b105f26f20de4255686edc0" - ] - }, - "overrides": [], - "dependencies": [], - "devDependencies": [] - }, - "esy-bash@link-dev:./package.json": { - "id": "esy-bash@link-dev:./package.json", - "name": "esy-bash", - "version": "link-dev:./package.json", - "source": { - "type": "link-dev", - "path": ".", - "manifest": "package.json" - }, - "overrides": [], - "dependencies": [ - "refmterr@3.3.2@d41d8cd9", "ocaml@4.10.2000@d41d8cd9", - "@opam/ppx_inline_test@opam:v0.14.1@8b68b6f7", - "@opam/dune@opam:2.9.1@1e504822", "@esy-ocaml/reason@3.7.0@d41d8cd9" - ], - "devDependencies": [] - }, - "@reason-native/pastel@0.3.0@d41d8cd9": { - "id": "@reason-native/pastel@0.3.0@d41d8cd9", - "name": "@reason-native/pastel", - "version": "0.3.0", - "source": { - "type": "install", - "source": [ - "archive:https://registry.npmjs.org/@reason-native/pastel/-/pastel-0.3.0.tgz#sha1:07da3c5a0933e61bc3b353bc85aa71ac7c0f311c" - ] - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/re@opam:1.10.3@0585c65d", - "@opam/dune@opam:2.9.1@1e504822", "@esy-ocaml/reason@3.7.0@d41d8cd9" - ], - "devDependencies": [] - }, - "@reason-native/console@0.1.0@d41d8cd9": { - "id": "@reason-native/console@0.1.0@d41d8cd9", - "name": "@reason-native/console", - "version": "0.1.0", - "source": { - "type": "install", - "source": [ - "archive:https://registry.npmjs.org/@reason-native/console/-/console-0.1.0.tgz#sha1:3b56f0e9e1be8464329793df29020aa90e71c22c" - ] - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822", - "@esy-ocaml/reason@3.7.0@d41d8cd9" - ], - "devDependencies": [] - }, - "@opam/yojson@opam:1.7.0@69d87312": { - "id": "@opam/yojson@opam:1.7.0@69d87312", - "name": "@opam/yojson", - "version": "opam:1.7.0", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/md5/b8/b89d39ca3f8c532abe5f547ad3b8f84d#md5:b89d39ca3f8c532abe5f547ad3b8f84d", - "archive:https://github.com/ocaml-community/yojson/releases/download/1.7.0/yojson-1.7.0.tbz#md5:b89d39ca3f8c532abe5f547ad3b8f84d" - ], - "opam": { - "name": "yojson", - "version": "1.7.0", - "path": "esy.lock/opam/yojson.1.7.0" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/easy-format@opam:1.3.2@1ea9f987", - "@opam/dune@opam:2.9.1@1e504822", "@opam/cppo@opam:1.6.8@7e48217d", - "@opam/biniou@opam:1.2.1@420bda02", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/easy-format@opam:1.3.2@1ea9f987", - "@opam/dune@opam:2.9.1@1e504822", "@opam/biniou@opam:1.2.1@420bda02" - ] - }, - "@opam/time_now@opam:v0.14.0@54e3342e": { - "id": "@opam/time_now@opam:v0.14.0@54e3342e", - "name": "@opam/time_now", - "version": "opam:v0.14.0", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/md5/a9/a93116938783587f8b9f5152dd543037#md5:a93116938783587f8b9f5152dd543037", - "archive:https://ocaml.janestreet.com/ocaml-core/v0.14/files/time_now-v0.14.0.tar.gz#md5:a93116938783587f8b9f5152dd543037" - ], - "opam": { - "name": "time_now", - "version": "v0.14.0", - "path": "esy.lock/opam/time_now.v0.14.0" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", - "@opam/ppx_optcomp@opam:v0.14.3@08009524", - "@opam/ppx_base@opam:v0.14.0@3221121a", - "@opam/jst-config@opam:v0.14.1@95aef818", - "@opam/jane-street-headers@opam:v0.14.0@b38e12bf", - "@opam/dune@opam:2.9.1@1e504822", "@opam/base@opam:v0.14.2@04880a76", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", - "@opam/ppx_optcomp@opam:v0.14.3@08009524", - "@opam/ppx_base@opam:v0.14.0@3221121a", - "@opam/jst-config@opam:v0.14.1@95aef818", - "@opam/jane-street-headers@opam:v0.14.0@b38e12bf", - "@opam/dune@opam:2.9.1@1e504822", "@opam/base@opam:v0.14.2@04880a76" - ] - }, - "@opam/stdlib-shims@opam:0.3.0@0d088929": { - "id": "@opam/stdlib-shims@opam:0.3.0@0d088929", - "name": "@opam/stdlib-shims", - "version": "opam:0.3.0", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/sha256/ba/babf72d3917b86f707885f0c5528e36c63fccb698f4b46cf2bab5c7ccdd6d84a#sha256:babf72d3917b86f707885f0c5528e36c63fccb698f4b46cf2bab5c7ccdd6d84a", - "archive:https://github.com/ocaml/stdlib-shims/releases/download/0.3.0/stdlib-shims-0.3.0.tbz#sha256:babf72d3917b86f707885f0c5528e36c63fccb698f4b46cf2bab5c7ccdd6d84a" - ], - "opam": { - "name": "stdlib-shims", - "version": "0.3.0", - "path": "esy.lock/opam/stdlib-shims.0.3.0" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822" - ] - }, - "@opam/stdio@opam:v0.14.0@a5affb43": { - "id": "@opam/stdio@opam:v0.14.0@a5affb43", - "name": "@opam/stdio", - "version": "opam:v0.14.0", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/md5/4c/4cbdf15f0be88c3258aaeff9e04e00e9#md5:4cbdf15f0be88c3258aaeff9e04e00e9", - "archive:https://ocaml.janestreet.com/ocaml-core/v0.14/files/stdio-v0.14.0.tar.gz#md5:4cbdf15f0be88c3258aaeff9e04e00e9" - ], - "opam": { - "name": "stdio", - "version": "v0.14.0", - "path": "esy.lock/opam/stdio.v0.14.0" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822", - "@opam/base@opam:v0.14.2@04880a76", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822", - "@opam/base@opam:v0.14.2@04880a76" - ] - }, - "@opam/sexplib0@opam:v0.14.0@155c136c": { - "id": "@opam/sexplib0@opam:v0.14.0@155c136c", - "name": "@opam/sexplib0", - "version": "opam:v0.14.0", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/md5/37/37aff0af8f8f6f759249475684aebdc4#md5:37aff0af8f8f6f759249475684aebdc4", - "archive:https://ocaml.janestreet.com/ocaml-core/v0.14/files/sexplib0-v0.14.0.tar.gz#md5:37aff0af8f8f6f759249475684aebdc4" - ], - "opam": { - "name": "sexplib0", - "version": "v0.14.0", - "path": "esy.lock/opam/sexplib0.v0.14.0" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822" - ] - }, - "@opam/seq@opam:base@d8d7de1d": { - "id": "@opam/seq@opam:base@d8d7de1d", - "name": "@opam/seq", - "version": "opam:base", - "source": { - "type": "install", - "source": [ "no-source:" ], - "opam": { - "name": "seq", - "version": "base", - "path": "esy.lock/opam/seq.base" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ "ocaml@4.10.2000@d41d8cd9" ] - }, - "@opam/result@opam:1.5@1c6a6533": { - "id": "@opam/result@opam:1.5@1c6a6533", - "name": "@opam/result", - "version": "opam:1.5", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/md5/1b/1b82dec78849680b49ae9a8a365b831b#md5:1b82dec78849680b49ae9a8a365b831b", - "archive:https://github.com/janestreet/result/releases/download/1.5/result-1.5.tbz#md5:1b82dec78849680b49ae9a8a365b831b" - ], - "opam": { - "name": "result", - "version": "1.5", - "path": "esy.lock/opam/result.1.5" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822" - ] - }, - "@opam/re@opam:1.10.3@0585c65d": { - "id": "@opam/re@opam:1.10.3@0585c65d", - "name": "@opam/re", - "version": "opam:1.10.3", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/sha256/84/846546967f3fe31765935dd40a6460a9424337ecce7b12727fcba49480790ebb#sha256:846546967f3fe31765935dd40a6460a9424337ecce7b12727fcba49480790ebb", - "archive:https://github.com/ocaml/ocaml-re/releases/download/1.10.3/re-1.10.3.tbz#sha256:846546967f3fe31765935dd40a6460a9424337ecce7b12727fcba49480790ebb" - ], - "opam": { - "name": "re", - "version": "1.10.3", - "path": "esy.lock/opam/re.1.10.3" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/seq@opam:base@d8d7de1d", - "@opam/dune@opam:2.9.1@1e504822", "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/seq@opam:base@d8d7de1d", - "@opam/dune@opam:2.9.1@1e504822" - ] - }, - "@opam/ppxlib@opam:0.23.0@b29cda02": { - "id": "@opam/ppxlib@opam:0.23.0@b29cda02", - "name": "@opam/ppxlib", - "version": "opam:0.23.0", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/sha256/1b/1b5836c186b9d5a16acf47da94f3968f4f08b519b7729cd86a8fd39971fe12e5#sha256:1b5836c186b9d5a16acf47da94f3968f4f08b519b7729cd86a8fd39971fe12e5", - "archive:https://github.com/ocaml-ppx/ppxlib/releases/download/0.23.0/ppxlib-0.23.0.tbz#sha256:1b5836c186b9d5a16acf47da94f3968f4f08b519b7729cd86a8fd39971fe12e5" - ], - "opam": { - "name": "ppxlib", - "version": "0.23.0", - "path": "esy.lock/opam/ppxlib.0.23.0" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/stdlib-shims@opam:0.3.0@0d088929", - "@opam/sexplib0@opam:v0.14.0@155c136c", - "@opam/ppx_derivers@opam:1.2.1@e2cbad12", - "@opam/ocaml-compiler-libs@opam:v0.12.4@41979882", - "@opam/dune@opam:2.9.1@1e504822", "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/stdlib-shims@opam:0.3.0@0d088929", - "@opam/sexplib0@opam:v0.14.0@155c136c", - "@opam/ppx_derivers@opam:1.2.1@e2cbad12", - "@opam/ocaml-compiler-libs@opam:v0.12.4@41979882", - "@opam/dune@opam:2.9.1@1e504822" - ] - }, - "@opam/ppx_sexp_conv@opam:v0.14.3@8f42b1ac": { - "id": "@opam/ppx_sexp_conv@opam:v0.14.3@8f42b1ac", - "name": "@opam/ppx_sexp_conv", - "version": "opam:v0.14.3", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/md5/25/25caf01245e0113e035ccefe275f85d9#md5:25caf01245e0113e035ccefe275f85d9", - "archive:https://github.com/janestreet/ppx_sexp_conv/archive/v0.14.3.tar.gz#md5:25caf01245e0113e035ccefe275f85d9" - ], - "opam": { - "name": "ppx_sexp_conv", - "version": "v0.14.3", - "path": "esy.lock/opam/ppx_sexp_conv.v0.14.3" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/sexplib0@opam:v0.14.0@155c136c", - "@opam/ppxlib@opam:0.23.0@b29cda02", - "@opam/dune@opam:2.9.1@1e504822", "@opam/base@opam:v0.14.2@04880a76", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/sexplib0@opam:v0.14.0@155c136c", - "@opam/ppxlib@opam:0.23.0@b29cda02", - "@opam/dune@opam:2.9.1@1e504822", "@opam/base@opam:v0.14.2@04880a76" - ] - }, - "@opam/ppx_optcomp@opam:v0.14.3@08009524": { - "id": "@opam/ppx_optcomp@opam:v0.14.3@08009524", - "name": "@opam/ppx_optcomp", - "version": "opam:v0.14.3", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/md5/2d/2d012df62dd0bc82d2ea4ab25b628992#md5:2d012df62dd0bc82d2ea4ab25b628992", - "archive:https://github.com/janestreet/ppx_optcomp/archive/v0.14.3.tar.gz#md5:2d012df62dd0bc82d2ea4ab25b628992" - ], - "opam": { - "name": "ppx_optcomp", - "version": "v0.14.3", - "path": "esy.lock/opam/ppx_optcomp.v0.14.3" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/stdio@opam:v0.14.0@a5affb43", - "@opam/ppxlib@opam:0.23.0@b29cda02", - "@opam/dune@opam:2.9.1@1e504822", "@opam/base@opam:v0.14.2@04880a76", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/stdio@opam:v0.14.0@a5affb43", - "@opam/ppxlib@opam:0.23.0@b29cda02", - "@opam/dune@opam:2.9.1@1e504822", "@opam/base@opam:v0.14.2@04880a76" - ] - }, - "@opam/ppx_js_style@opam:v0.14.1@03f2d62f": { - "id": "@opam/ppx_js_style@opam:v0.14.1@03f2d62f", - "name": "@opam/ppx_js_style", - "version": "opam:v0.14.1", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/md5/2d/2d79afa4f954aeafb81b64ecfc11c3fb#md5:2d79afa4f954aeafb81b64ecfc11c3fb", - "archive:https://github.com/janestreet/ppx_js_style/archive/refs/tags/v0.14.1.tar.gz#md5:2d79afa4f954aeafb81b64ecfc11c3fb" - ], - "opam": { - "name": "ppx_js_style", - "version": "v0.14.1", - "path": "esy.lock/opam/ppx_js_style.v0.14.1" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/ppxlib@opam:0.23.0@b29cda02", - "@opam/octavius@opam:1.2.2@2205cc65", - "@opam/dune@opam:2.9.1@1e504822", "@opam/base@opam:v0.14.2@04880a76", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/ppxlib@opam:0.23.0@b29cda02", - "@opam/octavius@opam:1.2.2@2205cc65", - "@opam/dune@opam:2.9.1@1e504822", "@opam/base@opam:v0.14.2@04880a76" - ] - }, - "@opam/ppx_inline_test@opam:v0.14.1@8b68b6f7": { - "id": "@opam/ppx_inline_test@opam:v0.14.1@8b68b6f7", - "name": "@opam/ppx_inline_test", - "version": "opam:v0.14.1", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/md5/13/132754f0757188c3b700a2c5b6a2fb3f#md5:132754f0757188c3b700a2c5b6a2fb3f", - "archive:https://github.com/janestreet/ppx_inline_test/archive/v0.14.1.tar.gz#md5:132754f0757188c3b700a2c5b6a2fb3f" - ], - "opam": { - "name": "ppx_inline_test", - "version": "v0.14.1", - "path": "esy.lock/opam/ppx_inline_test.v0.14.1" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/time_now@opam:v0.14.0@54e3342e", - "@opam/ppxlib@opam:0.23.0@b29cda02", - "@opam/dune@opam:2.9.1@1e504822", "@opam/base@opam:v0.14.2@04880a76", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/time_now@opam:v0.14.0@54e3342e", - "@opam/ppxlib@opam:0.23.0@b29cda02", - "@opam/dune@opam:2.9.1@1e504822", "@opam/base@opam:v0.14.2@04880a76" - ] - }, - "@opam/ppx_here@opam:v0.14.0@c05577d4": { - "id": "@opam/ppx_here@opam:v0.14.0@c05577d4", - "name": "@opam/ppx_here", - "version": "opam:v0.14.0", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/md5/bb/bb3bbde0964a1f866de09f3df44def4d#md5:bb3bbde0964a1f866de09f3df44def4d", - "archive:https://ocaml.janestreet.com/ocaml-core/v0.14/files/ppx_here-v0.14.0.tar.gz#md5:bb3bbde0964a1f866de09f3df44def4d" - ], - "opam": { - "name": "ppx_here", - "version": "v0.14.0", - "path": "esy.lock/opam/ppx_here.v0.14.0" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/ppxlib@opam:0.23.0@b29cda02", - "@opam/dune@opam:2.9.1@1e504822", "@opam/base@opam:v0.14.2@04880a76", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/ppxlib@opam:0.23.0@b29cda02", - "@opam/dune@opam:2.9.1@1e504822", "@opam/base@opam:v0.14.2@04880a76" - ] - }, - "@opam/ppx_hash@opam:v0.14.0@455f5f56": { - "id": "@opam/ppx_hash@opam:v0.14.0@455f5f56", - "name": "@opam/ppx_hash", - "version": "opam:v0.14.0", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/md5/b7/b78aee19bb4469731f9626b04fe7f341#md5:b78aee19bb4469731f9626b04fe7f341", - "archive:https://ocaml.janestreet.com/ocaml-core/v0.14/files/ppx_hash-v0.14.0.tar.gz#md5:b78aee19bb4469731f9626b04fe7f341" - ], - "opam": { - "name": "ppx_hash", - "version": "v0.14.0", - "path": "esy.lock/opam/ppx_hash.v0.14.0" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/ppxlib@opam:0.23.0@b29cda02", - "@opam/ppx_sexp_conv@opam:v0.14.3@8f42b1ac", - "@opam/ppx_compare@opam:v0.14.0@fbd22977", - "@opam/dune@opam:2.9.1@1e504822", "@opam/base@opam:v0.14.2@04880a76", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/ppxlib@opam:0.23.0@b29cda02", - "@opam/ppx_sexp_conv@opam:v0.14.3@8f42b1ac", - "@opam/ppx_compare@opam:v0.14.0@fbd22977", - "@opam/dune@opam:2.9.1@1e504822", "@opam/base@opam:v0.14.2@04880a76" - ] - }, - "@opam/ppx_enumerate@opam:v0.14.0@2be34197": { - "id": "@opam/ppx_enumerate@opam:v0.14.0@2be34197", - "name": "@opam/ppx_enumerate", - "version": "opam:v0.14.0", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/md5/18/188421af960759f6e45dd748f4f08e8d#md5:188421af960759f6e45dd748f4f08e8d", - "archive:https://ocaml.janestreet.com/ocaml-core/v0.14/files/ppx_enumerate-v0.14.0.tar.gz#md5:188421af960759f6e45dd748f4f08e8d" - ], - "opam": { - "name": "ppx_enumerate", - "version": "v0.14.0", - "path": "esy.lock/opam/ppx_enumerate.v0.14.0" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/ppxlib@opam:0.23.0@b29cda02", - "@opam/dune@opam:2.9.1@1e504822", "@opam/base@opam:v0.14.2@04880a76", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/ppxlib@opam:0.23.0@b29cda02", - "@opam/dune@opam:2.9.1@1e504822", "@opam/base@opam:v0.14.2@04880a76" - ] - }, - "@opam/ppx_derivers@opam:1.2.1@e2cbad12": { - "id": "@opam/ppx_derivers@opam:1.2.1@e2cbad12", - "name": "@opam/ppx_derivers", - "version": "opam:1.2.1", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/md5/5d/5dc2bf130c1db3c731fe0fffc5648b41#md5:5dc2bf130c1db3c731fe0fffc5648b41", - "archive:https://github.com/ocaml-ppx/ppx_derivers/archive/1.2.1.tar.gz#md5:5dc2bf130c1db3c731fe0fffc5648b41" - ], - "opam": { - "name": "ppx_derivers", - "version": "1.2.1", - "path": "esy.lock/opam/ppx_derivers.1.2.1" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822" - ] - }, - "@opam/ppx_compare@opam:v0.14.0@fbd22977": { - "id": "@opam/ppx_compare@opam:v0.14.0@fbd22977", - "name": "@opam/ppx_compare", - "version": "opam:v0.14.0", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/md5/91/9149b3a0c954fe2cef2b0705d254b9e3#md5:9149b3a0c954fe2cef2b0705d254b9e3", - "archive:https://ocaml.janestreet.com/ocaml-core/v0.14/files/ppx_compare-v0.14.0.tar.gz#md5:9149b3a0c954fe2cef2b0705d254b9e3" - ], - "opam": { - "name": "ppx_compare", - "version": "v0.14.0", - "path": "esy.lock/opam/ppx_compare.v0.14.0" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/ppxlib@opam:0.23.0@b29cda02", - "@opam/dune@opam:2.9.1@1e504822", "@opam/base@opam:v0.14.2@04880a76", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/ppxlib@opam:0.23.0@b29cda02", - "@opam/dune@opam:2.9.1@1e504822", "@opam/base@opam:v0.14.2@04880a76" - ] - }, - "@opam/ppx_cold@opam:v0.14.0@91b05a20": { - "id": "@opam/ppx_cold@opam:v0.14.0@91b05a20", - "name": "@opam/ppx_cold", - "version": "opam:v0.14.0", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/md5/6a/6a61807cd3b105b8c885bd2076986339#md5:6a61807cd3b105b8c885bd2076986339", - "archive:https://ocaml.janestreet.com/ocaml-core/v0.14/files/ppx_cold-v0.14.0.tar.gz#md5:6a61807cd3b105b8c885bd2076986339" - ], - "opam": { - "name": "ppx_cold", - "version": "v0.14.0", - "path": "esy.lock/opam/ppx_cold.v0.14.0" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/ppxlib@opam:0.23.0@b29cda02", - "@opam/dune@opam:2.9.1@1e504822", "@opam/base@opam:v0.14.2@04880a76", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/ppxlib@opam:0.23.0@b29cda02", - "@opam/dune@opam:2.9.1@1e504822", "@opam/base@opam:v0.14.2@04880a76" - ] - }, - "@opam/ppx_base@opam:v0.14.0@3221121a": { - "id": "@opam/ppx_base@opam:v0.14.0@3221121a", - "name": "@opam/ppx_base", - "version": "opam:v0.14.0", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/md5/b2/b29a24907e60f42e050ad90e5209bb92#md5:b29a24907e60f42e050ad90e5209bb92", - "archive:https://ocaml.janestreet.com/ocaml-core/v0.14/files/ppx_base-v0.14.0.tar.gz#md5:b29a24907e60f42e050ad90e5209bb92" - ], - "opam": { - "name": "ppx_base", - "version": "v0.14.0", - "path": "esy.lock/opam/ppx_base.v0.14.0" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/ppxlib@opam:0.23.0@b29cda02", - "@opam/ppx_sexp_conv@opam:v0.14.3@8f42b1ac", - "@opam/ppx_js_style@opam:v0.14.1@03f2d62f", - "@opam/ppx_hash@opam:v0.14.0@455f5f56", - "@opam/ppx_enumerate@opam:v0.14.0@2be34197", - "@opam/ppx_compare@opam:v0.14.0@fbd22977", - "@opam/ppx_cold@opam:v0.14.0@91b05a20", - "@opam/dune@opam:2.9.1@1e504822", "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/ppxlib@opam:0.23.0@b29cda02", - "@opam/ppx_sexp_conv@opam:v0.14.3@8f42b1ac", - "@opam/ppx_js_style@opam:v0.14.1@03f2d62f", - "@opam/ppx_hash@opam:v0.14.0@455f5f56", - "@opam/ppx_enumerate@opam:v0.14.0@2be34197", - "@opam/ppx_compare@opam:v0.14.0@fbd22977", - "@opam/ppx_cold@opam:v0.14.0@91b05a20", - "@opam/dune@opam:2.9.1@1e504822" - ] - }, - "@opam/ppx_assert@opam:v0.14.0@f5d6cf6a": { - "id": "@opam/ppx_assert@opam:v0.14.0@f5d6cf6a", - "name": "@opam/ppx_assert", - "version": "opam:v0.14.0", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/md5/53/535b5f241eb7f10da8c044c26afbc186#md5:535b5f241eb7f10da8c044c26afbc186", - "archive:https://ocaml.janestreet.com/ocaml-core/v0.14/files/ppx_assert-v0.14.0.tar.gz#md5:535b5f241eb7f10da8c044c26afbc186" - ], - "opam": { - "name": "ppx_assert", - "version": "v0.14.0", - "path": "esy.lock/opam/ppx_assert.v0.14.0" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/ppxlib@opam:0.23.0@b29cda02", - "@opam/ppx_sexp_conv@opam:v0.14.3@8f42b1ac", - "@opam/ppx_here@opam:v0.14.0@c05577d4", - "@opam/ppx_compare@opam:v0.14.0@fbd22977", - "@opam/ppx_cold@opam:v0.14.0@91b05a20", - "@opam/dune@opam:2.9.1@1e504822", "@opam/base@opam:v0.14.2@04880a76", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/ppxlib@opam:0.23.0@b29cda02", - "@opam/ppx_sexp_conv@opam:v0.14.3@8f42b1ac", - "@opam/ppx_here@opam:v0.14.0@c05577d4", - "@opam/ppx_compare@opam:v0.14.0@fbd22977", - "@opam/ppx_cold@opam:v0.14.0@91b05a20", - "@opam/dune@opam:2.9.1@1e504822", "@opam/base@opam:v0.14.2@04880a76" - ] - }, - "@opam/octavius@opam:1.2.2@2205cc65": { - "id": "@opam/octavius@opam:1.2.2@2205cc65", - "name": "@opam/octavius", - "version": "opam:1.2.2", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/md5/72/72f9e1d996e6c5089fc513cc9218607b#md5:72f9e1d996e6c5089fc513cc9218607b", - "archive:https://github.com/ocaml-doc/octavius/archive/v1.2.2.tar.gz#md5:72f9e1d996e6c5089fc513cc9218607b" - ], - "opam": { - "name": "octavius", - "version": "1.2.2", - "path": "esy.lock/opam/octavius.1.2.2" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822" - ] - }, - "@opam/ocamlfind@opam:1.9.1@b748edf6": { - "id": "@opam/ocamlfind@opam:1.9.1@b748edf6", - "name": "@opam/ocamlfind", - "version": "opam:1.9.1", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/md5/65/65e6dc9b305ccbed1267275fe180f538#md5:65e6dc9b305ccbed1267275fe180f538", - "archive:http://download.camlcity.org/download/findlib-1.9.1.tar.gz#md5:65e6dc9b305ccbed1267275fe180f538" - ], - "opam": { - "name": "ocamlfind", - "version": "1.9.1", - "path": "esy.lock/opam/ocamlfind.1.9.1" - } - }, - "overrides": [ - { - "opamoverride": - "esy.lock/overrides/opam__s__ocamlfind_opam__c__1.9.1_opam_override" - } - ], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ "ocaml@4.10.2000@d41d8cd9" ] - }, - "@opam/ocaml-compiler-libs@opam:v0.12.4@41979882": { - "id": "@opam/ocaml-compiler-libs@opam:v0.12.4@41979882", - "name": "@opam/ocaml-compiler-libs", - "version": "opam:v0.12.4", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/sha256/4e/4ec9c9ec35cc45c18c7a143761154ef1d7663036a29297f80381f47981a07760#sha256:4ec9c9ec35cc45c18c7a143761154ef1d7663036a29297f80381f47981a07760", - "archive:https://github.com/janestreet/ocaml-compiler-libs/releases/download/v0.12.4/ocaml-compiler-libs-v0.12.4.tbz#sha256:4ec9c9ec35cc45c18c7a143761154ef1d7663036a29297f80381f47981a07760" - ], - "opam": { - "name": "ocaml-compiler-libs", - "version": "v0.12.4", - "path": "esy.lock/opam/ocaml-compiler-libs.v0.12.4" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822" - ] - }, - "@opam/merlin-extend@opam:0.6@88755c91": { - "id": "@opam/merlin-extend@opam:0.6@88755c91", - "name": "@opam/merlin-extend", - "version": "opam:0.6", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/sha256/c2/c2f236ae97feb6ba0bc90f33beb7b7343e42f9871b66de9ba07974917e256c43#sha256:c2f236ae97feb6ba0bc90f33beb7b7343e42f9871b66de9ba07974917e256c43", - "archive:https://github.com/let-def/merlin-extend/releases/download/v0.6/merlin-extend-v0.6.tbz#sha256:c2f236ae97feb6ba0bc90f33beb7b7343e42f9871b66de9ba07974917e256c43" - ], - "opam": { - "name": "merlin-extend", - "version": "0.6", - "path": "esy.lock/opam/merlin-extend.0.6" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822", - "@opam/cppo@opam:1.6.8@7e48217d", "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822" - ] - }, - "@opam/menhirSdk@opam:20211128@e9fd3a0e": { - "id": "@opam/menhirSdk@opam:20211128@e9fd3a0e", - "name": "@opam/menhirSdk", - "version": "opam:20211128", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/md5/01/015354590ebce7911b073beae57e7731#md5:015354590ebce7911b073beae57e7731", - "archive:https://gitlab.inria.fr/fpottier/menhir/-/archive/20211128/archive.tar.gz#md5:015354590ebce7911b073beae57e7731" - ], - "opam": { - "name": "menhirSdk", - "version": "20211128", - "path": "esy.lock/opam/menhirSdk.20211128" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822" - ] - }, - "@opam/menhirLib@opam:20211128@e86421ad": { - "id": "@opam/menhirLib@opam:20211128@e86421ad", - "name": "@opam/menhirLib", - "version": "opam:20211128", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/md5/01/015354590ebce7911b073beae57e7731#md5:015354590ebce7911b073beae57e7731", - "archive:https://gitlab.inria.fr/fpottier/menhir/-/archive/20211128/archive.tar.gz#md5:015354590ebce7911b073beae57e7731" - ], - "opam": { - "name": "menhirLib", - "version": "20211128", - "path": "esy.lock/opam/menhirLib.20211128" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822" - ] - }, - "@opam/menhir@opam:20211128@d5aaf21f": { - "id": "@opam/menhir@opam:20211128@d5aaf21f", - "name": "@opam/menhir", - "version": "opam:20211128", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/md5/01/015354590ebce7911b073beae57e7731#md5:015354590ebce7911b073beae57e7731", - "archive:https://gitlab.inria.fr/fpottier/menhir/-/archive/20211128/archive.tar.gz#md5:015354590ebce7911b073beae57e7731" - ], - "opam": { - "name": "menhir", - "version": "20211128", - "path": "esy.lock/opam/menhir.20211128" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/menhirSdk@opam:20211128@e9fd3a0e", - "@opam/menhirLib@opam:20211128@e86421ad", - "@opam/dune@opam:2.9.1@1e504822", "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/menhirSdk@opam:20211128@e9fd3a0e", - "@opam/menhirLib@opam:20211128@e86421ad", - "@opam/dune@opam:2.9.1@1e504822" - ] - }, - "@opam/jst-config@opam:v0.14.1@95aef818": { - "id": "@opam/jst-config@opam:v0.14.1@95aef818", - "name": "@opam/jst-config", - "version": "opam:v0.14.1", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/md5/ca/ca0d970356cc99b0a5660058a93ff589#md5:ca0d970356cc99b0a5660058a93ff589", - "archive:https://github.com/janestreet/jst-config/archive/refs/tags/v0.14.1.tar.gz#md5:ca0d970356cc99b0a5660058a93ff589" - ], - "opam": { - "name": "jst-config", - "version": "v0.14.1", - "path": "esy.lock/opam/jst-config.v0.14.1" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/stdio@opam:v0.14.0@a5affb43", - "@opam/ppx_assert@opam:v0.14.0@f5d6cf6a", - "@opam/dune-configurator@opam:2.9.1@b7cf7a02", - "@opam/dune@opam:2.9.1@1e504822", "@opam/base@opam:v0.14.2@04880a76", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/stdio@opam:v0.14.0@a5affb43", - "@opam/ppx_assert@opam:v0.14.0@f5d6cf6a", - "@opam/dune-configurator@opam:2.9.1@b7cf7a02", - "@opam/dune@opam:2.9.1@1e504822", "@opam/base@opam:v0.14.2@04880a76" - ] - }, - "@opam/jane-street-headers@opam:v0.14.0@b38e12bf": { - "id": "@opam/jane-street-headers@opam:v0.14.0@b38e12bf", - "name": "@opam/jane-street-headers", - "version": "opam:v0.14.0", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/md5/e8/e8d253ac44d25c8c66367153a0c77495#md5:e8d253ac44d25c8c66367153a0c77495", - "archive:https://ocaml.janestreet.com/ocaml-core/v0.14/files/jane-street-headers-v0.14.0.tar.gz#md5:e8d253ac44d25c8c66367153a0c77495" - ], - "opam": { - "name": "jane-street-headers", - "version": "v0.14.0", - "path": "esy.lock/opam/jane-street-headers.v0.14.0" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822" - ] - }, - "@opam/fix@opam:20211125@f2a50310": { - "id": "@opam/fix@opam:20211125@f2a50310", - "name": "@opam/fix", - "version": "opam:20211125", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/md5/d3/d3d316080a2fc9a4f56c15040e141364#md5:d3d316080a2fc9a4f56c15040e141364", - "archive:https://gitlab.inria.fr/fpottier/fix/-/archive/20211125/archive.tar.gz#md5:d3d316080a2fc9a4f56c15040e141364" - ], - "opam": { - "name": "fix", - "version": "20211125", - "path": "esy.lock/opam/fix.20211125" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822" - ] - }, - "@opam/easy-format@opam:1.3.2@1ea9f987": { - "id": "@opam/easy-format@opam:1.3.2@1ea9f987", - "name": "@opam/easy-format", - "version": "opam:1.3.2", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/sha256/34/3440c2b882d537ae5e9011eb06abb53f5667e651ea4bb3b460ea8230fa8c1926#sha256:3440c2b882d537ae5e9011eb06abb53f5667e651ea4bb3b460ea8230fa8c1926", - "archive:https://github.com/mjambon/easy-format/releases/download/1.3.2/easy-format-1.3.2.tbz#sha256:3440c2b882d537ae5e9011eb06abb53f5667e651ea4bb3b460ea8230fa8c1926" - ], - "opam": { - "name": "easy-format", - "version": "1.3.2", - "path": "esy.lock/opam/easy-format.1.3.2" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822" - ] - }, - "@opam/dune-configurator@opam:2.9.1@b7cf7a02": { - "id": "@opam/dune-configurator@opam:2.9.1@b7cf7a02", - "name": "@opam/dune-configurator", - "version": "opam:2.9.1", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/sha256/b3/b374feb22b34099ccc6dd32128e18d088ff9a81837952b29f05110b308c09f26#sha256:b374feb22b34099ccc6dd32128e18d088ff9a81837952b29f05110b308c09f26", - "archive:https://github.com/ocaml/dune/releases/download/2.9.1/dune-2.9.1.tbz#sha256:b374feb22b34099ccc6dd32128e18d088ff9a81837952b29f05110b308c09f26" - ], - "opam": { - "name": "dune-configurator", - "version": "2.9.1", - "path": "esy.lock/opam/dune-configurator.2.9.1" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/result@opam:1.5@1c6a6533", - "@opam/dune@opam:2.9.1@1e504822", "@opam/csexp@opam:1.5.1@8a8fb3a7", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/result@opam:1.5@1c6a6533", - "@opam/dune@opam:2.9.1@1e504822", "@opam/csexp@opam:1.5.1@8a8fb3a7" - ] - }, - "@opam/dune@opam:2.9.1@1e504822": { - "id": "@opam/dune@opam:2.9.1@1e504822", - "name": "@opam/dune", - "version": "opam:2.9.1", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/sha256/b3/b374feb22b34099ccc6dd32128e18d088ff9a81837952b29f05110b308c09f26#sha256:b374feb22b34099ccc6dd32128e18d088ff9a81837952b29f05110b308c09f26", - "archive:https://github.com/ocaml/dune/releases/download/2.9.1/dune-2.9.1.tbz#sha256:b374feb22b34099ccc6dd32128e18d088ff9a81837952b29f05110b308c09f26" - ], - "opam": { - "name": "dune", - "version": "2.9.1", - "path": "esy.lock/opam/dune.2.9.1" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/base-unix@opam:base@87d0b2eb", - "@opam/base-threads@opam:base@36803084", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/base-unix@opam:base@87d0b2eb", - "@opam/base-threads@opam:base@36803084" - ] - }, - "@opam/csexp@opam:1.5.1@8a8fb3a7": { - "id": "@opam/csexp@opam:1.5.1@8a8fb3a7", - "name": "@opam/csexp", - "version": "opam:1.5.1", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/sha256/d6/d605e4065fa90a58800440ef2f33a2d931398bf2c22061a8acb7df845c0aac02#sha256:d605e4065fa90a58800440ef2f33a2d931398bf2c22061a8acb7df845c0aac02", - "archive:https://github.com/ocaml-dune/csexp/releases/download/1.5.1/csexp-1.5.1.tbz#sha256:d605e4065fa90a58800440ef2f33a2d931398bf2c22061a8acb7df845c0aac02" - ], - "opam": { - "name": "csexp", - "version": "1.5.1", - "path": "esy.lock/opam/csexp.1.5.1" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822" - ] - }, - "@opam/cppo@opam:1.6.8@7e48217d": { - "id": "@opam/cppo@opam:1.6.8@7e48217d", - "name": "@opam/cppo", - "version": "opam:1.6.8", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/md5/fe/fed401197d86f9089e89f6cbdf1d660d#md5:fed401197d86f9089e89f6cbdf1d660d", - "archive:https://github.com/ocaml-community/cppo/archive/v1.6.8.tar.gz#md5:fed401197d86f9089e89f6cbdf1d660d" - ], - "opam": { - "name": "cppo", - "version": "1.6.8", - "path": "esy.lock/opam/cppo.1.6.8" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822", - "@opam/base-unix@opam:base@87d0b2eb", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/dune@opam:2.9.1@1e504822", - "@opam/base-unix@opam:base@87d0b2eb" - ] - }, - "@opam/biniou@opam:1.2.1@420bda02": { - "id": "@opam/biniou@opam:1.2.1@420bda02", - "name": "@opam/biniou", - "version": "opam:1.2.1", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/sha256/35/35546c68b1929a8e6d27a3b39ecd17b38303a0d47e65eb9d1480c2061ea84335#sha256:35546c68b1929a8e6d27a3b39ecd17b38303a0d47e65eb9d1480c2061ea84335", - "archive:https://github.com/mjambon/biniou/releases/download/1.2.1/biniou-1.2.1.tbz#sha256:35546c68b1929a8e6d27a3b39ecd17b38303a0d47e65eb9d1480c2061ea84335" - ], - "opam": { - "name": "biniou", - "version": "1.2.1", - "path": "esy.lock/opam/biniou.1.2.1" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/easy-format@opam:1.3.2@1ea9f987", - "@opam/dune@opam:2.9.1@1e504822", "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/easy-format@opam:1.3.2@1ea9f987", - "@opam/dune@opam:2.9.1@1e504822" - ] - }, - "@opam/base-unix@opam:base@87d0b2eb": { - "id": "@opam/base-unix@opam:base@87d0b2eb", - "name": "@opam/base-unix", - "version": "opam:base", - "source": { - "type": "install", - "source": [ "no-source:" ], - "opam": { - "name": "base-unix", - "version": "base", - "path": "esy.lock/opam/base-unix.base" - } - }, - "overrides": [], - "dependencies": [ "@esy-ocaml/substs@0.0.1@d41d8cd9" ], - "devDependencies": [] - }, - "@opam/base-threads@opam:base@36803084": { - "id": "@opam/base-threads@opam:base@36803084", - "name": "@opam/base-threads", - "version": "opam:base", - "source": { - "type": "install", - "source": [ "no-source:" ], - "opam": { - "name": "base-threads", - "version": "base", - "path": "esy.lock/opam/base-threads.base" - } - }, - "overrides": [], - "dependencies": [ "@esy-ocaml/substs@0.0.1@d41d8cd9" ], - "devDependencies": [] - }, - "@opam/base@opam:v0.14.2@04880a76": { - "id": "@opam/base@opam:v0.14.2@04880a76", - "name": "@opam/base", - "version": "opam:v0.14.2", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/md5/0d/0d1a2d0322b8c446e5dda20290112e5c#md5:0d1a2d0322b8c446e5dda20290112e5c", - "archive:https://github.com/janestreet/base/archive/v0.14.2.tar.gz#md5:0d1a2d0322b8c446e5dda20290112e5c" - ], - "opam": { - "name": "base", - "version": "v0.14.2", - "path": "esy.lock/opam/base.v0.14.2" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/sexplib0@opam:v0.14.0@155c136c", - "@opam/dune-configurator@opam:2.9.1@b7cf7a02", - "@opam/dune@opam:2.9.1@1e504822", "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/sexplib0@opam:v0.14.0@155c136c", - "@opam/dune-configurator@opam:2.9.1@b7cf7a02", - "@opam/dune@opam:2.9.1@1e504822" - ] - }, - "@opam/atdgen-runtime@opam:2.2.1@c520dbfc": { - "id": "@opam/atdgen-runtime@opam:2.2.1@c520dbfc", - "name": "@opam/atdgen-runtime", - "version": "opam:2.2.1", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/sha256/db/db6b4c1a6293b214a7b7a3da435e681abd1b16b55d5aa246b93d26736d3a559e#sha256:db6b4c1a6293b214a7b7a3da435e681abd1b16b55d5aa246b93d26736d3a559e", - "archive:https://github.com/ahrefs/atd/releases/download/2.2.1/atd-2.2.1.tbz#sha256:db6b4c1a6293b214a7b7a3da435e681abd1b16b55d5aa246b93d26736d3a559e" - ], - "opam": { - "name": "atdgen-runtime", - "version": "2.2.1", - "path": "esy.lock/opam/atdgen-runtime.2.2.1" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/yojson@opam:1.7.0@69d87312", - "@opam/re@opam:1.10.3@0585c65d", "@opam/dune@opam:2.9.1@1e504822", - "@opam/biniou@opam:1.2.1@420bda02", - "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/yojson@opam:1.7.0@69d87312", - "@opam/re@opam:1.10.3@0585c65d", "@opam/dune@opam:2.9.1@1e504822", - "@opam/biniou@opam:1.2.1@420bda02" - ] - }, - "@opam/atdgen@opam:2.2.1@6ace3080": { - "id": "@opam/atdgen@opam:2.2.1@6ace3080", - "name": "@opam/atdgen", - "version": "opam:2.2.1", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/sha256/db/db6b4c1a6293b214a7b7a3da435e681abd1b16b55d5aa246b93d26736d3a559e#sha256:db6b4c1a6293b214a7b7a3da435e681abd1b16b55d5aa246b93d26736d3a559e", - "archive:https://github.com/ahrefs/atd/releases/download/2.2.1/atd-2.2.1.tbz#sha256:db6b4c1a6293b214a7b7a3da435e681abd1b16b55d5aa246b93d26736d3a559e" - ], - "opam": { - "name": "atdgen", - "version": "2.2.1", - "path": "esy.lock/opam/atdgen.2.2.1" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/yojson@opam:1.7.0@69d87312", - "@opam/dune@opam:2.9.1@1e504822", "@opam/biniou@opam:1.2.1@420bda02", - "@opam/atdgen-runtime@opam:2.2.1@c520dbfc", - "@opam/atd@opam:2.2.1@5cc6d2c6", "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/yojson@opam:1.7.0@69d87312", - "@opam/dune@opam:2.9.1@1e504822", "@opam/biniou@opam:1.2.1@420bda02", - "@opam/atdgen-runtime@opam:2.2.1@c520dbfc", - "@opam/atd@opam:2.2.1@5cc6d2c6" - ] - }, - "@opam/atd@opam:2.2.1@5cc6d2c6": { - "id": "@opam/atd@opam:2.2.1@5cc6d2c6", - "name": "@opam/atd", - "version": "opam:2.2.1", - "source": { - "type": "install", - "source": [ - "archive:https://opam.ocaml.org/cache/sha256/db/db6b4c1a6293b214a7b7a3da435e681abd1b16b55d5aa246b93d26736d3a559e#sha256:db6b4c1a6293b214a7b7a3da435e681abd1b16b55d5aa246b93d26736d3a559e", - "archive:https://github.com/ahrefs/atd/releases/download/2.2.1/atd-2.2.1.tbz#sha256:db6b4c1a6293b214a7b7a3da435e681abd1b16b55d5aa246b93d26736d3a559e" - ], - "opam": { - "name": "atd", - "version": "2.2.1", - "path": "esy.lock/opam/atd.2.2.1" - } - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/re@opam:1.10.3@0585c65d", - "@opam/menhir@opam:20211128@d5aaf21f", - "@opam/easy-format@opam:1.3.2@1ea9f987", - "@opam/dune@opam:2.9.1@1e504822", "@esy-ocaml/substs@0.0.1@d41d8cd9" - ], - "devDependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/re@opam:1.10.3@0585c65d", - "@opam/menhir@opam:20211128@d5aaf21f", - "@opam/easy-format@opam:1.3.2@1ea9f987", - "@opam/dune@opam:2.9.1@1e504822" - ] - }, - "@esy-ocaml/substs@0.0.1@d41d8cd9": { - "id": "@esy-ocaml/substs@0.0.1@d41d8cd9", - "name": "@esy-ocaml/substs", - "version": "0.0.1", - "source": { - "type": "install", - "source": [ - "archive:https://registry.npmjs.org/@esy-ocaml/substs/-/substs-0.0.1.tgz#sha1:59ebdbbaedcda123fc7ed8fb2b302b7d819e9a46" - ] - }, - "overrides": [], - "dependencies": [], - "devDependencies": [] - }, - "@esy-ocaml/reason@3.7.0@d41d8cd9": { - "id": "@esy-ocaml/reason@3.7.0@d41d8cd9", - "name": "@esy-ocaml/reason", - "version": "3.7.0", - "source": { - "type": "install", - "source": [ - "archive:https://registry.npmjs.org/@esy-ocaml/reason/-/reason-3.7.0.tgz#sha1:36f92c1c854477c4da37e4769a045ffe60e4fb10" - ] - }, - "overrides": [], - "dependencies": [ - "ocaml@4.10.2000@d41d8cd9", "@opam/result@opam:1.5@1c6a6533", - "@opam/ppx_derivers@opam:1.2.1@e2cbad12", - "@opam/ocamlfind@opam:1.9.1@b748edf6", - "@opam/merlin-extend@opam:0.6@88755c91", - "@opam/menhir@opam:20211128@d5aaf21f", - "@opam/fix@opam:20211125@f2a50310", "@opam/dune@opam:2.9.1@1e504822" - ], - "devDependencies": [] - } - } -} \ No newline at end of file diff --git a/re/esy.lock/opam/atd.2.2.1/opam b/re/esy.lock/opam/atd.2.2.1/opam deleted file mode 100644 index 12e08ce..0000000 --- a/re/esy.lock/opam/atd.2.2.1/opam +++ /dev/null @@ -1,55 +0,0 @@ -opam-version: "2.0" -synopsis: "Parser for the ATD data format description language" -description: """ -ATD is the OCaml library providing a parser for the ATD language and various -utilities. ATD stands for Adjustable Type Definitions in reference to its main -property of supporting annotations that allow a good fit with a variety of data -formats. """ -maintainer: ["Rudi Grinberg "] -authors: [ - "Martin Jambon " - "David Sheets " - "Rudi Grinberg " - "Ivan Jager " - "Jeff Meister " - "Carmelo Piccione " - "Raman Varabets " - "Mathieu Baudet " - "Rauan Mayemir " - "Louis Roché " - "Brendan Long " - "Christophe Troestler " - "Vincent Bernardoff " - "haoyang " -] -license: "MIT" -homepage: "https://github.com/ahrefs/atd" -bug-reports: "https://github.com/ahrefs/atd/issues" -depends: [ - "ocaml" {>= "4.02"} - "dune" {>= "2.0"} - "menhir" - "easy-format" - "re" -] -dev-repo: "git+https://github.com/ahrefs/atd.git" -build: [ - ["dune" "subst"] {dev} - [ - "dune" - "build" - "-p" - name - "-j" - jobs - "@install" - "@doc" {with-doc} - ] -] -url { - src: "https://github.com/ahrefs/atd/releases/download/2.2.1/atd-2.2.1.tbz" - checksum: [ - "sha256=db6b4c1a6293b214a7b7a3da435e681abd1b16b55d5aa246b93d26736d3a559e" - "sha512=0c7f1985cc4d87ddd541bb2f7085b72f81aaef69468653319a4a52e6cd6c9318511229784a12cdb413ae500e7a5b8195759e0d8d49946a9b00f62e8dda07e8a2" - ] -} diff --git a/re/esy.lock/opam/atdgen-runtime.2.2.1/opam b/re/esy.lock/opam/atdgen-runtime.2.2.1/opam deleted file mode 100644 index cd9ce57..0000000 --- a/re/esy.lock/opam/atdgen-runtime.2.2.1/opam +++ /dev/null @@ -1,53 +0,0 @@ -opam-version: "2.0" -synopsis: "Runtime library for code generated by atdgen" -description: """ -This package should be used only in conjunction with the stdgen code -generator""" -maintainer: ["Rudi Grinberg "] -authors: [ - "Martin Jambon " - "David Sheets " - "Rudi Grinberg " - "Ivan Jager " - "Jeff Meister " - "Carmelo Piccione " - "Raman Varabets " - "Mathieu Baudet " - "Rauan Mayemir " - "Louis Roché " - "Brendan Long " - "Christophe Troestler " - "Vincent Bernardoff " - "haoyang " -] -license: "MIT" -homepage: "https://github.com/ahrefs/atd" -bug-reports: "https://github.com/ahrefs/atd/issues" -depends: [ - "ocaml" {>= "4.02"} - "dune" {>= "2.0"} - "yojson" {>= "1.7.0"} - "biniou" {>= "1.0.6"} - "re" -] -dev-repo: "git+https://github.com/ahrefs/atd.git" -build: [ - ["dune" "subst"] {dev} - [ - "dune" - "build" - "-p" - name - "-j" - jobs - "@install" - "@doc" {with-doc} - ] -] -url { - src: "https://github.com/ahrefs/atd/releases/download/2.2.1/atd-2.2.1.tbz" - checksum: [ - "sha256=db6b4c1a6293b214a7b7a3da435e681abd1b16b55d5aa246b93d26736d3a559e" - "sha512=0c7f1985cc4d87ddd541bb2f7085b72f81aaef69468653319a4a52e6cd6c9318511229784a12cdb413ae500e7a5b8195759e0d8d49946a9b00f62e8dda07e8a2" - ] -} diff --git a/re/esy.lock/opam/atdgen.2.2.1/opam b/re/esy.lock/opam/atdgen.2.2.1/opam deleted file mode 100644 index 2553783..0000000 --- a/re/esy.lock/opam/atdgen.2.2.1/opam +++ /dev/null @@ -1,63 +0,0 @@ -opam-version: "2.0" -synopsis: - "Generates efficient JSON serializers, deserializers and validators" -description: """ -Atdgen is a command-line program that takes as input type definitions in the ATD -syntax and produces OCaml code suitable for data serialization and -deserialization. -Two data formats are currently supported, these are biniou and JSON. -Atdgen-biniou and Atdgen-json will refer to Atdgen used in one context or the -other. -Atdgen was designed with efficiency and durability in mind. Software authors are -encouraged to use Atdgen directly and to write tools that may reuse part of -Atdgen’s source code.""" -maintainer: ["Rudi Grinberg "] -authors: [ - "Martin Jambon " - "David Sheets " - "Rudi Grinberg " - "Ivan Jager " - "Jeff Meister " - "Carmelo Piccione " - "Raman Varabets " - "Mathieu Baudet " - "Rauan Mayemir " - "Louis Roché " - "Brendan Long " - "Christophe Troestler " - "Vincent Bernardoff " - "haoyang " -] -license: "MIT" -homepage: "https://github.com/ahrefs/atd" -bug-reports: "https://github.com/ahrefs/atd/issues" -depends: [ - "ocaml" {>= "4.02"} - "dune" {>= "2.0"} - "atd" {>= "2.0.0"} - "atdgen-runtime" {>= "2.0.0"} - "atdgen-codec-runtime" {with-test} - "biniou" {>= "1.0.6"} - "yojson" {>= "1.7.0"} -] -dev-repo: "git+https://github.com/ahrefs/atd.git" -build: [ - ["dune" "subst"] {dev} - [ - "dune" - "build" - "-p" - name - "-j" - jobs - "@install" - "@doc" {with-doc} - ] -] -url { - src: "https://github.com/ahrefs/atd/releases/download/2.2.1/atd-2.2.1.tbz" - checksum: [ - "sha256=db6b4c1a6293b214a7b7a3da435e681abd1b16b55d5aa246b93d26736d3a559e" - "sha512=0c7f1985cc4d87ddd541bb2f7085b72f81aaef69468653319a4a52e6cd6c9318511229784a12cdb413ae500e7a5b8195759e0d8d49946a9b00f62e8dda07e8a2" - ] -} diff --git a/re/esy.lock/opam/base-threads.base/opam b/re/esy.lock/opam/base-threads.base/opam deleted file mode 100644 index 914ff50..0000000 --- a/re/esy.lock/opam/base-threads.base/opam +++ /dev/null @@ -1,6 +0,0 @@ -opam-version: "2.0" -maintainer: "https://github.com/ocaml/opam-repository/issues" -description: """ -Threads library distributed with the OCaml compiler -""" - diff --git a/re/esy.lock/opam/base-unix.base/opam b/re/esy.lock/opam/base-unix.base/opam deleted file mode 100644 index b973540..0000000 --- a/re/esy.lock/opam/base-unix.base/opam +++ /dev/null @@ -1,6 +0,0 @@ -opam-version: "2.0" -maintainer: "https://github.com/ocaml/opam-repository/issues" -description: """ -Unix library distributed with the OCaml compiler -""" - diff --git a/re/esy.lock/opam/base.v0.14.2/opam b/re/esy.lock/opam/base.v0.14.2/opam deleted file mode 100644 index 250f5be..0000000 --- a/re/esy.lock/opam/base.v0.14.2/opam +++ /dev/null @@ -1,36 +0,0 @@ -opam-version: "2.0" -maintainer: "Jane Street developers" -authors: ["Jane Street Group, LLC"] -homepage: "https://github.com/janestreet/base" -bug-reports: "https://github.com/janestreet/base/issues" -dev-repo: "git+https://github.com/janestreet/base.git" -doc: "https://ocaml.janestreet.com/ocaml-core/latest/doc/base/index.html" -license: "MIT" -build: [ - ["dune" "build" "-p" name "-j" jobs] -] -depends: [ - "ocaml" {>= "4.08.0"} - "sexplib0" {>= "v0.14" & < "v0.15"} - "dune" {>= "2.0.0"} - "dune-configurator" -] -synopsis: "Full standard library replacement for OCaml" -description: " -Full standard library replacement for OCaml - -Base is a complete and portable alternative to the OCaml standard -library. It provides all standard functionalities one would expect -from a language standard library. It uses consistent conventions -across all of its module. - -Base aims to be usable in any context. As a result system dependent -features such as I/O are not offered by Base. They are instead -provided by companion libraries such as stdio: - - https://github.com/janestreet/stdio -" -url { - src: "https://github.com/janestreet/base/archive/v0.14.2.tar.gz" - checksum: "md5=0d1a2d0322b8c446e5dda20290112e5c" -} diff --git a/re/esy.lock/opam/biniou.1.2.1/opam b/re/esy.lock/opam/biniou.1.2.1/opam deleted file mode 100644 index ec7028f..0000000 --- a/re/esy.lock/opam/biniou.1.2.1/opam +++ /dev/null @@ -1,45 +0,0 @@ -opam-version: "2.0" -build: [ - ["dune" "subst"] {dev} - ["dune" "build" "-p" name "-j" jobs] - ["dune" "runtest" "-p" name "-j" jobs] {with-test} - ["dune" "build" "-p" name "@doc"] {with-doc} -] -maintainer: ["martin@mjambon.com"] -authors: ["Martin Jambon"] -bug-reports: "https://github.com/mjambon/biniou/issues" -homepage: "https://github.com/mjambon/biniou" -doc: "https://mjambon.github.io/biniou/" -license: "BSD-3-Clause" -dev-repo: "git+https://github.com/mjambon/biniou.git" -synopsis: - "Binary data format designed for speed, safety, ease of use and backward compatibility as protocols evolve" -description: """ - -Biniou (pronounced "be new") is a binary data format designed for speed, safety, -ease of use and backward compatibility as protocols evolve. Biniou is vastly -equivalent to JSON in terms of functionality but allows implementations several -times faster (4 times faster than yojson), with 25-35% space savings. - -Biniou data can be decoded into human-readable form without knowledge of type -definitions except for field and variant names which are represented by 31-bit -hashes. A program named bdump is provided for routine visualization of biniou -data files. - -The program atdgen is used to derive OCaml-Biniou serializers and deserializers -from type definitions. - -Biniou format specification: mjambon.github.io/atdgen-doc/biniou-format.txt""" -depends: [ - "easy-format" - "dune" {>= "1.10"} - "ocaml" {>= "4.02.3"} -] -url { - src: - "https://github.com/mjambon/biniou/releases/download/1.2.1/biniou-1.2.1.tbz" - checksum: [ - "sha256=35546c68b1929a8e6d27a3b39ecd17b38303a0d47e65eb9d1480c2061ea84335" - "sha512=82670cc77bf3e869ee26e5fbe5a5affa45a22bc8b6c4bd7e85473912780e0111baca59b34a2c14feae3543ce6e239d7fddaeab24b686a65bfe642cdb91d27ebf" - ] -} diff --git a/re/esy.lock/opam/cppo.1.6.8/opam b/re/esy.lock/opam/cppo.1.6.8/opam deleted file mode 100644 index c9d7f68..0000000 --- a/re/esy.lock/opam/cppo.1.6.8/opam +++ /dev/null @@ -1,37 +0,0 @@ -opam-version: "2.0" -maintainer: "martin@mjambon.com" -authors: "Martin Jambon" -license: "BSD-3-Clause" -homepage: "https://github.com/ocaml-community/cppo" -doc: "https://ocaml-community.github.io/cppo/" -bug-reports: "https://github.com/ocaml-community/cppo/issues" -depends: [ - "ocaml" {>= "4.02.3"} - "dune" {>= "1.0"} - "base-unix" -] -build: [ - ["dune" "subst"] {dev} - ["dune" "build" "-p" name "-j" jobs] - ["dune" "runtest" "-p" name "-j" jobs] {with-test} -] -dev-repo: "git+https://github.com/ocaml-community/cppo.git" -synopsis: "Code preprocessor like cpp for OCaml" -description: """ -Cppo is an equivalent of the C preprocessor for OCaml programs. -It allows the definition of simple macros and file inclusion. - -Cppo is: - -* more OCaml-friendly than cpp -* easy to learn without consulting a manual -* reasonably fast -* simple to install and to maintain -""" -url { - src: "https://github.com/ocaml-community/cppo/archive/v1.6.8.tar.gz" - checksum: [ - "md5=fed401197d86f9089e89f6cbdf1d660d" - "sha512=069bbe0ef09c03b0dc4b5795f909c3ef872fe99c6f1e6704a0fa97594b1570b3579226ec67fe11d696ccc349a4585055bbaf07c65eff423aa45af28abf38c858" - ] -} diff --git a/re/esy.lock/opam/csexp.1.5.1/opam b/re/esy.lock/opam/csexp.1.5.1/opam deleted file mode 100644 index 59324f9..0000000 --- a/re/esy.lock/opam/csexp.1.5.1/opam +++ /dev/null @@ -1,60 +0,0 @@ -opam-version: "2.0" -synopsis: "Parsing and printing of S-expressions in Canonical form" -description: """ - -This library provides minimal support for Canonical S-expressions -[1]. Canonical S-expressions are a binary encoding of S-expressions -that is super simple and well suited for communication between -programs. - -This library only provides a few helpers for simple applications. If -you need more advanced support, such as parsing from more fancy input -sources, you should consider copying the code of this library given -how simple parsing S-expressions in canonical form is. - -To avoid a dependency on a particular S-expression library, the only -module of this library is parameterised by the type of S-expressions. - -[1] https://en.wikipedia.org/wiki/Canonical_S-expressions -""" -maintainer: ["Jeremie Dimino "] -authors: [ - "Quentin Hocquet " - "Jane Street Group, LLC" - "Jeremie Dimino " -] -license: "MIT" -homepage: "https://github.com/ocaml-dune/csexp" -doc: "https://ocaml-dune.github.io/csexp/" -bug-reports: "https://github.com/ocaml-dune/csexp/issues" -depends: [ - "dune" {>= "1.11"} - "ocaml" {>= "4.03.0"} -# "ppx_expect" {with-test & >= "v0.14"} - "odoc" {with-doc} -] -dev-repo: "git+https://github.com/ocaml-dune/csexp.git" -build: [ - ["dune" "subst"] {dev} - [ - "dune" - "build" - "-p" - name - "-j" - jobs - "@install" -# Tests disabled because of a cyclic dependency with csexp, dune-configurator and ppx_expect -# "@runtest" {with-test} - "@doc" {with-doc} - ] -] -x-commit-hash: "7eeb86206819d2b1782d6cde1be9d6cf8b5fc851" -url { - src: - "https://github.com/ocaml-dune/csexp/releases/download/1.5.1/csexp-1.5.1.tbz" - checksum: [ - "sha256=d605e4065fa90a58800440ef2f33a2d931398bf2c22061a8acb7df845c0aac02" - "sha512=d785bbabaff9f6bf601399149ef0a42e5e99647b54e27f97ef1625907793dda22a45bf83e0e8a1eba2c63634c5484b54739ff0904ef556f5fc592efa38af7505" - ] -} diff --git a/re/esy.lock/opam/dune-configurator.2.9.1/opam b/re/esy.lock/opam/dune-configurator.2.9.1/opam deleted file mode 100644 index 9319b01..0000000 --- a/re/esy.lock/opam/dune-configurator.2.9.1/opam +++ /dev/null @@ -1,47 +0,0 @@ -opam-version: "2.0" -synopsis: "Helper library for gathering system configuration" -description: """ -dune-configurator is a small library that helps writing OCaml scripts that -test features available on the system, in order to generate config.h -files for instance. -Among other things, dune-configurator allows one to: -- test if a C program compiles -- query pkg-config -- import #define from OCaml header files -- generate config.h file -""" -maintainer: ["Jane Street Group, LLC "] -authors: ["Jane Street Group, LLC "] -license: "MIT" -homepage: "https://github.com/ocaml/dune" -doc: "https://dune.readthedocs.io/" -bug-reports: "https://github.com/ocaml/dune/issues" -depends: [ - "dune" {>= "2.9"} - "ocaml" {>= "4.03.0"} - "result" - "csexp" {>= "1.3.0"} - "odoc" {with-doc} -] -dev-repo: "git+https://github.com/ocaml/dune.git" -build: [ - ["dune" "subst"] {dev} - [ - "dune" - "build" - "-p" - name - "-j" - jobs - "@install" - "@doc" {with-doc} - ] -] -x-commit-hash: "e41c66259135d6d1d72b031be6684bf8826a2586" -url { - src: "https://github.com/ocaml/dune/releases/download/2.9.1/dune-2.9.1.tbz" - checksum: [ - "sha256=b374feb22b34099ccc6dd32128e18d088ff9a81837952b29f05110b308c09f26" - "sha512=fce1aa520db785c25ded75a959e9dafeb7887d4f5deeb14b044cd5b9e2d235dca24589d794d2f01513765bc4764cf72f8659bd15f3a4fc06efa61363dc5d709b" - ] -} diff --git a/re/esy.lock/opam/dune.2.9.1/opam b/re/esy.lock/opam/dune.2.9.1/opam deleted file mode 100644 index 6a57ecb..0000000 --- a/re/esy.lock/opam/dune.2.9.1/opam +++ /dev/null @@ -1,58 +0,0 @@ -opam-version: "2.0" -synopsis: "Fast, portable, and opinionated build system" -description: """ - -dune is a build system that was designed to simplify the release of -Jane Street packages. It reads metadata from "dune" files following a -very simple s-expression syntax. - -dune is fast, has very low-overhead, and supports parallel builds on -all platforms. It has no system dependencies; all you need to build -dune or packages using dune is OCaml. You don't need make or bash -as long as the packages themselves don't use bash explicitly. - -dune supports multi-package development by simply dropping multiple -repositories into the same directory. - -It also supports multi-context builds, such as building against -several opam roots/switches simultaneously. This helps maintaining -packages across several versions of OCaml and gives cross-compilation -for free. -""" -maintainer: ["Jane Street Group, LLC "] -authors: ["Jane Street Group, LLC "] -license: "MIT" -homepage: "https://github.com/ocaml/dune" -doc: "https://dune.readthedocs.io/" -bug-reports: "https://github.com/ocaml/dune/issues" -conflicts: [ - "merlin" {< "3.4.0"} - "ocaml-lsp-server" {< "1.3.0"} - "dune-configurator" {< "2.3.0"} - "odoc" {< "1.3.0"} - "dune-release" {< "1.3.0"} - "js_of_ocaml-compiler" {< "3.6.0"} - "jbuilder" {= "transition"} -] -dev-repo: "git+https://github.com/ocaml/dune.git" -build: [ - # opam 2 sets OPAM_SWITCH_PREFIX, so we don't need a hardcoded path - ["ocaml" "configure.ml" "--libdir" lib] {opam-version < "2"} - ["ocaml" "bootstrap.ml" "-j" jobs] - ["./dune.exe" "build" "-p" name "--profile" "dune-bootstrap" "-j" jobs] -] -depends: [ - # Please keep the lower bound in sync with .github/workflows/workflow.yml, - # dune-project and min_ocaml_version in bootstrap.ml - ("ocaml" {>= "4.08"} | ("ocaml" {< "4.08~~"} & "ocamlfind-secondary")) - "base-unix" - "base-threads" -] -x-commit-hash: "e41c66259135d6d1d72b031be6684bf8826a2586" -url { - src: "https://github.com/ocaml/dune/releases/download/2.9.1/dune-2.9.1.tbz" - checksum: [ - "sha256=b374feb22b34099ccc6dd32128e18d088ff9a81837952b29f05110b308c09f26" - "sha512=fce1aa520db785c25ded75a959e9dafeb7887d4f5deeb14b044cd5b9e2d235dca24589d794d2f01513765bc4764cf72f8659bd15f3a4fc06efa61363dc5d709b" - ] -} diff --git a/re/esy.lock/opam/easy-format.1.3.2/opam b/re/esy.lock/opam/easy-format.1.3.2/opam deleted file mode 100644 index f55c2c8..0000000 --- a/re/esy.lock/opam/easy-format.1.3.2/opam +++ /dev/null @@ -1,46 +0,0 @@ -opam-version: "2.0" -build: [ - ["dune" "subst"] {dev} - ["dune" "build" "-p" name "-j" jobs] - ["dune" "runtest" "-p" name "-j" jobs] {with-test} - ["dune" "build" "-p" name "@doc"] {with-doc} -] -maintainer: ["martin@mjambon.com" "rudi.grinberg@gmail.com"] -authors: ["Martin Jambon"] -bug-reports: "https://github.com/mjambon/easy-format/issues" -homepage: "https://github.com/mjambon/easy-format" -doc: "https://mjambon.github.io/easy-format/" -license: "BSD-3-Clause" -dev-repo: "git+https://github.com/mjambon/easy-format.git" -synopsis: - "High-level and functional interface to the Format module of the OCaml standard library" -description: """ - -This module offers a high-level and functional interface to the Format module of -the OCaml standard library. It is a pretty-printing facility, i.e. it takes as -input some code represented as a tree and formats this code into the most -visually satisfying result, breaking and indenting lines of code where -appropriate. - -Input data must be first modelled and converted into a tree using 3 kinds of -nodes: - -* atoms -* lists -* labelled nodes - -Atoms represent any text that is guaranteed to be printed as-is. Lists can model -any sequence of items such as arrays of data or lists of definitions that are -labelled with something like "int main", "let x =" or "x:".""" -depends: [ - "dune" {>= "1.10"} - "ocaml" {>= "4.02.3"} -] -url { - src: - "https://github.com/mjambon/easy-format/releases/download/1.3.2/easy-format-1.3.2.tbz" - checksum: [ - "sha256=3440c2b882d537ae5e9011eb06abb53f5667e651ea4bb3b460ea8230fa8c1926" - "sha512=e39377a2ff020ceb9ac29e8515a89d9bdbc91dfcfa871c4e3baafa56753fac2896768e5d9822a050dc1e2ade43c8967afb69391a386c0a8ecd4e1f774e236135" - ] -} diff --git a/re/esy.lock/opam/fix.20211125/opam b/re/esy.lock/opam/fix.20211125/opam deleted file mode 100644 index 7e7665b..0000000 --- a/re/esy.lock/opam/fix.20211125/opam +++ /dev/null @@ -1,25 +0,0 @@ -opam-version: "2.0" -maintainer: "francois.pottier@inria.fr" -authors: [ - "François Pottier " -] -homepage: "https://gitlab.inria.fr/fpottier/fix" -dev-repo: "git+https://gitlab.inria.fr/fpottier/fix.git" -bug-reports: "francois.pottier@inria.fr" -license: "LGPL-2.0-only" -build: [ - ["dune" "build" "-p" name "-j" jobs] -] -depends: [ - "ocaml" { >= "4.03" } - "dune" { >= "1.3" } -] -synopsis: "Facilities for memoization and fixed points" -url { - src: - "https://gitlab.inria.fr/fpottier/fix/-/archive/20211125/archive.tar.gz" - checksum: [ - "md5=d3d316080a2fc9a4f56c15040e141364" - "sha512=850cf0d3c6db806ac1d0b9bf39ad82529aecd56af07b2b421f48af15afdeab493f7b73e5d9e7d492e56717a8aeeb61466d87ac8a51fac30e3f77028b5ecd57c4" - ] -} diff --git a/re/esy.lock/opam/jane-street-headers.v0.14.0/opam b/re/esy.lock/opam/jane-street-headers.v0.14.0/opam deleted file mode 100644 index d62fc94..0000000 --- a/re/esy.lock/opam/jane-street-headers.v0.14.0/opam +++ /dev/null @@ -1,23 +0,0 @@ -opam-version: "2.0" -maintainer: "Jane Street developers" -authors: ["Jane Street Group, LLC"] -homepage: "https://github.com/janestreet/jane-street-headers" -bug-reports: "https://github.com/janestreet/jane-street-headers/issues" -dev-repo: "git+https://github.com/janestreet/jane-street-headers.git" -doc: "https://ocaml.janestreet.com/ocaml-core/latest/doc/jane-street-headers/index.html" -license: "MIT" -build: [ - ["dune" "build" "-p" name "-j" jobs] -] -depends: [ - "ocaml" {>= "4.04.2"} - "dune" {>= "2.0.0"} -] -synopsis: "Jane Street C header files" -description: " -C header files shared between the various Jane Street packages -" -url { - src: "https://ocaml.janestreet.com/ocaml-core/v0.14/files/jane-street-headers-v0.14.0.tar.gz" - checksum: "md5=e8d253ac44d25c8c66367153a0c77495" -} diff --git a/re/esy.lock/opam/jst-config.v0.14.1/opam b/re/esy.lock/opam/jst-config.v0.14.1/opam deleted file mode 100644 index 5500e22..0000000 --- a/re/esy.lock/opam/jst-config.v0.14.1/opam +++ /dev/null @@ -1,32 +0,0 @@ -opam-version: "2.0" -maintainer: "Jane Street developers" -authors: ["Jane Street Group, LLC"] -homepage: "https://github.com/janestreet/jst-config" -bug-reports: "https://github.com/janestreet/jst-config/issues" -dev-repo: "git+https://github.com/janestreet/jst-config.git" -doc: "https://ocaml.janestreet.com/ocaml-core/latest/doc/jst-config/index.html" -license: "MIT" -build: [ - ["dune" "build" "-p" name "-j" jobs] -] -depends: [ - "ocaml" {>= "4.04.2"} - "base" {>= "v0.14" & < "v0.15"} - "ppx_assert" {>= "v0.14" & < "v0.15"} - "stdio" {>= "v0.14" & < "v0.15"} - "dune" {>= "2.0.0"} - "dune-configurator" -] -synopsis: "Compile-time configuration for Jane Street libraries" -description: " -Defines compile-time constants used in Jane Street libraries such as Base, Core, and -Async. - -This package has an unstable interface; it is intended only to share configuration between -different packages from Jane Street. Future updates may not be backward-compatible, and we -do not recommend using this package directly. -" -url { - src: "https://github.com/janestreet/jst-config/archive/refs/tags/v0.14.1.tar.gz" - checksum: "md5=ca0d970356cc99b0a5660058a93ff589" -} diff --git a/re/esy.lock/opam/menhir.20211128/opam b/re/esy.lock/opam/menhir.20211128/opam deleted file mode 100644 index 79f85f9..0000000 --- a/re/esy.lock/opam/menhir.20211128/opam +++ /dev/null @@ -1,29 +0,0 @@ - -opam-version: "2.0" -maintainer: "francois.pottier@inria.fr" -authors: [ - "François Pottier " - "Yann Régis-Gianas " -] -homepage: "http://gitlab.inria.fr/fpottier/menhir" -dev-repo: "git+https://gitlab.inria.fr/fpottier/menhir.git" -bug-reports: "https://gitlab.inria.fr/fpottier/menhir/-/issues" -license: "LGPL-2.0-only with OCaml-LGPL-linking-exception" -build: [ - ["dune" "build" "-p" name "-j" jobs] -] -depends: [ - "ocaml" {>= "4.03.0"} - "dune" {>= "2.8.0"} - "menhirLib" {= version} - "menhirSdk" {= version} -] -synopsis: "An LR(1) parser generator" -url { - src: - "https://gitlab.inria.fr/fpottier/menhir/-/archive/20211128/archive.tar.gz" - checksum: [ - "md5=015354590ebce7911b073beae57e7731" - "sha512=76f998c114a29b390f05e7b62e396d6957e748be3bb7fe918893ab3471a7a907764de4610e392916553113df0c6b09aa570425dcf86c6a3e9e17b0ae36f3fe2b" - ] -} diff --git a/re/esy.lock/opam/menhirLib.20211128/opam b/re/esy.lock/opam/menhirLib.20211128/opam deleted file mode 100644 index ac3460e..0000000 --- a/re/esy.lock/opam/menhirLib.20211128/opam +++ /dev/null @@ -1,30 +0,0 @@ - -opam-version: "2.0" -maintainer: "francois.pottier@inria.fr" -authors: [ - "François Pottier " - "Yann Régis-Gianas " -] -homepage: "http://gitlab.inria.fr/fpottier/menhir" -dev-repo: "git+https://gitlab.inria.fr/fpottier/menhir.git" -bug-reports: "https://gitlab.inria.fr/fpottier/menhir/-/issues" -license: "LGPL-2.0-only with OCaml-LGPL-linking-exception" -build: [ - ["dune" "build" "-p" name "-j" jobs] -] -depends: [ - "ocaml" { >= "4.03.0" } - "dune" { >= "2.8.0" } -] -conflicts: [ - "menhir" { != version } -] -synopsis: "Runtime support library for parsers generated by Menhir" -url { - src: - "https://gitlab.inria.fr/fpottier/menhir/-/archive/20211128/archive.tar.gz" - checksum: [ - "md5=015354590ebce7911b073beae57e7731" - "sha512=76f998c114a29b390f05e7b62e396d6957e748be3bb7fe918893ab3471a7a907764de4610e392916553113df0c6b09aa570425dcf86c6a3e9e17b0ae36f3fe2b" - ] -} diff --git a/re/esy.lock/opam/menhirSdk.20211128/opam b/re/esy.lock/opam/menhirSdk.20211128/opam deleted file mode 100644 index c125acf..0000000 --- a/re/esy.lock/opam/menhirSdk.20211128/opam +++ /dev/null @@ -1,30 +0,0 @@ - -opam-version: "2.0" -maintainer: "francois.pottier@inria.fr" -authors: [ - "François Pottier " - "Yann Régis-Gianas " -] -homepage: "http://gitlab.inria.fr/fpottier/menhir" -dev-repo: "git+https://gitlab.inria.fr/fpottier/menhir.git" -bug-reports: "https://gitlab.inria.fr/fpottier/menhir/-/issues" -license: "LGPL-2.0-only with OCaml-LGPL-linking-exception" -build: [ - ["dune" "build" "-p" name "-j" jobs] -] -depends: [ - "ocaml" { >= "4.03.0" } - "dune" { >= "2.8.0" } -] -conflicts: [ - "menhir" { != version } -] -synopsis: "Compile-time library for auxiliary tools related to Menhir" -url { - src: - "https://gitlab.inria.fr/fpottier/menhir/-/archive/20211128/archive.tar.gz" - checksum: [ - "md5=015354590ebce7911b073beae57e7731" - "sha512=76f998c114a29b390f05e7b62e396d6957e748be3bb7fe918893ab3471a7a907764de4610e392916553113df0c6b09aa570425dcf86c6a3e9e17b0ae36f3fe2b" - ] -} diff --git a/re/esy.lock/opam/merlin-extend.0.6/opam b/re/esy.lock/opam/merlin-extend.0.6/opam deleted file mode 100644 index 8394e1a..0000000 --- a/re/esy.lock/opam/merlin-extend.0.6/opam +++ /dev/null @@ -1,30 +0,0 @@ -opam-version: "2.0" -maintainer: "Frederic Bour " -authors: "Frederic Bour " -homepage: "https://github.com/let-def/merlin-extend" -bug-reports: "https://github.com/let-def/merlin-extend" -license: "MIT" -dev-repo: "git+https://github.com/let-def/merlin-extend.git" -build: [ - ["dune" "subst"] {dev} - ["dune" "build" "-p" name "-j" jobs] -] -depends: [ - "dune" {>= "1.0"} - "cppo" {build & >= "1.1.0"} - "ocaml" {>= "4.02.3"} -] -synopsis: "A protocol to provide custom frontend to Merlin" -description: """ -This protocol allows to replace the OCaml frontend of Merlin. -It extends what used to be done with the `-pp' flag to handle a few more cases.""" -doc: "https://let-def.github.io/merlin-extend" -x-commit-hash: "640620568a5f5c7798239ecf7c707c813e3df3cf" -url { - src: - "https://github.com/let-def/merlin-extend/releases/download/v0.6/merlin-extend-v0.6.tbz" - checksum: [ - "sha256=c2f236ae97feb6ba0bc90f33beb7b7343e42f9871b66de9ba07974917e256c43" - "sha512=4c64a490e2ece04fc89aef679c1d9202175df4fe045b5fdc7a37cd7cebe861226fddd9648c1bf4f06175ecfcd2ed7686c96bd6a8cae003a5096f6134c240f857" - ] -} diff --git a/re/esy.lock/opam/ocaml-compiler-libs.v0.12.4/opam b/re/esy.lock/opam/ocaml-compiler-libs.v0.12.4/opam deleted file mode 100644 index 14c9f75..0000000 --- a/re/esy.lock/opam/ocaml-compiler-libs.v0.12.4/opam +++ /dev/null @@ -1,39 +0,0 @@ -opam-version: "2.0" -synopsis: "OCaml compiler libraries repackaged" -description: """ -This packages exposes the OCaml compiler libraries repackages under -the toplevel names Ocaml_common, Ocaml_bytecomp, Ocaml_optcomp, ...""" -maintainer: ["Jane Street developers"] -authors: ["Jane Street Group, LLC"] -license: "MIT" -homepage: "https://github.com/janestreet/ocaml-compiler-libs" -bug-reports: "https://github.com/janestreet/ocaml-compiler-libs/issues" -depends: [ - "dune" {>= "2.8"} - "ocaml" {>= "4.04.1"} - "odoc" {with-doc} -] -build: [ - ["dune" "subst"] {dev} - [ - "dune" - "build" - "-p" - name - "-j" - jobs - "@install" - "@runtest" {with-test} - "@doc" {with-doc} - ] -] -dev-repo: "git+https://github.com/janestreet/ocaml-compiler-libs.git" -url { - src: - "https://github.com/janestreet/ocaml-compiler-libs/releases/download/v0.12.4/ocaml-compiler-libs-v0.12.4.tbz" - checksum: [ - "sha256=4ec9c9ec35cc45c18c7a143761154ef1d7663036a29297f80381f47981a07760" - "sha512=978dba8dfa61f98fa24fda7a9c26c2e837081f37d1685fe636dc19cfc3278a940cf01a10293504b185c406706bc1008bc54313d50f023bcdea6d5ac6c0788b35" - ] -} -x-commit-hash: "8cd12f18bb7171c2b67d661868c4271fae528d93" diff --git a/re/esy.lock/opam/ocamlfind.1.9.1/opam b/re/esy.lock/opam/ocamlfind.1.9.1/opam deleted file mode 100644 index 4b6e5c6..0000000 --- a/re/esy.lock/opam/ocamlfind.1.9.1/opam +++ /dev/null @@ -1,44 +0,0 @@ -opam-version: "2.0" -synopsis: "A library manager for OCaml" -description: """ -Findlib is a library manager for OCaml. It provides a convention how -to store libraries, and a file format ("META") to describe the -properties of libraries. There is also a tool (ocamlfind) for -interpreting the META files, so that it is very easy to use libraries -in programs and scripts. -""" -license: "MIT" -maintainer: "Thomas Gazagnaire " -authors: "Gerd Stolpmann " -homepage: "http://projects.camlcity.org/projects/findlib.html" -bug-reports: "https://github.com/ocaml/ocamlfind/issues" -depends: [ - "ocaml" {>= "4.00.0"} -] -depopts: ["graphics"] -build: [ - [ - "./configure" - "-bindir" bin - "-sitelib" lib - "-mandir" man - "-config" "%{lib}%/findlib.conf" - "-no-custom" - "-no-camlp4" {!ocaml:preinstalled & ocaml:version >= "4.02.0"} - "-no-topfind" {ocaml:preinstalled} - ] - [make "all"] - [make "opt"] {ocaml:native} -] -install: [ - [make "install"] - ["install" "-m" "0755" "ocaml-stub" "%{bin}%/ocaml"] {ocaml:preinstalled} -] -dev-repo: "git+https://github.com/ocaml/ocamlfind.git" -url { - src: "http://download.camlcity.org/download/findlib-1.9.1.tar.gz" - checksum: [ - "md5=65e6dc9b305ccbed1267275fe180f538" - "sha512=83a05f3e310fa7cabb0475c5525f7a87c1b6bc2dc5e39f094cabfb5d944a826a5581844ba00ec1a48dd96184eb9de3c4d1055cdddee2b83c700a2de5a6dc6f84" - ] -} diff --git a/re/esy.lock/opam/octavius.1.2.2/opam b/re/esy.lock/opam/octavius.1.2.2/opam deleted file mode 100644 index 0539c09..0000000 --- a/re/esy.lock/opam/octavius.1.2.2/opam +++ /dev/null @@ -1,33 +0,0 @@ -opam-version: "2.0" -maintainer: ["leo@lpw25.net"] -authors: ["Leo White "] -license: "ISC" -homepage: "https://github.com/ocaml-doc/octavius" -doc: "http://ocaml-doc.github.io/octavius/" -bug-reports: "https://github.com/ocaml-doc/octavius/issues" -depends: [ - "dune" {>= "1.11"} - "ocaml" {>= "4.03.0"} -] -build: [ - ["dune" "subst"] {dev} - [ - "dune" - "build" - "-p" - name - "-j" - jobs - "@install" - "@runtest" {with-test} - "@doc" {with-doc} - ] -] -dev-repo: "git+https://github.com/ocaml-doc/octavius.git" - -synopsis: "Ocamldoc comment syntax parser" -description: "Octavius is a library to parse the `ocamldoc` comment syntax." -url { - src: "https://github.com/ocaml-doc/octavius/archive/v1.2.2.tar.gz" - checksum: "md5=72f9e1d996e6c5089fc513cc9218607b" -} diff --git a/re/esy.lock/opam/ppx_assert.v0.14.0/opam b/re/esy.lock/opam/ppx_assert.v0.14.0/opam deleted file mode 100644 index a108ef0..0000000 --- a/re/esy.lock/opam/ppx_assert.v0.14.0/opam +++ /dev/null @@ -1,29 +0,0 @@ -opam-version: "2.0" -maintainer: "Jane Street developers" -authors: ["Jane Street Group, LLC"] -homepage: "https://github.com/janestreet/ppx_assert" -bug-reports: "https://github.com/janestreet/ppx_assert/issues" -dev-repo: "git+https://github.com/janestreet/ppx_assert.git" -doc: "https://ocaml.janestreet.com/ocaml-core/latest/doc/ppx_assert/index.html" -license: "MIT" -build: [ - ["dune" "build" "-p" name "-j" jobs] -] -depends: [ - "ocaml" {>= "4.04.2"} - "base" {>= "v0.14" & < "v0.15"} - "ppx_cold" {>= "v0.14" & < "v0.15"} - "ppx_compare" {>= "v0.14" & < "v0.15"} - "ppx_here" {>= "v0.14" & < "v0.15"} - "ppx_sexp_conv" {>= "v0.14" & < "v0.15"} - "dune" {>= "2.0.0"} - "ppxlib" {>= "0.11.0"} -] -synopsis: "Assert-like extension nodes that raise useful errors on failure" -description: " -Part of the Jane Street's PPX rewriters collection. -" -url { - src: "https://ocaml.janestreet.com/ocaml-core/v0.14/files/ppx_assert-v0.14.0.tar.gz" - checksum: "md5=535b5f241eb7f10da8c044c26afbc186" -} diff --git a/re/esy.lock/opam/ppx_base.v0.14.0/opam b/re/esy.lock/opam/ppx_base.v0.14.0/opam deleted file mode 100644 index 7085a79..0000000 --- a/re/esy.lock/opam/ppx_base.v0.14.0/opam +++ /dev/null @@ -1,33 +0,0 @@ -opam-version: "2.0" -maintainer: "Jane Street developers" -authors: ["Jane Street Group, LLC"] -homepage: "https://github.com/janestreet/ppx_base" -bug-reports: "https://github.com/janestreet/ppx_base/issues" -dev-repo: "git+https://github.com/janestreet/ppx_base.git" -doc: "https://ocaml.janestreet.com/ocaml-core/latest/doc/ppx_base/index.html" -license: "MIT" -build: [ - ["dune" "build" "-p" name "-j" jobs] -] -depends: [ - "ocaml" {>= "4.04.2"} - "ppx_cold" {>= "v0.14" & < "v0.15"} - "ppx_compare" {>= "v0.14" & < "v0.15"} - "ppx_enumerate" {>= "v0.14" & < "v0.15"} - "ppx_hash" {>= "v0.14" & < "v0.15"} - "ppx_js_style" {>= "v0.14" & < "v0.15"} - "ppx_sexp_conv" {>= "v0.14" & < "v0.15"} - "dune" {>= "2.0.0"} - "ppxlib" {>= "0.11.0"} -] -synopsis: "Base set of ppx rewriters" -description: " -ppx_base is the set of ppx rewriters used for Base. - -Note that Base doesn't need ppx to build, it is only used as a -verification tool. -" -url { - src: "https://ocaml.janestreet.com/ocaml-core/v0.14/files/ppx_base-v0.14.0.tar.gz" - checksum: "md5=b29a24907e60f42e050ad90e5209bb92" -} diff --git a/re/esy.lock/opam/ppx_cold.v0.14.0/opam b/re/esy.lock/opam/ppx_cold.v0.14.0/opam deleted file mode 100644 index 1f428aa..0000000 --- a/re/esy.lock/opam/ppx_cold.v0.14.0/opam +++ /dev/null @@ -1,25 +0,0 @@ -opam-version: "2.0" -maintainer: "Jane Street developers" -authors: ["Jane Street Group, LLC"] -homepage: "https://github.com/janestreet/ppx_cold" -bug-reports: "https://github.com/janestreet/ppx_cold/issues" -dev-repo: "git+https://github.com/janestreet/ppx_cold.git" -doc: "https://ocaml.janestreet.com/ocaml-core/latest/doc/ppx_cold/index.html" -license: "MIT" -build: [ - ["dune" "build" "-p" name "-j" jobs] -] -depends: [ - "ocaml" {>= "4.04.2"} - "base" {>= "v0.14" & < "v0.15"} - "dune" {>= "2.0.0"} - "ppxlib" {>= "0.11.0"} -] -synopsis: "Expands [@cold] into [@inline never][@specialise never][@local never]" -description: " -Part of the Jane Street's PPX rewriters collection. -" -url { - src: "https://ocaml.janestreet.com/ocaml-core/v0.14/files/ppx_cold-v0.14.0.tar.gz" - checksum: "md5=6a61807cd3b105b8c885bd2076986339" -} diff --git a/re/esy.lock/opam/ppx_compare.v0.14.0/opam b/re/esy.lock/opam/ppx_compare.v0.14.0/opam deleted file mode 100644 index 533c943..0000000 --- a/re/esy.lock/opam/ppx_compare.v0.14.0/opam +++ /dev/null @@ -1,25 +0,0 @@ -opam-version: "2.0" -maintainer: "Jane Street developers" -authors: ["Jane Street Group, LLC"] -homepage: "https://github.com/janestreet/ppx_compare" -bug-reports: "https://github.com/janestreet/ppx_compare/issues" -dev-repo: "git+https://github.com/janestreet/ppx_compare.git" -doc: "https://ocaml.janestreet.com/ocaml-core/latest/doc/ppx_compare/index.html" -license: "MIT" -build: [ - ["dune" "build" "-p" name "-j" jobs] -] -depends: [ - "ocaml" {>= "4.04.2"} - "base" {>= "v0.14" & < "v0.15"} - "dune" {>= "2.0.0"} - "ppxlib" {>= "0.11.0"} -] -synopsis: "Generation of comparison functions from types" -description: " -Part of the Jane Street's PPX rewriters collection. -" -url { - src: "https://ocaml.janestreet.com/ocaml-core/v0.14/files/ppx_compare-v0.14.0.tar.gz" - checksum: "md5=9149b3a0c954fe2cef2b0705d254b9e3" -} diff --git a/re/esy.lock/opam/ppx_derivers.1.2.1/opam b/re/esy.lock/opam/ppx_derivers.1.2.1/opam deleted file mode 100644 index 484b265..0000000 --- a/re/esy.lock/opam/ppx_derivers.1.2.1/opam +++ /dev/null @@ -1,23 +0,0 @@ -opam-version: "2.0" -maintainer: "jeremie@dimino.org" -authors: ["Jérémie Dimino"] -license: "BSD-3-Clause" -homepage: "https://github.com/ocaml-ppx/ppx_derivers" -bug-reports: "https://github.com/ocaml-ppx/ppx_derivers/issues" -dev-repo: "git+https://github.com/ocaml-ppx/ppx_derivers.git" -build: [ - ["dune" "build" "-p" name "-j" jobs] -] -depends: [ - "ocaml" - "dune" -] -synopsis: "Shared [@@deriving] plugin registry" -description: """ -Ppx_derivers is a tiny package whose sole purpose is to allow -ppx_deriving and ppx_type_conv to inter-operate gracefully when linked -as part of the same ocaml-migrate-parsetree driver.""" -url { - src: "https://github.com/ocaml-ppx/ppx_derivers/archive/1.2.1.tar.gz" - checksum: "md5=5dc2bf130c1db3c731fe0fffc5648b41" -} diff --git a/re/esy.lock/opam/ppx_enumerate.v0.14.0/opam b/re/esy.lock/opam/ppx_enumerate.v0.14.0/opam deleted file mode 100644 index 3fa8fe3..0000000 --- a/re/esy.lock/opam/ppx_enumerate.v0.14.0/opam +++ /dev/null @@ -1,25 +0,0 @@ -opam-version: "2.0" -maintainer: "Jane Street developers" -authors: ["Jane Street Group, LLC"] -homepage: "https://github.com/janestreet/ppx_enumerate" -bug-reports: "https://github.com/janestreet/ppx_enumerate/issues" -dev-repo: "git+https://github.com/janestreet/ppx_enumerate.git" -doc: "https://ocaml.janestreet.com/ocaml-core/latest/doc/ppx_enumerate/index.html" -license: "MIT" -build: [ - ["dune" "build" "-p" name "-j" jobs] -] -depends: [ - "ocaml" {>= "4.04.2"} - "base" {>= "v0.14" & < "v0.15"} - "dune" {>= "2.0.0"} - "ppxlib" {>= "0.11.0"} -] -synopsis: "Generate a list containing all values of a finite type" -description: " -Part of the Jane Street's PPX rewriters collection. -" -url { - src: "https://ocaml.janestreet.com/ocaml-core/v0.14/files/ppx_enumerate-v0.14.0.tar.gz" - checksum: "md5=188421af960759f6e45dd748f4f08e8d" -} diff --git a/re/esy.lock/opam/ppx_hash.v0.14.0/opam b/re/esy.lock/opam/ppx_hash.v0.14.0/opam deleted file mode 100644 index a624fd9..0000000 --- a/re/esy.lock/opam/ppx_hash.v0.14.0/opam +++ /dev/null @@ -1,27 +0,0 @@ -opam-version: "2.0" -maintainer: "Jane Street developers" -authors: ["Jane Street Group, LLC"] -homepage: "https://github.com/janestreet/ppx_hash" -bug-reports: "https://github.com/janestreet/ppx_hash/issues" -dev-repo: "git+https://github.com/janestreet/ppx_hash.git" -doc: "https://ocaml.janestreet.com/ocaml-core/latest/doc/ppx_hash/index.html" -license: "MIT" -build: [ - ["dune" "build" "-p" name "-j" jobs] -] -depends: [ - "ocaml" {>= "4.04.2"} - "base" {>= "v0.14" & < "v0.15"} - "ppx_compare" {>= "v0.14" & < "v0.15"} - "ppx_sexp_conv" {>= "v0.14" & < "v0.15"} - "dune" {>= "2.0.0"} - "ppxlib" {>= "0.11.0"} -] -synopsis: "A ppx rewriter that generates hash functions from type expressions and definitions" -description: " -Part of the Jane Street's PPX rewriters collection. -" -url { - src: "https://ocaml.janestreet.com/ocaml-core/v0.14/files/ppx_hash-v0.14.0.tar.gz" - checksum: "md5=b78aee19bb4469731f9626b04fe7f341" -} diff --git a/re/esy.lock/opam/ppx_here.v0.14.0/opam b/re/esy.lock/opam/ppx_here.v0.14.0/opam deleted file mode 100644 index 0893443..0000000 --- a/re/esy.lock/opam/ppx_here.v0.14.0/opam +++ /dev/null @@ -1,25 +0,0 @@ -opam-version: "2.0" -maintainer: "Jane Street developers" -authors: ["Jane Street Group, LLC"] -homepage: "https://github.com/janestreet/ppx_here" -bug-reports: "https://github.com/janestreet/ppx_here/issues" -dev-repo: "git+https://github.com/janestreet/ppx_here.git" -doc: "https://ocaml.janestreet.com/ocaml-core/latest/doc/ppx_here/index.html" -license: "MIT" -build: [ - ["dune" "build" "-p" name "-j" jobs] -] -depends: [ - "ocaml" {>= "4.04.2"} - "base" {>= "v0.14" & < "v0.15"} - "dune" {>= "2.0.0"} - "ppxlib" {>= "0.11.0"} -] -synopsis: "Expands [%here] into its location" -description: " -Part of the Jane Street's PPX rewriters collection. -" -url { - src: "https://ocaml.janestreet.com/ocaml-core/v0.14/files/ppx_here-v0.14.0.tar.gz" - checksum: "md5=bb3bbde0964a1f866de09f3df44def4d" -} diff --git a/re/esy.lock/opam/ppx_inline_test.v0.14.1/opam b/re/esy.lock/opam/ppx_inline_test.v0.14.1/opam deleted file mode 100644 index 75f0818..0000000 --- a/re/esy.lock/opam/ppx_inline_test.v0.14.1/opam +++ /dev/null @@ -1,26 +0,0 @@ -opam-version: "2.0" -maintainer: "Jane Street developers" -authors: ["Jane Street Group, LLC"] -homepage: "https://github.com/janestreet/ppx_inline_test" -bug-reports: "https://github.com/janestreet/ppx_inline_test/issues" -dev-repo: "git+https://github.com/janestreet/ppx_inline_test.git" -doc: "https://ocaml.janestreet.com/ocaml-core/latest/doc/ppx_inline_test/index.html" -license: "MIT" -build: [ - ["dune" "build" "-p" name "-j" jobs] -] -depends: [ - "ocaml" {>= "4.04.2"} - "base" {>= "v0.14" & < "v0.15"} - "time_now" {>= "v0.14" & < "v0.15"} - "dune" {>= "2.0.0"} - "ppxlib" {>= "0.14.0"} -] -synopsis: "Syntax extension for writing in-line tests in ocaml code" -description: " -Part of the Jane Street's PPX rewriters collection. -" -url { - src: "https://github.com/janestreet/ppx_inline_test/archive/v0.14.1.tar.gz" - checksum: "md5=132754f0757188c3b700a2c5b6a2fb3f" -} diff --git a/re/esy.lock/opam/ppx_js_style.v0.14.1/opam b/re/esy.lock/opam/ppx_js_style.v0.14.1/opam deleted file mode 100644 index 97793cc..0000000 --- a/re/esy.lock/opam/ppx_js_style.v0.14.1/opam +++ /dev/null @@ -1,29 +0,0 @@ -opam-version: "2.0" -maintainer: "Jane Street developers" -authors: ["Jane Street Group, LLC"] -homepage: "https://github.com/janestreet/ppx_js_style" -bug-reports: "https://github.com/janestreet/ppx_js_style/issues" -dev-repo: "git+https://github.com/janestreet/ppx_js_style.git" -doc: "https://ocaml.janestreet.com/ocaml-core/latest/doc/ppx_js_style/index.html" -license: "MIT" -build: [ - ["dune" "build" "-p" name "-j" jobs] -] -depends: [ - "ocaml" {>= "4.04.2"} - "base" {>= "v0.14" & < "v0.15"} - "dune" {>= "2.0.0"} - "octavius" - "ppxlib" {>= "0.11.0"} -] -synopsis: "Code style checker for Jane Street Packages" -description: " -Part of the Jane Street's PPX rewriters collection. - -This packages is a no-op ppx rewriter. It is used as a 'lint' tool to -enforce some coding conventions across all Jane Street packages. -" -url { - src: "https://github.com/janestreet/ppx_js_style/archive/refs/tags/v0.14.1.tar.gz" - checksum: "md5=2d79afa4f954aeafb81b64ecfc11c3fb" -} diff --git a/re/esy.lock/opam/ppx_optcomp.v0.14.3/opam b/re/esy.lock/opam/ppx_optcomp.v0.14.3/opam deleted file mode 100644 index 28f0204..0000000 --- a/re/esy.lock/opam/ppx_optcomp.v0.14.3/opam +++ /dev/null @@ -1,26 +0,0 @@ -opam-version: "2.0" -maintainer: "opensource@janestreet.com" -authors: ["Jane Street Group, LLC "] -homepage: "https://github.com/janestreet/ppx_optcomp" -bug-reports: "https://github.com/janestreet/ppx_optcomp/issues" -dev-repo: "git+https://github.com/janestreet/ppx_optcomp.git" -doc: "https://ocaml.janestreet.com/ocaml-core/latest/doc/ppx_optcomp/index.html" -license: "MIT" -build: [ - ["dune" "build" "-p" name "-j" jobs] -] -depends: [ - "ocaml" {>= "4.08"} - "base" {>= "v0.14" & < "v0.15"} - "stdio" {>= "v0.14" & < "v0.15"} - "dune" {>= "2.0.0"} - "ppxlib" {>= "0.18.0"} -] -synopsis: "Optional compilation for OCaml" -description: " -Part of the Jane Street's PPX rewriters collection. -" -url { - src: "https://github.com/janestreet/ppx_optcomp/archive/v0.14.3.tar.gz" - checksum: "md5=2d012df62dd0bc82d2ea4ab25b628992" -} diff --git a/re/esy.lock/opam/ppx_sexp_conv.v0.14.3/opam b/re/esy.lock/opam/ppx_sexp_conv.v0.14.3/opam deleted file mode 100644 index 0d2ee06..0000000 --- a/re/esy.lock/opam/ppx_sexp_conv.v0.14.3/opam +++ /dev/null @@ -1,26 +0,0 @@ -opam-version: "2.0" -maintainer: "Jane Street developers" -authors: ["Jane Street Group, LLC"] -homepage: "https://github.com/janestreet/ppx_sexp_conv" -bug-reports: "https://github.com/janestreet/ppx_sexp_conv/issues" -dev-repo: "git+https://github.com/janestreet/ppx_sexp_conv.git" -doc: "https://ocaml.janestreet.com/ocaml-core/latest/doc/ppx_sexp_conv/index.html" -license: "MIT" -build: [ - ["dune" "build" "-p" name "-j" jobs] -] -depends: [ - "ocaml" {>= "4.04.2"} - "base" {>= "v0.14" & < "v0.15"} - "sexplib0" {>= "v0.14" & < "v0.15"} - "dune" {>= "2.0.0"} - "ppxlib" {>= "0.22.0"} -] -synopsis: "[@@deriving] plugin to generate S-expression conversion functions" -description: " -Part of the Jane Street's PPX rewriters collection. -" -url { - src: "https://github.com/janestreet/ppx_sexp_conv/archive/v0.14.3.tar.gz" - checksum: "md5=25caf01245e0113e035ccefe275f85d9" -} diff --git a/re/esy.lock/opam/ppxlib.0.23.0/opam b/re/esy.lock/opam/ppxlib.0.23.0/opam deleted file mode 100644 index a988bd7..0000000 --- a/re/esy.lock/opam/ppxlib.0.23.0/opam +++ /dev/null @@ -1,62 +0,0 @@ -opam-version: "2.0" -synopsis: "Standard library for ppx rewriters" -description: """ -Ppxlib is the standard library for ppx rewriters and other programs -that manipulate the in-memory reprensation of OCaml programs, a.k.a -the "Parsetree". - -It also comes bundled with two ppx rewriters that are commonly used to -write tools that manipulate and/or generate Parsetree values; -`ppxlib.metaquot` which allows to construct Parsetree values using the -OCaml syntax directly and `ppxlib.traverse` which provides various -ways of automatically traversing values of a given type, in particular -allowing to inject a complex structured value into generated code. -""" -maintainer: ["opensource@janestreet.com"] -authors: ["Jane Street Group, LLC "] -license: "MIT" -homepage: "https://github.com/ocaml-ppx/ppxlib" -doc: "https://ocaml-ppx.github.io/ppxlib/" -bug-reports: "https://github.com/ocaml-ppx/ppxlib/issues" -depends: [ - "dune" {>= "2.7"} - "ocaml" {>= "4.04.1" & < "4.14"} - "ocaml-compiler-libs" {>= "v0.11.0"} - "ppx_derivers" {>= "1.0"} - "sexplib0" {>= "v0.12"} - "stdlib-shims" - "ocamlfind" {with-test} - "re" {with-test & >= "1.9.0"} - "cinaps" {with-test & >= "v0.12.1"} - "base" {with-test} - "stdio" {with-test} - "odoc" {with-doc} -] -conflicts: [ - "ocaml-migrate-parsetree" {< "2.0.0"} - "base-effects" -] -build: [ - ["dune" "subst"] {dev} - [ - "dune" - "build" - "-p" - name - "-j" - jobs - "@install" - "@runtest" {with-test} - "@doc" {with-doc} - ] -] -dev-repo: "git+https://github.com/ocaml-ppx/ppxlib.git" -url { - src: - "https://github.com/ocaml-ppx/ppxlib/releases/download/0.23.0/ppxlib-0.23.0.tbz" - checksum: [ - "sha256=1b5836c186b9d5a16acf47da94f3968f4f08b519b7729cd86a8fd39971fe12e5" - "sha512=00352fe61756f5aad5fd89b3cc596b619e5a5cf6808dcb0c197369bfff9f1ba182b4c6e5ea0e67269c9441b7b9b28f2a70d63fb972dfda64fc1a8404f7924753" - ] -} -x-commit-hash: "de5b3113f31167d156de7d2caa1a36c04a01dba2" diff --git a/re/esy.lock/opam/re.1.10.3/opam b/re/esy.lock/opam/re.1.10.3/opam deleted file mode 100644 index c65d450..0000000 --- a/re/esy.lock/opam/re.1.10.3/opam +++ /dev/null @@ -1,46 +0,0 @@ -opam-version: "2.0" - -maintainer: "rudi.grinberg@gmail.com" -authors: [ - "Jerome Vouillon" - "Thomas Gazagnaire" - "Anil Madhavapeddy" - "Rudi Grinberg" - "Gabriel Radanne" -] -license: "LGPL-2.0 with OCaml linking exception" -homepage: "https://github.com/ocaml/ocaml-re" -bug-reports: "https://github.com/ocaml/ocaml-re/issues" -dev-repo: "git+https://github.com/ocaml/ocaml-re.git" - -build: [ - ["dune" "subst"] {pinned} - ["dune" "build" "-p" name "-j" jobs] - ["dune" "runtest" "-p" name "-j" jobs] {with-test} -] - -depends: [ - "ocaml" {>= "4.02"} - "dune" {>= "2.0"} - "ounit" {with-test} - "seq" -] - -synopsis: "RE is a regular expression library for OCaml" -description: """ -Pure OCaml regular expressions with: -* Perl-style regular expressions (module Re.Perl) -* Posix extended regular expressions (module Re.Posix) -* Emacs-style regular expressions (module Re.Emacs) -* Shell-style file globbing (module Re.Glob) -* Compatibility layer for OCaml's built-in Str module (module Re.Str) -""" -url { - src: - "https://github.com/ocaml/ocaml-re/releases/download/1.10.3/re-1.10.3.tbz" - checksum: [ - "sha256=846546967f3fe31765935dd40a6460a9424337ecce7b12727fcba49480790ebb" - "sha512=d02103b7b8b8d8bc797341dcc933554745427f3c1b51b54b4ac9ff81badfd68c94726c57548b08e00ca99f3e09741b54b6500e97c19fc0e8fcefd6dfbe71da7f" - ] -} -x-commit-hash: "c5d5df80e128c3d7646b7d8b1322012c5fcc35f3" diff --git a/re/esy.lock/opam/result.1.5/opam b/re/esy.lock/opam/result.1.5/opam deleted file mode 100644 index 6b7b68d..0000000 --- a/re/esy.lock/opam/result.1.5/opam +++ /dev/null @@ -1,22 +0,0 @@ -opam-version: "2.0" -maintainer: "Jane Street developers" -authors: ["Jane Street Group, LLC"] -homepage: "https://github.com/janestreet/result" -dev-repo: "git+https://github.com/janestreet/result.git" -bug-reports: "https://github.com/janestreet/result/issues" -license: "BSD-3-Clause" -build: [["dune" "build" "-p" name "-j" jobs]] -depends: [ - "ocaml" - "dune" {>= "1.0"} -] -synopsis: "Compatibility Result module" -description: """ -Projects that want to use the new result type defined in OCaml >= 4.03 -while staying compatible with older version of OCaml should use the -Result module defined in this library.""" -url { - src: - "https://github.com/janestreet/result/releases/download/1.5/result-1.5.tbz" - checksum: "md5=1b82dec78849680b49ae9a8a365b831b" -} diff --git a/re/esy.lock/opam/seq.base/files/META.seq b/re/esy.lock/opam/seq.base/files/META.seq deleted file mode 100644 index 06b95ef..0000000 --- a/re/esy.lock/opam/seq.base/files/META.seq +++ /dev/null @@ -1,4 +0,0 @@ -name="seq" -version="[distributed with OCaml 4.07 or above]" -description="dummy backward-compatibility package for iterators" -requires="" diff --git a/re/esy.lock/opam/seq.base/files/seq.install b/re/esy.lock/opam/seq.base/files/seq.install deleted file mode 100644 index c4d7020..0000000 --- a/re/esy.lock/opam/seq.base/files/seq.install +++ /dev/null @@ -1,3 +0,0 @@ -lib:[ - "META.seq" {"META"} -] diff --git a/re/esy.lock/opam/seq.base/opam b/re/esy.lock/opam/seq.base/opam deleted file mode 100644 index b33d8c7..0000000 --- a/re/esy.lock/opam/seq.base/opam +++ /dev/null @@ -1,15 +0,0 @@ -opam-version: "2.0" -maintainer: " " -authors: " " -homepage: " " -depends: [ - "ocaml" {>= "4.07.0"} -] -dev-repo: "git+https://github.com/ocaml/ocaml.git" -bug-reports: "https://caml.inria.fr/mantis/main_page.php" -synopsis: - "Compatibility package for OCaml's standard iterator type starting from 4.07." -extra-files: [ - ["seq.install" "md5=026b31e1df290373198373d5aaa26e42"] - ["META.seq" "md5=b33c8a1a6c7ed797816ce27df4855107"] -] diff --git a/re/esy.lock/opam/sexplib0.v0.14.0/opam b/re/esy.lock/opam/sexplib0.v0.14.0/opam deleted file mode 100644 index a618b82..0000000 --- a/re/esy.lock/opam/sexplib0.v0.14.0/opam +++ /dev/null @@ -1,26 +0,0 @@ -opam-version: "2.0" -maintainer: "Jane Street developers" -authors: ["Jane Street Group, LLC"] -homepage: "https://github.com/janestreet/sexplib0" -bug-reports: "https://github.com/janestreet/sexplib0/issues" -dev-repo: "git+https://github.com/janestreet/sexplib0.git" -doc: "https://ocaml.janestreet.com/ocaml-core/latest/doc/sexplib0/index.html" -license: "MIT" -build: [ - ["dune" "build" "-p" name "-j" jobs] -] -depends: [ - "ocaml" {>= "4.04.2"} - "dune" {>= "2.0.0"} -] -synopsis: "Library containing the definition of S-expressions and some base converters" -description: " -Part of Jane Street's Core library -The Core suite of libraries is an industrial strength alternative to -OCaml's standard library that was developed by Jane Street, the -largest industrial user of OCaml. -" -url { - src: "https://ocaml.janestreet.com/ocaml-core/v0.14/files/sexplib0-v0.14.0.tar.gz" - checksum: "md5=37aff0af8f8f6f759249475684aebdc4" -} diff --git a/re/esy.lock/opam/stdio.v0.14.0/opam b/re/esy.lock/opam/stdio.v0.14.0/opam deleted file mode 100644 index cbe4a1e..0000000 --- a/re/esy.lock/opam/stdio.v0.14.0/opam +++ /dev/null @@ -1,27 +0,0 @@ -opam-version: "2.0" -maintainer: "Jane Street developers" -authors: ["Jane Street Group, LLC"] -homepage: "https://github.com/janestreet/stdio" -bug-reports: "https://github.com/janestreet/stdio/issues" -dev-repo: "git+https://github.com/janestreet/stdio.git" -doc: "https://ocaml.janestreet.com/ocaml-core/latest/doc/stdio/index.html" -license: "MIT" -build: [ - ["dune" "build" "-p" name "-j" jobs] -] -depends: [ - "ocaml" {>= "4.04.2"} - "base" {>= "v0.14" & < "v0.15"} - "dune" {>= "2.0.0"} -] -synopsis: "Standard IO library for OCaml" -description: " -Stdio implements simple input/output functionalities for OCaml. - -It re-exports the input/output functions of the OCaml standard -libraries using a more consistent API. -" -url { - src: "https://ocaml.janestreet.com/ocaml-core/v0.14/files/stdio-v0.14.0.tar.gz" - checksum: "md5=4cbdf15f0be88c3258aaeff9e04e00e9" -} diff --git a/re/esy.lock/opam/stdlib-shims.0.3.0/opam b/re/esy.lock/opam/stdlib-shims.0.3.0/opam deleted file mode 100644 index d657e04..0000000 --- a/re/esy.lock/opam/stdlib-shims.0.3.0/opam +++ /dev/null @@ -1,31 +0,0 @@ -opam-version: "2.0" -maintainer: "The stdlib-shims programmers" -authors: "The stdlib-shims programmers" -homepage: "https://github.com/ocaml/stdlib-shims" -doc: "https://ocaml.github.io/stdlib-shims/" -dev-repo: "git+https://github.com/ocaml/stdlib-shims.git" -bug-reports: "https://github.com/ocaml/stdlib-shims/issues" -tags: ["stdlib" "compatibility" "org:ocaml"] -license: ["typeof OCaml system"] -depends: [ - "dune" - "ocaml" {>= "4.02.3"} -] -build: [ "dune" "build" "-p" name "-j" jobs ] -synopsis: "Backport some of the new stdlib features to older compiler" -description: """ -Backport some of the new stdlib features to older compiler, -such as the Stdlib module. - -This allows projects that require compatibility with older compiler to -use these new features in their code. -""" -x-commit-hash: "fb6815e5d745f07fd567c11671149de6ef2e74c8" -url { - src: - "https://github.com/ocaml/stdlib-shims/releases/download/0.3.0/stdlib-shims-0.3.0.tbz" - checksum: [ - "sha256=babf72d3917b86f707885f0c5528e36c63fccb698f4b46cf2bab5c7ccdd6d84a" - "sha512=1151d7edc8923516e9a36995a3f8938d323aaade759ad349ed15d6d8501db61ffbe63277e97c4d86149cf371306ac23df0f581ec7e02611f58335126e1870980" - ] -} diff --git a/re/esy.lock/opam/time_now.v0.14.0/opam b/re/esy.lock/opam/time_now.v0.14.0/opam deleted file mode 100644 index df30ac8..0000000 --- a/re/esy.lock/opam/time_now.v0.14.0/opam +++ /dev/null @@ -1,29 +0,0 @@ -opam-version: "2.0" -maintainer: "Jane Street developers" -authors: ["Jane Street Group, LLC"] -homepage: "https://github.com/janestreet/time_now" -bug-reports: "https://github.com/janestreet/time_now/issues" -dev-repo: "git+https://github.com/janestreet/time_now.git" -doc: "https://ocaml.janestreet.com/ocaml-core/latest/doc/time_now/index.html" -license: "MIT" -build: [ - ["dune" "build" "-p" name "-j" jobs] -] -depends: [ - "ocaml" {>= "4.04.2"} - "base" {>= "v0.14" & < "v0.15"} - "jane-street-headers" {>= "v0.14" & < "v0.15"} - "jst-config" {>= "v0.14" & < "v0.15"} - "ppx_base" {>= "v0.14" & < "v0.15"} - "ppx_optcomp" {>= "v0.14" & < "v0.15"} - "dune" {>= "2.0.0"} -] -synopsis: "Reports the current time" -description: " -Provides a single function to report the current time in nanoseconds -since the start of the Unix epoch. -" -url { - src: "https://ocaml.janestreet.com/ocaml-core/v0.14/files/time_now-v0.14.0.tar.gz" - checksum: "md5=a93116938783587f8b9f5152dd543037" -} diff --git a/re/esy.lock/opam/yojson.1.7.0/opam b/re/esy.lock/opam/yojson.1.7.0/opam deleted file mode 100644 index f543805..0000000 --- a/re/esy.lock/opam/yojson.1.7.0/opam +++ /dev/null @@ -1,38 +0,0 @@ -opam-version: "2.0" -maintainer: "martin@mjambon.com" -authors: ["Martin Jambon"] -homepage: "https://github.com/ocaml-community/yojson" -bug-reports: "https://github.com/ocaml-community/yojson/issues" -dev-repo: "git+https://github.com/ocaml-community/yojson.git" -doc: "https://ocaml-community.github.io/yojson/" -build: [ - ["dune" "subst"] {dev} - ["dune" "build" "-p" name "-j" jobs] -] -run-test: [["dune" "runtest" "-p" name "-j" jobs]] -depends: [ - "ocaml" {>= "4.02.3"} - "dune" - "cppo" {build} - "easy-format" - "biniou" {>= "1.2.0"} - "alcotest" {with-test & >= "0.8.5"} -] -synopsis: - "Yojson is an optimized parsing and printing library for the JSON format" -description: """ -Yojson is an optimized parsing and printing library for the JSON format. - -It addresses a few shortcomings of json-wheel including 2x speedup, -polymorphic variants and optional syntax for tuples and variants. - -ydump is a pretty-printing command-line program provided with the -yojson package. - -The program atdgen can be used to derive OCaml-JSON serializers and -deserializers from type definitions.""" -url { - src: - "https://github.com/ocaml-community/yojson/releases/download/1.7.0/yojson-1.7.0.tbz" - checksum: "md5=b89d39ca3f8c532abe5f547ad3b8f84d" -} diff --git a/re/esy.lock/overrides/opam__s__ocamlfind_opam__c__1.9.1_opam_override/files/findlib-1.9.1.patch b/re/esy.lock/overrides/opam__s__ocamlfind_opam__c__1.9.1_opam_override/files/findlib-1.9.1.patch deleted file mode 100644 index 3e3ee5a..0000000 --- a/re/esy.lock/overrides/opam__s__ocamlfind_opam__c__1.9.1_opam_override/files/findlib-1.9.1.patch +++ /dev/null @@ -1,471 +0,0 @@ ---- ./Makefile -+++ ./Makefile -@@ -57,16 +57,16 @@ - cat findlib.conf.in | \ - $(SH) tools/patch '@SITELIB@' '$(OCAML_SITELIB)' >findlib.conf - if ./tools/cmd_from_same_dir ocamlc; then \ -- echo 'ocamlc="ocamlc.opt"' >>findlib.conf; \ -+ echo 'ocamlc="ocamlc.opt$(EXEC_SUFFIX)"' >>findlib.conf; \ - fi - if ./tools/cmd_from_same_dir ocamlopt; then \ -- echo 'ocamlopt="ocamlopt.opt"' >>findlib.conf; \ -+ echo 'ocamlopt="ocamlopt.opt$(EXEC_SUFFIX)"' >>findlib.conf; \ - fi - if ./tools/cmd_from_same_dir ocamldep; then \ -- echo 'ocamldep="ocamldep.opt"' >>findlib.conf; \ -+ echo 'ocamldep="ocamldep.opt$(EXEC_SUFFIX)"' >>findlib.conf; \ - fi - if ./tools/cmd_from_same_dir ocamldoc; then \ -- echo 'ocamldoc="ocamldoc.opt"' >>findlib.conf; \ -+ echo 'ocamldoc="ocamldoc.opt$(EXEC_SUFFIX)"' >>findlib.conf; \ - fi - - .PHONY: install-doc ---- ./src/findlib/findlib_config.mlp -+++ ./src/findlib/findlib_config.mlp -@@ -24,3 +24,5 @@ - | "MacOS" -> "" (* don't know *) - | _ -> failwith "Unknown Sys.os_type" - ;; -+ -+let exec_suffix = "@EXEC_SUFFIX@";; ---- ./src/findlib/findlib.ml -+++ ./src/findlib/findlib.ml -@@ -28,15 +28,20 @@ - let conf_ldconf = ref "";; - let conf_ignore_dups_in = ref ([] : string list);; - --let ocamlc_default = "ocamlc";; --let ocamlopt_default = "ocamlopt";; --let ocamlcp_default = "ocamlcp";; --let ocamloptp_default = "ocamloptp";; --let ocamlmklib_default = "ocamlmklib";; --let ocamlmktop_default = "ocamlmktop";; --let ocamldep_default = "ocamldep";; --let ocamlbrowser_default = "ocamlbrowser";; --let ocamldoc_default = "ocamldoc";; -+let add_exec str = -+ match Findlib_config.exec_suffix with -+ | "" -> str -+ | a -> str ^ a ;; -+let ocamlc_default = add_exec "ocamlc";; -+let ocamlopt_default = add_exec "ocamlopt";; -+let ocamlcp_default = add_exec "ocamlcp";; -+let ocamloptp_default = add_exec "ocamloptp";; -+let ocamlmklib_default = add_exec "ocamlmklib";; -+let ocamlmktop_default = add_exec "ocamlmktop";; -+let ocamldep_default = add_exec "ocamldep";; -+let ocamlbrowser_default = add_exec "ocamlbrowser";; -+let ocamldoc_default = add_exec "ocamldoc";; -+ - - - let init_manually ---- ./src/findlib/fl_package_base.ml -+++ ./src/findlib/fl_package_base.ml -@@ -133,7 +133,15 @@ - List.find (fun def -> def.def_var = "exists_if") p.package_defs in - let files = Fl_split.in_words def.def_value in - List.exists -- (fun file -> Sys.file_exists (Filename.concat d' file)) -+ (fun file -> -+ let fln = Filename.concat d' file in -+ let e = Sys.file_exists fln in -+ (* necessary for ppx executables *) -+ if e || Sys.os_type <> "Win32" || Filename.check_suffix fln ".exe" then -+ e -+ else -+ Sys.file_exists (fln ^ ".exe") -+ ) - files - with Not_found -> true in - ---- ./src/findlib/fl_split.ml -+++ ./src/findlib/fl_split.ml -@@ -126,10 +126,17 @@ - | '/' | '\\' -> true - | _ -> false in - let norm_dir_win() = -- if l >= 1 && s.[0] = '/' then -- Buffer.add_char b '\\' else Buffer.add_char b s.[0]; -- if l >= 2 && s.[1] = '/' then -- Buffer.add_char b '\\' else Buffer.add_char b s.[1]; -+ if l >= 1 then ( -+ if s.[0] = '/' then -+ Buffer.add_char b '\\' -+ else -+ Buffer.add_char b s.[0] ; -+ if l >= 2 then -+ if s.[1] = '/' then -+ Buffer.add_char b '\\' -+ else -+ Buffer.add_char b s.[1]; -+ ); - for k = 2 to l - 1 do - let c = s.[k] in - if is_slash c then ( ---- ./src/findlib/frontend.ml -+++ ./src/findlib/frontend.ml -@@ -31,10 +31,18 @@ - else - Sys_error (arg ^ ": " ^ Unix.error_message code) - -+let is_win = Sys.os_type = "Win32" -+ -+let () = -+ match Findlib_config.system with -+ | "win32" | "win64" | "mingw" | "cygwin" | "mingw64" | "cygwin64" -> -+ (try set_binary_mode_out stdout true with _ -> ()); -+ (try set_binary_mode_out stderr true with _ -> ()); -+ | _ -> () - - let slashify s = - match Findlib_config.system with -- | "mingw" | "mingw64" | "cygwin" -> -+ | "win32" | "win64" | "mingw" | "cygwin" | "mingw64" | "cygwin64" -> - let b = Buffer.create 80 in - String.iter - (function -@@ -49,7 +57,7 @@ - - let out_path ?(prefix="") s = - match Findlib_config.system with -- | "mingw" | "mingw64" | "cygwin" -> -+ | "win32" | "win64" | "mingw" | "mingw64" | "cygwin" -> - let u = slashify s in - prefix ^ - (if String.contains u ' ' then -@@ -273,11 +281,9 @@ - - - let identify_dir d = -- match Sys.os_type with -- | "Win32" -> -- failwith "identify_dir" (* not available *) -- | _ -> -- let s = Unix.stat d in -+ if is_win then -+ failwith "identify_dir"; (* not available *) -+ let s = Unix.stat d in - (s.Unix.st_dev, s.Unix.st_ino) - ;; - -@@ -459,6 +465,96 @@ - ) - packages - -+let rewrite_cmd s = -+ if s = "" || not is_win then -+ s -+ else -+ let s = -+ let l = String.length s in -+ let b = Buffer.create l in -+ for i = 0 to pred l do -+ match s.[i] with -+ | '/' -> Buffer.add_char b '\\' -+ | x -> Buffer.add_char b x -+ done; -+ Buffer.contents b -+ in -+ if (Filename.is_implicit s && String.contains s '\\' = false) || -+ Filename.check_suffix (String.lowercase s) ".exe" then -+ s -+ else -+ let s' = s ^ ".exe" in -+ if Sys.file_exists s' then -+ s' -+ else -+ s -+ -+let rewrite_cmd s = -+ if s = "" || not is_win then s else -+ let s = -+ let l = String.length s in -+ let b = Buffer.create l in -+ for i = 0 to pred l do -+ match s.[i] with -+ | '/' -> Buffer.add_char b '\\' -+ | x -> Buffer.add_char b x -+ done; -+ Buffer.contents b -+ in -+ if (Filename.is_implicit s && String.contains s '\\' = false) || -+ Filename.check_suffix (String.lowercase s) ".exe" then -+ s -+ else -+ let s' = s ^ ".exe" in -+ if Sys.file_exists s' then -+ s' -+ else -+ s -+ -+let rewrite_pp cmd = -+ if not is_win then cmd else -+ let module T = struct exception Keep end in -+ let is_whitespace = function -+ | ' ' | '\011' | '\012' | '\n' | '\r' | '\t' -> true -+ | _ -> false in -+ (* characters that triggers special behaviour (cmd.exe, not unix shell) *) -+ let is_unsafe_char = function -+ | '(' | ')' | '%' | '!' | '^' | '<' | '>' | '&' -> true -+ | _ -> false in -+ let len = String.length cmd in -+ let buf = Buffer.create (len + 4) in -+ let buf_cmd = Buffer.create len in -+ let rec iter_ws i = -+ if i >= len then () else -+ let cur = cmd.[i] in -+ if is_whitespace cur then ( -+ Buffer.add_char buf cur; -+ iter_ws (succ i) -+ ) -+ else -+ iter_cmd i -+ and iter_cmd i = -+ if i >= len then add_buf_cmd () else -+ let cur = cmd.[i] in -+ if is_unsafe_char cur || cur = '"' || cur = '\'' then -+ raise T.Keep; -+ if is_whitespace cur then ( -+ add_buf_cmd (); -+ Buffer.add_substring buf cmd i (len - i) -+ ) -+ else ( -+ Buffer.add_char buf_cmd cur; -+ iter_cmd (succ i) -+ ) -+ and add_buf_cmd () = -+ if Buffer.length buf_cmd > 0 then -+ Buffer.add_string buf (rewrite_cmd (Buffer.contents buf_cmd)) -+ in -+ try -+ iter_ws 0; -+ Buffer.contents buf -+ with -+ | T.Keep -> cmd - - let process_pp_spec syntax_preds packages pp_opts = - (* Returns: pp_command *) -@@ -549,7 +645,7 @@ - None -> [] - | Some cmd -> - ["-pp"; -- cmd ^ " " ^ -+ (rewrite_cmd cmd) ^ " " ^ - String.concat " " (List.map Filename.quote pp_i_options) ^ " " ^ - String.concat " " (List.map Filename.quote pp_archives) ^ " " ^ - String.concat " " (List.map Filename.quote pp_opts)] -@@ -625,9 +721,11 @@ - in - try - let preprocessor = -+ rewrite_cmd ( - resolve_path - ~base ~explicit:true -- (package_property predicates pname "ppx") in -+ (package_property predicates pname "ppx") ) -+ in - ["-ppx"; String.concat " " (preprocessor :: options)] - with Not_found -> [] - ) -@@ -895,6 +993,14 @@ - switch (e.g. -L instead of -L ) - *) - -+(* We may need to remove files on which we do not have complete control. -+ On Windows, removing a read-only file fails so try to change the -+ mode of the file first. *) -+let remove_file fname = -+ try Sys.remove fname -+ with Sys_error _ when is_win -> -+ (try Unix.chmod fname 0o666 with Unix.Unix_error _ -> ()); -+ Sys.remove fname - - let ocamlc which () = - -@@ -1022,9 +1128,12 @@ - - "-intf", - Arg.String (fun s -> pass_files := !pass_files @ [ Intf(slashify s) ]); -- -+ - "-pp", -- Arg.String (fun s -> pp_specified := true; add_spec_fn "-pp" s); -+ Arg.String (fun s -> pp_specified := true; add_spec_fn "-pp" (rewrite_pp s)); -+ -+ "-ppx", -+ Arg.String (fun s -> add_spec_fn "-ppx" (rewrite_pp s)); - - "-thread", - Arg.Unit (fun _ -> threads := threads_default); -@@ -1237,7 +1346,7 @@ - with - any -> - close_out initl; -- Sys.remove initl_file_name; -+ remove_file initl_file_name; - raise any - end; - -@@ -1245,9 +1354,9 @@ - at_exit - (fun () -> - let tr f x = try f x with _ -> () in -- tr Sys.remove initl_file_name; -- tr Sys.remove (Filename.chop_extension initl_file_name ^ ".cmi"); -- tr Sys.remove (Filename.chop_extension initl_file_name ^ ".cmo"); -+ tr remove_file initl_file_name; -+ tr remove_file (Filename.chop_extension initl_file_name ^ ".cmi"); -+ tr remove_file (Filename.chop_extension initl_file_name ^ ".cmo"); - ); - - let exclude_list = [ stdlibdir; threads_dir; vmthreads_dir ] in -@@ -1493,7 +1602,9 @@ - [ "-v", Arg.Unit (fun () -> verbose := Verbose); - "-pp", Arg.String (fun s -> - pp_specified := true; -- options := !options @ ["-pp"; s]); -+ options := !options @ ["-pp"; rewrite_pp s]); -+ "-ppx", Arg.String (fun s -> -+ options := !options @ ["-ppx"; rewrite_pp s]); - ] - ) - ) -@@ -1672,7 +1783,9 @@ - Arg.String (fun s -> add_spec_fn "-I" (slashify (resolve_path s))); - - "-pp", Arg.String (fun s -> pp_specified := true; -- add_spec_fn "-pp" s); -+ add_spec_fn "-pp" (rewrite_pp s)); -+ "-ppx", Arg.String (fun s -> add_spec_fn "-ppx" (rewrite_pp s)); -+ - ] - ) - ) -@@ -1830,7 +1943,10 @@ - output_string ch_out append; - close_out ch_out; - close_in ch_in; -- Unix.utimes outpath s.Unix.st_mtime s.Unix.st_mtime; -+ (try Unix.utimes outpath s.Unix.st_mtime s.Unix.st_mtime -+ with Unix.Unix_error(e,_,_) -> -+ prerr_endline("Warning: setting utimes for " ^ outpath -+ ^ ": " ^ Unix.error_message e)); - - prerr_endline("Installed " ^ outpath); - with -@@ -1882,6 +1998,8 @@ - Unix.openfile (Filename.concat dir owner_file) [Unix.O_RDONLY] 0 in - let f = - Unix.in_channel_of_descr fd in -+ if is_win then -+ set_binary_mode_in f false; - try - let line = input_line f in - let is_my_file = (line = pkg) in -@@ -2208,7 +2326,7 @@ - let lines = read_ldconf !ldconf in - let dlldir_norm = Fl_split.norm_dir dlldir in - let dlldir_norm_lc = string_lowercase_ascii dlldir_norm in -- let ci_filesys = (Sys.os_type = "Win32") in -+ let ci_filesys = is_win in - let check_dir d = - let d' = Fl_split.norm_dir d in - (d' = dlldir_norm) || -@@ -2356,7 +2474,7 @@ - List.iter - (fun file -> - let absfile = Filename.concat dlldir file in -- Sys.remove absfile; -+ remove_file absfile; - prerr_endline ("Removed " ^ absfile) - ) - dll_files -@@ -2365,7 +2483,7 @@ - (* Remove the files from the package directory: *) - if Sys.file_exists pkgdir then begin - let files = Sys.readdir pkgdir in -- Array.iter (fun f -> Sys.remove (Filename.concat pkgdir f)) files; -+ Array.iter (fun f -> remove_file (Filename.concat pkgdir f)) files; - Unix.rmdir pkgdir; - prerr_endline ("Removed " ^ pkgdir) - end -@@ -2415,7 +2533,9 @@ - - - let print_configuration() = -+ let sl = slashify in - let dir s = -+ let s = sl s in - if Sys.file_exists s then - s - else -@@ -2453,27 +2573,27 @@ - if md = "" then "the corresponding package directories" else dir md - ); - Printf.printf "The standard library is assumed to reside in:\n %s\n" -- (Findlib.ocaml_stdlib()); -+ (sl (Findlib.ocaml_stdlib())); - Printf.printf "The ld.conf file can be found here:\n %s\n" -- (Findlib.ocaml_ldconf()); -+ (sl (Findlib.ocaml_ldconf())); - flush stdout - | Some "conf" -> -- print_endline (Findlib.config_file()) -+ print_endline (sl (Findlib.config_file())) - | Some "path" -> -- List.iter print_endline (Findlib.search_path()) -+ List.iter ( fun x -> print_endline (sl x)) (Findlib.search_path()) - | Some "destdir" -> -- print_endline (Findlib.default_location()) -+ print_endline ( sl (Findlib.default_location())) - | Some "metadir" -> -- print_endline (Findlib.meta_directory()) -+ print_endline ( sl (Findlib.meta_directory())) - | Some "metapath" -> - let mdir = Findlib.meta_directory() in - let ddir = Findlib.default_location() in -- print_endline -- (if mdir <> "" then mdir ^ "/META.%s" else ddir ^ "/%s/META") -+ print_endline ( sl -+ (if mdir <> "" then mdir ^ "/META.%s" else ddir ^ "/%s/META")) - | Some "stdlib" -> -- print_endline (Findlib.ocaml_stdlib()) -+ print_endline ( sl (Findlib.ocaml_stdlib())) - | Some "ldconf" -> -- print_endline (Findlib.ocaml_ldconf()) -+ print_endline ( sl (Findlib.ocaml_ldconf())) - | _ -> - assert false - ;; -@@ -2481,7 +2601,7 @@ - - let ocamlcall pkg cmd = - let dir = package_directory pkg in -- let path = Filename.concat dir cmd in -+ let path = rewrite_cmd (Filename.concat dir cmd) in - begin - try Unix.access path [ Unix.X_OK ] - with -@@ -2647,6 +2767,10 @@ - | Sys_error f -> - prerr_endline ("ocamlfind: " ^ f); - exit 2 -+ | Unix.Unix_error (e, fn, f) -> -+ prerr_endline ("ocamlfind: " ^ fn ^ " " ^ f -+ ^ ": " ^ Unix.error_message e); -+ exit 2 - | Findlib.No_such_package(pkg,info) -> - prerr_endline ("ocamlfind: Package `" ^ pkg ^ "' not found" ^ - (if info <> "" then " - " ^ info else "")); ---- ./src/findlib/Makefile -+++ ./src/findlib/Makefile -@@ -90,6 +90,7 @@ - cat findlib_config.mlp | \ - $(SH) $(TOP)/tools/patch '@CONFIGFILE@' '$(OCAMLFIND_CONF)' | \ - $(SH) $(TOP)/tools/patch '@STDLIB@' '$(OCAML_CORE_STDLIB)' | \ -+ $(SH) $(TOP)/tools/patch '@EXEC_SUFFIX@' '$(EXEC_SUFFIX)' | \ - sed -e 's;@AUTOLINK@;$(OCAML_AUTOLINK);g' \ - -e 's;@SYSTEM@;$(SYSTEM);g' \ - >findlib_config.ml diff --git a/re/esy.lock/overrides/opam__s__ocamlfind_opam__c__1.9.1_opam_override/package.json b/re/esy.lock/overrides/opam__s__ocamlfind_opam__c__1.9.1_opam_override/package.json deleted file mode 100644 index 741211a..0000000 --- a/re/esy.lock/overrides/opam__s__ocamlfind_opam__c__1.9.1_opam_override/package.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "build": [ - [ - "bash", - "-c", - "#{os == 'windows' ? 'patch -p1 < findlib-1.9.1.patch' : 'true'}" - ], - [ - "./configure", - "-bindir", - "#{self.bin}", - "-sitelib", - "#{self.lib}", - "-mandir", - "#{self.man}", - "-config", - "#{self.lib}/findlib.conf", - "-no-custom", - "-no-topfind" - ], - [ - "make", - "all" - ], - [ - "make", - "opt" - ] - ], - "install": [ - [ - "make", - "install" - ], - [ - "install", - "-m", - "0755", - "ocaml-stub", - "#{self.bin}/ocaml" - ], - [ - "mkdir", - "-p", - "#{self.toplevel}" - ], - [ - "install", - "-m", - "0644", - "src/findlib/topfind", - "#{self.toplevel}/topfind" - ] - ], - "exportedEnv": { - "OCAML_TOPLEVEL_PATH": { - "val": "#{self.toplevel}", - "scope": "global" - } - } -} diff --git a/re/lib/EsyBashLib.re b/re/lib/EsyBashLib.re deleted file mode 100644 index e2af8fd..0000000 --- a/re/lib/EsyBashLib.re +++ /dev/null @@ -1,139 +0,0 @@ -exception InvalidEnvJSON(string); -exception InvariantViolation(unit); - -let pathDelimStr = Sys.unix ? "/" : "\\"; -let pathDelimChr = pathDelimStr.[0]; - -let log = msg => { - let debugMode = - ( - try (Sys.getenv("ESY_BASH_DEBUG")) { - | Not_found => "" - } - ) - != ""; - if (debugMode) { - print_endline(msg); - }; -}; - -let normalizePath = str => - String.concat("/", String.split_on_char(pathDelimChr, str)); - -let normalizeEndlines = str => - String.concat("\n", Str.split(Str.regexp("\r\n"), str)); - -let remapPathsInEnvironment = envVars => - Array.map( - envVar => - switch (String.split_on_char('=', envVar)) { - | [k, v, ...rest] => - if (String.lowercase_ascii(k) == "path") { - "PATH=" - ++ String.concat( - Sys.unix ? ":" : ";", - ["/usr/bin", "/usr/local/bin", normalizePath(v)], - ); - } else if (String.lowercase_ascii(k) == "home") { - "HOME=/usr/esy" - } else { - k ++ "=" ++ v; - } - | _ => raise(InvariantViolation()) - }, - envVars, - ); - -let collectKeyValuePairs = jsonKeyValuePairs => - List.map( - pair => { - let (k, jsonValue) = pair; - switch (jsonValue) { - | `String(a) => k ++ "=" ++ a - | _ => raise(InvalidEnvJSON("Not a valid env json file")) - }; - }, - jsonKeyValuePairs, - ); - -let rec traverse = json => - switch (json) { - | `Assoc(keyValuePairs) => collectKeyValuePairs(keyValuePairs) - | _ => raise(InvalidEnvJSON("Not a valid env json file")) - }; - -let extractEnvironmentVariables = environmentFile => { - let json = Yojson.Basic.from_file(environmentFile); - traverse(json); -}; - -let nonce = ref(0); -let bashExec = (~environmentFile=?, command) => { - let executablePath = Sys.executable_name; - let parent = Filename.dirname; - let cygwinBash = - parent(parent(parent(parent(parent(executablePath))))) - ++ "\\.cygwin\\bin\\bash.exe"; - let shellPath = Sys.unix ? "/bin/bash" : cygwinBash; - nonce := nonce^ + 1; - log( - Printf.sprintf( - "esy-bash: executing bash command: %s | nonce %s\n", - command, - string_of_int(nonce^), - ), - ); - let tmpFileName = - Printf.sprintf( - "__esy-bash__%s__%s__.sh", - string_of_int(Hashtbl.hash(command)), - string_of_int(nonce^), - ); - let tempFilePath = - Sys.getenv(Sys.unix ? "TMPDIR" : "TMP") ++ pathDelimStr ++ tmpFileName; - let cygwinSymlinkVar = "CYGWIN=winsymlinks:nativestrict"; - - let bashCommandWithDirectoryPreamble = - Printf.sprintf( - "mount -c /cygdrive -o binary,noacl,posix=0,user > /dev/null; \ncd \"%s\";\n%s;", - normalizePath(Sys.getcwd()), - command, - ); - let normalizedShellScript = - normalizeEndlines(bashCommandWithDirectoryPreamble); - - let fileChannel = open_out_bin(tempFilePath); - Printf.fprintf(fileChannel, "%s", normalizedShellScript); - close_out(fileChannel); - - let existingVars = Unix.environment(); - let vars = - remapPathsInEnvironment( - Array.append([|cygwinSymlinkVar|], existingVars), - ); - let run_shell = - switch (environmentFile) { - | Some(x) => - let varsFromFile = - remapPathsInEnvironment( - Array.of_list(extractEnvironmentVariables(x)), - ); - Unix.create_process_env( - shellPath, - [|Sys.unix ? "-c" : "-lc", tempFilePath|], - Array.append(existingVars, varsFromFile), - ); - | None => - Unix.create_process_env( - shellPath, - [|Sys.unix ? "-c" : "-lc", tempFilePath|], - vars, - ) - }; - let pid = run_shell(Unix.stdin, Unix.stdout, Unix.stderr); - switch (Unix.waitpid([], pid)) { - | (_, WEXITED(c)) => c - | (_, WSIGNALED(c)) => c - | (_, WSTOPPED(c)) => c - }; -}; diff --git a/re/lib/EsyBashLib.rei b/re/lib/EsyBashLib.rei deleted file mode 100644 index 3b24674..0000000 --- a/re/lib/EsyBashLib.rei +++ /dev/null @@ -1 +0,0 @@ -let bashExec: (~environmentFile: string=?, string) => int; diff --git a/re/lib/dune b/re/lib/dune deleted file mode 100644 index 9e72ccd..0000000 --- a/re/lib/dune +++ /dev/null @@ -1,6 +0,0 @@ -(library - (name EsyBashLib) - (flags (-w -40 -w +26 -cclib -lunix)) - (ocamlc_flags -custom unix.cma) - (public_name esy-bash.lib) - (libraries str unix yojson)) diff --git a/re/package.json b/re/package.json deleted file mode 100644 index 07b10ac..0000000 --- a/re/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "esy-bash", - "version": "0.1.0", - "description": "Reason workflow with Esy", - "license": "MIT", - "files": [ - "_build/default/bin/EsyBash.exe" - ], - "esy": { - "build": "refmterr dune build -p #{self.name}", - "buildsInSource": "_build", - "NOTE": "Optional release Section. Customizes result of `esy release`", - "release": { - "releasedBinaries": [ - "EsyBash.exe" - ], - "deleteFromBinaryRelease": [ - "*esy_ocaml_*", - "*refmterr-*", - "ocaml-*" - ] - } - }, - "scripts": { - "test": "esy b dune runtest" - }, - "dependencies": { - "@opam/dune": "*", - "@esy-ocaml/reason": "*", - "@opam/ppx_inline_test": "*", - "refmterr": "*", - "ocaml": "4.10.x" - } -} diff --git a/re/tests/bin/Test_runner.ml b/re/tests/bin/Test_runner.ml deleted file mode 100644 index 509ae86..0000000 --- a/re/tests/bin/Test_runner.ml +++ /dev/null @@ -1 +0,0 @@ -Ppx_inline_test_lib.Runtime.exit () diff --git a/re/tests/bin/dune b/re/tests/bin/dune deleted file mode 100644 index 605ac0a..0000000 --- a/re/tests/bin/dune +++ /dev/null @@ -1,9 +0,0 @@ -(executable - (name test_runner) - (modules test_runner) - (libraries EsyBashLibTests ppx_inline_test.runner.lib)) - -(alias - (name runtest) - (deps test_runner.exe) - (action (run %{deps} inline-test-runner EsyBashLibTests))) diff --git a/re/tests/lib/EsyBashLibTests.ml b/re/tests/lib/EsyBashLibTests.ml deleted file mode 100644 index 2204997..0000000 --- a/re/tests/lib/EsyBashLibTests.ml +++ /dev/null @@ -1,38 +0,0 @@ -let%test "can pass basic statement to bash." = - let (out, err, exit_code) = Helpers.run_esy_bash "echo Hello World" in - exit_code = 0 && (Helpers.contains out "Hello World") = 0 && (err = "") - - -let%test "forwards exit code." = - let (_out, _err, exit_code) = Helpers.run_esy_bash "exit 15" in - exit_code = 15 - - -let%test "--env: environment file." = - let tempFilePath = - Sys.getenv (if Sys.unix then "TMPDIR" else "TMP") ^ - "test-env.json" in - let fileChannel = open_out_bin tempFilePath in - Printf.fprintf fileChannel "%s" {json| -{ - "foo": "foovalue", - "bar": "unreal value", - "h": "" -} -|json}; - close_out fileChannel; - - let (out, _err, exit_code) = Helpers.run_esy_bash ~env_file:tempFilePath "echo $foo" in - exit_code = 0 && (Helpers.contains out "foovalue") = 0 - - -let%test "ls command" = - let (out, _err, exit_code) = Helpers.run_esy_bash "ls" in - (Helpers.contains out "test_runner.exe") != -1 && exit_code = 0 - -(* let%test "doesn't escape." = true (\* TODO *\) - * let%test "can pass output to bash." = true (\* TODO *\) - * let%test "respects the cwd parameter." = true (\* TODO *\) - * let%test "symlinks." = true (\* TODO *\) *) - - diff --git a/re/tests/lib/dune b/re/tests/lib/dune deleted file mode 100644 index 531832d..0000000 --- a/re/tests/lib/dune +++ /dev/null @@ -1,6 +0,0 @@ -(library - (name EsyBashLibTests) - (library_flags (-linkall)) - (libraries EsyBashLib unix ppx_inline_test.runtime-lib) - (modules (:standard)) - (preprocess (pps ppx_inline_test))) diff --git a/re/tests/lib/helpers.ml b/re/tests/lib/helpers.ml deleted file mode 100644 index 1fc57bf..0000000 --- a/re/tests/lib/helpers.ml +++ /dev/null @@ -1,38 +0,0 @@ -exception ProcessInterrupted of string - -let contains s1 s2 = - let re = Str.regexp_string s2 in - try - Str.search_forward re s1 0 - with Not_found -> -1 - -let run_esy_bash ?env_file args_str = - let existing_vars = Unix.environment () in - let shell_path = if Sys.unix then "../../bin/EsyBash.exe" else "..\\..\\bin\\EsyBash.exe" in - let escaping_quotes = if Sys.unix then "'" else "\"" in - let shell_args = - let escaped_commands = escaping_quotes ^ args_str ^ escaping_quotes in - match env_file with - | Some x -> "--env " ^ x ^ " " ^ escaped_commands - | None -> escaped_commands in - let run_process = Unix.open_process_full (shell_path ^ " " ^ shell_args) existing_vars - in - let (p_out_chan, p_in_chan, p_err_chan) = run_process in - let out_buf = ref "" in - let err_buf = ref "" in - let () = try - while true do - out_buf := !out_buf ^ (input_line p_out_chan); - done - with End_of_file -> () in - let () = try - while true do - err_buf := !err_buf ^ (input_line p_err_chan); - done - with End_of_file -> () in - match (Unix.close_process_full (p_out_chan, p_in_chan, p_err_chan)) with - | WEXITED c -> (!out_buf, !err_buf, c) - | WSIGNALED c -> raise (ProcessInterrupted ("Process signalled with " ^ string_of_int c)) - | WSTOPPED c -> raise (ProcessInterrupted ("Process stopped with " ^ string_of_int c)); - -