From 2686091c6bf1c15f06eebcd2824cac4f8e66ee57 Mon Sep 17 00:00:00 2001 From: Virgile Prevosto <virgile.prevosto@m4x.org> Date: Thu, 22 Apr 2021 19:47:02 +0200 Subject: [PATCH] [nix] put opam-selection.nix in a writable directory --- nix/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nix/default.nix b/nix/default.nix index c6ccaa3bd6e..9484f9c80ec 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -1,9 +1,10 @@ # 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 = -- GitLab