"$(nix-build --no-out-link ./opam2nix.nix)"/bin/opam2nix resolve ./mytest.opam
error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)
+ /nix/store/1zb2as5f9iqyibwy65ln7b023522sg90-ocaml4.12.0-opam2nix-1.1.0/bin/opam2nix resolve ./mytest.opam
Using current <nixpkgs> ocaml version, pass --ocaml-version to override
Fetching...
Importing opam-repository a349ee914e267237677546599e718e417aaae14d into nix store...
Fatal error: exception (Failure "Couldn't extract ocaml version from nixpkgs, pass --ocaml-version")
What's going on here? what would have to happen to get a better error message? is passing --ocaml-version minimally required behavior?
In my head, I thought omitting --ocaml-version would infer the latest possible ocaml in conformance to packages in mytest.opam.
"$(nix-build --no-out-link ./opam2nix.nix)"/bin/opam2nix resolve ./mytest.opamWhat's going on here? what would have to happen to get a better error message? is passing
--ocaml-versionminimally required behavior?In my head, I thought omitting
--ocaml-versionwould infer the latest possibleocamlin conformance to packages inmytest.opam.