From f7bb5d7aaf309bdd57717c8f2187238bfa2c7448 Mon Sep 17 00:00:00 2001 From: DavHau Date: Sat, 2 Mar 2024 11:55:15 +0700 Subject: [PATCH] devshells: cleanup --- devShell-python.nix | 1 - devShell.nix | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/devShell-python.nix b/devShell-python.nix index 3b5f8b65..d5ac4680 100644 --- a/devShell-python.nix +++ b/devShell-python.nix @@ -76,7 +76,6 @@ export PATH="$tmp_path/python/bin:$PATH" export PYTHONPATH="''${PYTHONPATH:+$PYTHONPATH:}$tmp_path/python/${pythonWithDeps.sitePackages}" - # export PYTHONPATH="$tmp_path/python/${pythonWithDeps.sitePackages}" for package in "''${localPackages[@]}"; do export PYTHONPATH="$package:$PYTHONPATH" diff --git a/devShell.nix b/devShell.nix index ea8fa79d..c3f6eba7 100644 --- a/devShell.nix +++ b/devShell.nix @@ -13,9 +13,9 @@ green = ''\033[32m''; }; - # a python program using argparse to enable and disable dev shells - # synopsis: select-shell enable|disable shell-name - # enabled devshells are written as a newline separated list into ./.direnv/selected-shells + # A python program to switch between dev-shells + # usage: select-shell shell-name + # the currently enabled dev-shell gets stored in ./.direnv/selected-shell select-shell = writers.writePython3Bin "select-shell" { flakeIgnore = [ "E501" ]; @@ -23,7 +23,6 @@ in { devShells.default = pkgs.mkShell { - # inputsFrom = [ self'.devShells.python ]; packages = [ select-shell pkgs.tea