Skip to content

Commit

Permalink
Update environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaczero committed Jan 15, 2024
1 parent e6517d6 commit ac7c353
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
'';
Expand Down

0 comments on commit ac7c353

Please sign in to comment.