Skip to content
Snippets Groups Projects
Commit 2686091c authored by Virgile Prevosto's avatar Virgile Prevosto
Browse files

[nix] put opam-selection.nix in a writable directory

parent 844eba01
No related branches found
No related tags found
No related merge requests found
# paramaterised derivation with dependencies injected (callPackage style)
{ pkgs, stdenv, src ? ../., opam2nix, ocaml ? "ocaml-ng.ocamlPackages_4_08.ocaml", plugins ? { } }:
let opam-selection = {
let mydir = builtins.getEnv("PWD");
opam-selection = {
inherit ocaml;
selection = ./opam-selection.nix;
selection = "${mydir}/opam-selection.nix";
};
mk_opam_derivations = packages: opam2nix.resolve opam-selection packages;
opamPackages =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment