Skip to content

Instantly share code, notes, and snippets.

@ManasJayanth
Last active May 29, 2020 04:41
Show Gist options
  • Select an option

  • Save ManasJayanth/fddaaf71b41d9d0b8367780967c7d203 to your computer and use it in GitHub Desktop.

Select an option

Save ManasJayanth/fddaaf71b41d9d0b8367780967c7d203 to your computer and use it in GitHub Desktop.

Revisions

  1. ManasJayanth revised this gist May 21, 2020. 1 changed file with 2 additions and 4 deletions.
    6 changes: 2 additions & 4 deletions esy.json
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,11 @@
    {
    "dependencies": {
    "ocaml": "4.6.x",
    "@esy-ocaml/reason": "*",
    "@opam/ocamlformat": "0.12",
    "@opam/ocaml-lsp-server": "ocaml/ocaml-lsp:ocaml-lsp-server.opam#0fc8955eb39"
    "@opam/ocaml-lsp-server": "ocaml/ocaml-lsp:ocaml-lsp-server.opam"
    },
    "resolutions": {
    "@opam/dune": {
    "source": "https://github.com/ocaml/dune/releases/download/2.3.1/dune-2.3.1.tbz#408307fb131d979658be51f23128a8ea76470915",
    "source": "https://github.com/ocaml/dune/releases/download/2.5.1/dune-2.5.1.tbz#6c09f4d53e9169498ab017597c4343ceb00f6ead",
    "override": {
    "buildsInSource": true,
    "build": [
  2. ManasJayanth revised this gist Mar 6, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion esy.json
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@
    },
    "resolutions": {
    "@opam/dune": {
    "source": "https://github.com/ocaml/dune/releases/download/2.3.1/dune-2.3.1.tbz#22a8afefc448d4d0b926789d5dea6e1771808936",
    "source": "https://github.com/ocaml/dune/releases/download/2.3.1/dune-2.3.1.tbz#408307fb131d979658be51f23128a8ea76470915",
    "override": {
    "buildsInSource": true,
    "build": [
  3. ManasJayanth revised this gist Feb 21, 2020. 1 changed file with 2 additions and 22 deletions.
    24 changes: 2 additions & 22 deletions esy.json
    Original file line number Diff line number Diff line change
    @@ -20,31 +20,11 @@
    "OCAMLFIND_CONF": "$SECONDARY_OCAMLFIND_CONF"
    },
    "dependencies": {
    "dump-secondary-toolchain-findlib-conf": "*"
    }
    }
    },
    "dump-secondary-toolchain-findlib-conf": {
    "source": "prometheansacrifice/esy-secondary-toolchain-findlib-conf#9f7bf096909d95",
    "override": {
    "buildsInSource": true,
    "build": [
    "bash gen-findlib-conf.sh #{@opam/ocaml-secondary-compiler.install}"
    ],
    "install": [
    "cp ocaml-secondary-compiler.conf #{self.lib / 'findlib.conf'}"
    ],
    "exportedEnv": {
    "SECONDARY_OCAMLFIND_CONF": {
    "scope": "global",
    "val": "#{self.lib / 'findlib.conf'}"
    }
    },
    "dependencies": {
    "@opam/ocaml-secondary-compiler": "*"
    "esy-secondary-toolchain-findlib-conf": "*"
    }
    }
    },
    "esy-secondary-toolchain-findlib-conf": "prometheansacrifice/esy-secondary-toolchain-findlib-conf#3b2d207",
    "@opam/ocaml-secondary-compiler": "esy-ocaml/ocaml#a5a77246b60f3"
    }
    }
  4. ManasJayanth revised this gist Feb 21, 2020. No changes.
  5. ManasJayanth revised this gist Feb 21, 2020. No changes.
  6. ManasJayanth revised this gist Feb 21, 2020. 1 changed file with 1 addition and 47 deletions.
    48 changes: 1 addition & 47 deletions esy.json
    Original file line number Diff line number Diff line change
    @@ -45,52 +45,6 @@
    }
    }
    },
    "@opam/ocaml-secondary-compiler": "esy-ocaml/ocaml#a5a77246b60f3",
    "@opam/ocamlfind-secondary": {
    "source": "http://download.camlcity.org/download/findlib-1.8.1.tar.gz#d3fe18a261c453176e67884b0b475c3a82b68397",
    "override": {
    "buildsInSource": true,
    "build": [
    [
    "bash",
    "-c",
    "#{os == 'windows' ? 'patch -p1 < findlib-1.8.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"],
    "bash gen-findlib-conf.sh"
    ],
    "install": [
    ["make", "install"],
    ["mkdir", "-p", "#{self.toplevel}"],
    [
    "install",
    "-m",
    "0644",
    "src/findlib/topfind",
    "#{self.toplevel}/topfind"
    ]
    ],
    "exportedEnv": {
    "OCAML_TOPLEVEL_PATH": {
    "val": "#{self.toplevel}",
    "scope": "global"
    }
    }
    }
    }
    "@opam/ocaml-secondary-compiler": "esy-ocaml/ocaml#a5a77246b60f3"
    }
    }
  7. ManasJayanth created this gist Feb 21, 2020.
    96 changes: 96 additions & 0 deletions esy.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,96 @@
    {
    "dependencies": {
    "ocaml": "4.6.x",
    "@esy-ocaml/reason": "*",
    "@opam/ocamlformat": "0.12",
    "@opam/ocaml-lsp-server": "ocaml/ocaml-lsp:ocaml-lsp-server.opam#0fc8955eb39"
    },
    "resolutions": {
    "@opam/dune": {
    "source": "https://github.com/ocaml/dune/releases/download/2.3.1/dune-2.3.1.tbz#22a8afefc448d4d0b926789d5dea6e1771808936",
    "override": {
    "buildsInSource": true,
    "build": [
    ["ocaml", "configure.ml", "--libdir", "#{self.lib}"],
    ["ocaml", "bootstrap.ml"],
    ["./dune.exe", "build", "-p", "dune", "--profile", "dune-bootstrap"]
    ],
    "install": "esy-installer dune.install",
    "buildEnv": {
    "OCAMLFIND_CONF": "$SECONDARY_OCAMLFIND_CONF"
    },
    "dependencies": {
    "dump-secondary-toolchain-findlib-conf": "*"
    }
    }
    },
    "dump-secondary-toolchain-findlib-conf": {
    "source": "prometheansacrifice/esy-secondary-toolchain-findlib-conf#9f7bf096909d95",
    "override": {
    "buildsInSource": true,
    "build": [
    "bash gen-findlib-conf.sh #{@opam/ocaml-secondary-compiler.install}"
    ],
    "install": [
    "cp ocaml-secondary-compiler.conf #{self.lib / 'findlib.conf'}"
    ],
    "exportedEnv": {
    "SECONDARY_OCAMLFIND_CONF": {
    "scope": "global",
    "val": "#{self.lib / 'findlib.conf'}"
    }
    },
    "dependencies": {
    "@opam/ocaml-secondary-compiler": "*"
    }
    }
    },
    "@opam/ocaml-secondary-compiler": "esy-ocaml/ocaml#a5a77246b60f3",
    "@opam/ocamlfind-secondary": {
    "source": "http://download.camlcity.org/download/findlib-1.8.1.tar.gz#d3fe18a261c453176e67884b0b475c3a82b68397",
    "override": {
    "buildsInSource": true,
    "build": [
    [
    "bash",
    "-c",
    "#{os == 'windows' ? 'patch -p1 < findlib-1.8.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"],
    "bash gen-findlib-conf.sh"
    ],
    "install": [
    ["make", "install"],
    ["mkdir", "-p", "#{self.toplevel}"],
    [
    "install",
    "-m",
    "0644",
    "src/findlib/topfind",
    "#{self.toplevel}/topfind"
    ]
    ],
    "exportedEnv": {
    "OCAML_TOPLEVEL_PATH": {
    "val": "#{self.toplevel}",
    "scope": "global"
    }
    }
    }
    }
    }
    }