Skip to content

Commit

Permalink
Move opam files to subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanzab committed Nov 11, 2024
1 parent 7fe669a commit f7b3691
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 7 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# dune files
_build
*.opam
5 changes: 3 additions & 2 deletions dune-project
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
(lang dune 3.4)
(lang dune 3.8)
(name hello)
(license MIT-0)

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

(cram enable)

Expand Down
4 changes: 0 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@
];

strictDeps = true;

preBuild = ''
dune build hello.opam
'';
};
});

Expand Down
22 changes: 22 additions & 0 deletions opam/hello.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "Friendly greetings"
license: "MIT-0"
depends: [
"dune" {>= "3.8"}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]

0 comments on commit f7b3691

Please sign in to comment.