From 305215806e71f12a72b2c9066012497c71e2e969 Mon Sep 17 00:00:00 2001 From: Alessandro Candido Date: Thu, 25 Jan 2024 17:57:17 +0100 Subject: [PATCH] feat(nix): Export convenience env var --- flake.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 4cacbf960..0cec7f871 100644 --- a/flake.nix +++ b/flake.nix @@ -40,9 +40,17 @@ inherit inputs pkgs; modules = [ - { + ({ + pkgs, + config, + ... + }: { packages = with pkgs; [pre-commit poethepoet jupyter stdenv.cc.cc.lib zlib]; + env = { + QIBOLAB_PLATFORMS = (dirOf config.env.DEVENV_ROOT) + "/qibolab_platforms_qrc"; + }; + languages.c = { enable = true; }; @@ -66,7 +74,7 @@ enable = true; channel = "stable"; }; - } + }) ]; }; });