This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
6
unikernel/duniverse/mirage/test/opam-monorepo/dune
Normal file
6
unikernel/duniverse/mirage/test/opam-monorepo/dune
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
(cram
|
||||
(package mirage)
|
||||
(deps
|
||||
unikernel.opam
|
||||
(source_tree mini-opam-overlays/)
|
||||
(source_tree mini-opam-repository/)))
|
||||
41
unikernel/duniverse/mirage/test/opam-monorepo/lock.t
Normal file
41
unikernel/duniverse/mirage/test/opam-monorepo/lock.t
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
$ opam-monorepo lock --require-cross-compile
|
||||
==> Using 1 locally scanned package as the target.
|
||||
==> Found 8 opam dependencies for the target package.
|
||||
==> Querying opam database for their metadata and Dune compatibility.
|
||||
==> Calculating exact pins for each of them.
|
||||
==> Wrote lockfile with 4 entries to $TESTCASE_ROOT/unikernel.opam.locked. You can now run opam monorepo pull to fetch their sources.
|
||||
|
||||
$ cat unikernel.opam.locked
|
||||
opam-version: "2.0"
|
||||
synopsis: "opam-monorepo generated lockfile"
|
||||
maintainer: "opam-monorepo"
|
||||
depends: [
|
||||
"dune" {= "3.0.0"}
|
||||
"fmt" {= "0.9.0+dune" & ?vendor}
|
||||
"gmp" {= "6.2.9+dune" & ?vendor}
|
||||
"mirage-runtime" {= "4.0.0" & ?vendor}
|
||||
"ocaml-base-compiler" {= "4.13.1"}
|
||||
"ocaml-solo5" {= "0.8.0"}
|
||||
"solo5" {= "0.7.1"}
|
||||
"zarith" {= "1.12+dune+mirage" & ?vendor}
|
||||
]
|
||||
pin-depends: [
|
||||
["fmt.0.9.0+dune" "https://fmt.src"]
|
||||
["gmp.6.2.9+dune" "https://gmp.src"]
|
||||
["mirage-runtime.4.0.0" "https://mirage.src"]
|
||||
["zarith.1.12+dune+mirage" "https://github.com/ocaml/zarith.git"]
|
||||
]
|
||||
x-opam-monorepo-cli-args: ["--require-cross-compile"]
|
||||
x-opam-monorepo-duniverse-dirs: [
|
||||
["https://fmt.src" "fmt"]
|
||||
["https://github.com/ocaml/zarith.git" "zarith"]
|
||||
["https://gmp.src" "gmp"]
|
||||
["https://mirage.src" "mirage"]
|
||||
]
|
||||
x-opam-monorepo-opam-provided: ["ocaml-solo5"]
|
||||
x-opam-monorepo-opam-repositories: [
|
||||
"file://$OPAM_MONOREPO_CWD/mini-opam-overlays"
|
||||
"file://$OPAM_MONOREPO_CWD/mini-opam-repository"
|
||||
]
|
||||
x-opam-monorepo-root-packages: ["unikernel"]
|
||||
x-opam-monorepo-version: "0.3"
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
opam-version: "2.0"
|
||||
depends: ["dune"]
|
||||
dev-repo: "fmt"
|
||||
url {
|
||||
src: "https://fmt.src"
|
||||
}
|
||||
build: [
|
||||
["dune" "build"]
|
||||
]
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
opam-version: "2.0"
|
||||
depends: ["dune" "gmp"]
|
||||
dev-repo: "zarith"
|
||||
url {
|
||||
src: "https://github.com/ocaml/zarith.git"
|
||||
}
|
||||
tags: [ "cross-compile" ]
|
||||
build: [
|
||||
["dune" "build"]
|
||||
]
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
opam-version: "2.0"
|
||||
depends: ["dune"]
|
||||
dev-repo: "zarith"
|
||||
url {
|
||||
src: "https://zarith.src"
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
opam-version: "2.0"
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
opam-version: "2.0"
|
||||
depends: ["ocaml-base-compiler"]
|
||||
dev-repo: ""
|
||||
url {
|
||||
src: "https://mirage.src"
|
||||
}
|
||||
build: [
|
||||
[make]
|
||||
]
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
opam-version: "2.0"
|
||||
depends: ["dune"]
|
||||
dev-repo: "gmp"
|
||||
url {
|
||||
src: "https://gmp.src"
|
||||
}
|
||||
build: [
|
||||
["dune" "build"]
|
||||
]
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
opam-version: "2.0"
|
||||
depends: ["dune"]
|
||||
dev-repo: "mirage"
|
||||
url {
|
||||
src: "https://mirage.src"
|
||||
}
|
||||
build: [
|
||||
["dune" "build"]
|
||||
]
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
opam-version: "2.0"
|
||||
depends: []
|
||||
dev-repo: "base"
|
||||
url {
|
||||
src: "https://base.src"
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
opam-version: "2.0"
|
||||
depends: ["solo5"]
|
||||
dev-repo: "ocaml-solo5"
|
||||
url {
|
||||
src: "https://ocaml-solo5.src"
|
||||
}
|
||||
build: [
|
||||
["dune" "build"]
|
||||
]
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
opam-version: "2.0"
|
||||
depends: []
|
||||
dev-repo: "solo5"
|
||||
url {
|
||||
src: "https://solo5.src"
|
||||
}
|
||||
build: [
|
||||
["dune" "build"]
|
||||
]
|
||||
|
|
@ -0,0 +1 @@
|
|||
opam-version: "2.0"
|
||||
35
unikernel/duniverse/mirage/test/opam-monorepo/unikernel.opam
Normal file
35
unikernel/duniverse/mirage/test/opam-monorepo/unikernel.opam
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
opam-version: "2.0"
|
||||
name: "noop"
|
||||
maintainer: "dummy"
|
||||
authors: "dummy"
|
||||
homepage: "dummy"
|
||||
bug-reports: "dummy"
|
||||
dev-repo: "git://dummy"
|
||||
synopsis: "Unikernel noop - switch dependencies"
|
||||
description: """
|
||||
It assumes that local dependencies are already
|
||||
fetched.
|
||||
"""
|
||||
|
||||
build: [
|
||||
[ "test" "configure" ]
|
||||
[ "test" "build" ]
|
||||
]
|
||||
|
||||
install: [
|
||||
[ "cp" "dist/f0.exe" "%{bin}%/f0" ]
|
||||
]
|
||||
|
||||
depends: [
|
||||
"ocaml-solo5"
|
||||
"mirage-runtime"
|
||||
"fmt"
|
||||
"zarith"
|
||||
]
|
||||
|
||||
x-opam-monorepo-opam-provided: [ "ocaml-solo5" ]
|
||||
|
||||
x-opam-monorepo-opam-repositories: [
|
||||
"file://$OPAM_MONOREPO_CWD/mini-opam-overlays"
|
||||
"file://$OPAM_MONOREPO_CWD/mini-opam-repository"
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue