Skip to content

Commit 6e384fe

Browse files
committed
Move opam files to subdirectory
1 parent 7fe669a commit 6e384fe

File tree

4 files changed

+28
-6
lines changed

4 files changed

+28
-6
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
# dune files
22
_build
3-
*.opam

dune-project

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
(lang dune 3.4)
1+
(lang dune 3.8)
22
(name hello)
33
(license MIT-0)
44

55
; https://dune.readthedocs.io/en/stable/opam.html#generating-opam-files
6-
(generate_opam_files true)
6+
(generate_opam_files)
7+
(opam_file_location inside_opam_directory)
78

89
(cram enable)
910

flake.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@
5555

5656
strictDeps = true;
5757

58-
preBuild = ''
59-
dune build hello.opam
60-
'';
58+
# preBuild = ''
59+
# dune build hello.opam
60+
# '';
6161
};
6262
});
6363

opam/hello.opam

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# This file is generated by dune, edit dune-project instead
2+
opam-version: "2.0"
3+
synopsis: "Friendly greetings"
4+
license: "MIT-0"
5+
depends: [
6+
"dune" {>= "3.8"}
7+
"odoc" {with-doc}
8+
]
9+
build: [
10+
["dune" "subst"] {dev}
11+
[
12+
"dune"
13+
"build"
14+
"-p"
15+
name
16+
"-j"
17+
jobs
18+
"@install"
19+
"@runtest" {with-test}
20+
"@doc" {with-doc}
21+
]
22+
]

0 commit comments

Comments
 (0)