Improve the nix shell even more

This commit is contained in:
Sumner Evans
2020-11-26 00:06:16 -07:00
parent e5624cb4d0
commit fa81f61a2c
2 changed files with 9 additions and 5 deletions

8
.envrc
View File

@@ -1,10 +1,10 @@
use nix
# Run poetry install if there's not a virtualenv already.
if [[ ! -d .venv ]]; then
echo "No virtualenv found, installing dependencies using Poetry..."
poetry install -E chromecast -E keyring -E server
fi
# if [[ ! -d .venv ]]; then
# echo "No virtualenv found, installing dependencies using Poetry..."
# poetry install -E chromecast -E keyring -E server
# fi
# Activate the virtualenv
source .venv/bin/activate

View File

@@ -9,7 +9,7 @@ pkgs.mkShell {
buildInputs = [
bashInteractive
flatpak
# flatpak-builder
flatpak-builder
gcc
git
glib
@@ -36,8 +36,12 @@ pkgs.mkShell {
];
shellHook = ''
set -x
export LD_LIBRARY_PATH=${pkgs.mpv}/lib
export XDG_DATA_DIRS="$GSETTINGS_SCHEMA_PATH:${pkgs.arc-theme}/share:${pkgs.arc-icon-theme}/share"
export SOURCE_DATE_EPOCH=315532800
rm -rf .venv
poetry install -E chromecast -E keyring -E server
set +x
'';
}