Skip to content

Commit

Permalink
dune: enable generate_opam_files option
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <[email protected]>
  • Loading branch information
smorimoto committed Dec 6, 2024
1 parent 519c576 commit e7db5b9
Show file tree
Hide file tree
Showing 3 changed files with 140 additions and 57 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ jobs:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- macos-latest
- windows-latest
ocaml-compiler:
- 5
- 4
Expand Down Expand Up @@ -60,10 +61,9 @@ jobs:
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: 4
opam-pin: false
ocaml-compiler: 5

- run: opam install mirage
- run: opam install "mirage<4.7.0"
- run: opam exec -- mirage configure -t ${{ matrix.mode }}
- run: opam exec -- make depend
- run: opam exec -- make
67 changes: 67 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
@@ -1,3 +1,70 @@
(lang dune 2.7)

(name tcpip)

(formatting disabled)
(generate_opam_files true)

(license ISC)
(authors
"Anil Madhavapeddy"
"Balraj Singh"
"David Scott"
"Gabor Pali"
"Hannes Mehnert"
"Haris Rotsos"
"Kia"
"Luke Dunstan"
"Magnus Skjegstad"
"Mindy Preston"
"Nicolas Ojeda Bar"
"Pablo Polvorin"
"Richard Mortier"
"Thomas Gazagnaire"
"Thomas Leonard"
"Tim Cuthbertson"
"Vincent Bernardoff"
"lnmx"
"pqwy")
(maintainers "[email protected]")
(source (github mirage/mirage-tcpip))

(package
(name tcpip)
(synopsis "OCaml TCP/IP networking stack, used in MirageOS")
(description "`mirage-tcpip` provides a networking stack for the [Mirage operating system](https://mirage.io). It provides implementations for the following module types (which correspond with the similarly-named protocols): IP (via the IPv4 and IPv6 modules), ICMP, UDP, TCP")
(tags ("org:mirage"))
(depends
(ocaml (>= 4.08.0))
(arp (>= 3.0.0))
(cmdliner (>= 1.1.0))
(cstruct (>= 6.0.0))
cstruct-lwt
duration
(ethernet (>= 3.0.0))
(fmt (>= 0.8.7))
(ipaddr (>= 5.6.0))
ipaddr-cstruct
(logs (>= 0.6.0))
(lru (>= 0.3.0))
(lwt (>= 4.0.0))
lwt-dllist
(macaddr (>= 4.0.0))
macaddr-cstruct
metrics
(mirage-clock (>= 3.0.0))
(mirage-crypto-rng-mirage (>= 1.0.0))
(mirage-flow (>= 4.0.0))
(mirage-net (>= 3.0.0))
(mirage-time (>= 2.0.0))
(randomconv (>= 0.2.0))
(bisect_ppx (and :dev (> 2.5.0)))
(alcotest (and :with-test (>= 1.5.0)))
(mirage-clock-unix (and :with-test (>= 3.0.0)))
(mirage-crypto-rng (and :with-test (>= 1.0.0)))
(mirage-vnetif (and :with-test (>= 0.6.2)))
(pcap-format :with-test))
(conflicts
ocaml-freestanding
(mirage-xen (< 6.0.0))
(result (< 1.5))))
122 changes: 69 additions & 53 deletions tcpip.opam
Original file line number Diff line number Diff line change
@@ -1,68 +1,84 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://github.com/mirage/mirage-tcpip"
dev-repo: "git+https://github.com/mirage/mirage-tcpip.git"
bug-reports: "https://github.com/mirage/mirage-tcpip/issues"
doc: "https://mirage.github.io/mirage-tcpip/"
synopsis: "OCaml TCP/IP networking stack, used in MirageOS"
description:
"`mirage-tcpip` provides a networking stack for the [Mirage operating system](https://mirage.io). It provides implementations for the following module types (which correspond with the similarly-named protocols): IP (via the IPv4 and IPv6 modules), ICMP, UDP, TCP"
maintainer: ["[email protected]"]
authors: [
"Anil Madhavapeddy" "Balraj Singh" "Richard Mortier" "Nicolas Ojeda Bar"
"Thomas Gazagnaire" "Vincent Bernardoff" "Magnus Skjegstad" "Mindy Preston"
"Thomas Leonard" "David Scott" "Gabor Pali" "Hannes Mehnert" "Haris Rotsos"
"Kia" "Luke Dunstan" "Pablo Polvorin" "Tim Cuthbertson" "lnmx" "pqwy" ]
"Anil Madhavapeddy"
"Balraj Singh"
"David Scott"
"Gabor Pali"
"Hannes Mehnert"
"Haris Rotsos"
"Kia"
"Luke Dunstan"
"Magnus Skjegstad"
"Mindy Preston"
"Nicolas Ojeda Bar"
"Pablo Polvorin"
"Richard Mortier"
"Thomas Gazagnaire"
"Thomas Leonard"
"Tim Cuthbertson"
"Vincent Bernardoff"
"lnmx"
"pqwy"
]
license: "ISC"
tags: ["org:mirage"]

build: [
["dune" "subst"] {dev}
["dune" "build" "-p" name "-j" jobs]
["dune" "runtest" "-p" name "-j" jobs] {with-test}
]
conflicts: [
"mirage-xen" {< "6.0.0"}
"ocaml-freestanding"
"result" {< "1.5"}
]
homepage: "https://github.com/mirage/mirage-tcpip"
bug-reports: "https://github.com/mirage/mirage-tcpip/issues"
depends: [
"dune" {>= "2.7.0"}
"bisect_ppx" {dev & >= "2.5.0"}
"dune" {>= "2.7"}
"ocaml" {>= "4.08.0"}
"arp" {>= "3.0.0"}
"cmdliner" {>= "1.1.0"}
"cstruct" {>= "6.0.0"}
"cstruct-lwt"
"mirage-net" {>= "3.0.0"}
"mirage-clock" {>= "3.0.0"}
"mirage-crypto-rng-mirage" {>= "1.0.0"}
"mirage-time" {>= "2.0.0"}
"ipaddr" {>= "5.6.0"}
"macaddr" {>="4.0.0"}
"macaddr-cstruct"
"duration"
"ethernet" {>= "3.0.0"}
"fmt" {>= "0.8.7"}
"ipaddr" {>= "5.6.0"}
"ipaddr-cstruct"
"logs" {>= "0.6.0"}
"lru" {>= "0.3.0"}
"lwt" {>= "4.0.0"}
"lwt-dllist"
"logs" {>= "0.6.0"}
"duration"
"randomconv" {>= "0.2.0"}
"ethernet" {>= "3.0.0"}
"arp" {>= "3.0.0"}
"macaddr" {>= "4.0.0"}
"macaddr-cstruct"
"metrics"
"mirage-clock" {>= "3.0.0"}
"mirage-crypto-rng-mirage" {>= "1.0.0"}
"mirage-flow" {>= "4.0.0"}
"mirage-vnetif" {with-test & >= "0.6.2"}
"alcotest" {with-test & >="1.5.0"}
"pcap-format" {with-test}
"mirage-net" {>= "3.0.0"}
"mirage-time" {>= "2.0.0"}
"randomconv" {>= "0.2.0"}
"bisect_ppx" {dev & > "2.5.0"}
"alcotest" {with-test & >= "1.5.0"}
"mirage-clock-unix" {with-test & >= "3.0.0"}
"mirage-crypto-rng" {with-test & >= "1.0.0"}
"ipaddr-cstruct"
"macaddr-cstruct"
"lru" {>= "0.3.0"}
"metrics"
"cmdliner" {>= "1.1.0"}
"mirage-vnetif" {with-test & >= "0.6.2"}
"pcap-format" {with-test}
"odoc" {with-doc}
]
synopsis: "OCaml TCP/IP networking stack, used in MirageOS"
description: """
`mirage-tcpip` provides a networking stack for the [Mirage operating
system](https://mirage.io). It provides implementations for the following module types
(which correspond with the similarly-named protocols):

* IP (via the IPv4 and IPv6 modules)
* ICMP
* UDP
* TCP
"""
conflicts: [
"ocaml-freestanding"
"mirage-xen" {< "6.0.0"}
"result" {< "1.5"}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/mirage/mirage-tcpip.git"

0 comments on commit e7db5b9

Please sign in to comment.