From ac7c353579231717173827da73cfdad0509be32d Mon Sep 17 00:00:00 2001 From: Kamil Monicz Date: Mon, 15 Jan 2024 08:39:15 +0100 Subject: [PATCH] Update environment --- shell.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/shell.nix b/shell.nix index a9f1d2b..1a9f543 100644 --- a/shell.nix +++ b/shell.nix @@ -3,7 +3,7 @@ let # Currently using nixpkgs-23.11-darwin # Get latest hashes from https://status.nixos.org/ - pkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/207b14c6bd1065255e6ecffcfe0c36a7b54f8e48.tar.gz") { }; + pkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/c327647a296df737bd187bd5fa51a62ee548d5ab.tar.gz") { }; libraries' = with pkgs; [ # Base libraries @@ -81,6 +81,14 @@ let source .venv/bin/activate export LD_LIBRARY_PATH="${lib.makeLibraryPath libraries'}" + + # Development environment variables + if [ -f .env ]; then + echo "Loading .env file" + set -o allexport + source .env set + +o allexport + fi '' + lib.optionalString (!isDevelopment) '' make-version '';