Improve the nix shell even more
This commit is contained in:
8
.envrc
8
.envrc
@@ -1,10 +1,10 @@
|
|||||||
use nix
|
use nix
|
||||||
|
|
||||||
# Run poetry install if there's not a virtualenv already.
|
# Run poetry install if there's not a virtualenv already.
|
||||||
if [[ ! -d .venv ]]; then
|
# if [[ ! -d .venv ]]; then
|
||||||
echo "No virtualenv found, installing dependencies using Poetry..."
|
# echo "No virtualenv found, installing dependencies using Poetry..."
|
||||||
poetry install -E chromecast -E keyring -E server
|
# poetry install -E chromecast -E keyring -E server
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
# Activate the virtualenv
|
# Activate the virtualenv
|
||||||
source .venv/bin/activate
|
source .venv/bin/activate
|
||||||
|
@@ -9,7 +9,7 @@ pkgs.mkShell {
|
|||||||
buildInputs = [
|
buildInputs = [
|
||||||
bashInteractive
|
bashInteractive
|
||||||
flatpak
|
flatpak
|
||||||
# flatpak-builder
|
flatpak-builder
|
||||||
gcc
|
gcc
|
||||||
git
|
git
|
||||||
glib
|
glib
|
||||||
@@ -36,8 +36,12 @@ pkgs.mkShell {
|
|||||||
];
|
];
|
||||||
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
|
set -x
|
||||||
export LD_LIBRARY_PATH=${pkgs.mpv}/lib
|
export LD_LIBRARY_PATH=${pkgs.mpv}/lib
|
||||||
export XDG_DATA_DIRS="$GSETTINGS_SCHEMA_PATH:${pkgs.arc-theme}/share:${pkgs.arc-icon-theme}/share"
|
export XDG_DATA_DIRS="$GSETTINGS_SCHEMA_PATH:${pkgs.arc-theme}/share:${pkgs.arc-icon-theme}/share"
|
||||||
export SOURCE_DATE_EPOCH=315532800
|
export SOURCE_DATE_EPOCH=315532800
|
||||||
|
rm -rf .venv
|
||||||
|
poetry install -E chromecast -E keyring -E server
|
||||||
|
set +x
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user