Skip to content

Commit

Permalink
Add buildInput argument to buildDunePackage to template
Browse files Browse the repository at this point in the history
This confused me when getting started and trying to add opam dependencies. I only figured it out after looking up the source of the buildDunePackage function, so discoverability is kind of low here for nix newbies
  • Loading branch information
saolof authored Sep 21, 2023
1 parent e4ae713 commit 0eba3b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@
duneVersion = "3";
src = sources.ocaml;

buildInputs = [
# Ocaml package dependencies needed to build go here.
];

strictDeps = true;

preBuild = ''
Expand Down

0 comments on commit 0eba3b3

Please sign in to comment.