From 32fd85a4d3a83dee82a8fe7b935bfe3244b12ccc Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Mon, 16 Aug 2021 01:01:42 -0400 Subject: [PATCH] optimize pip install --- modules/cli.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/cli.nix b/modules/cli.nix index 135554b..13ec996 100644 --- a/modules/cli.nix +++ b/modules/cli.nix @@ -45,9 +45,7 @@ in (writeShellScriptBin "nix-roots" "nix-store --gc --print-roots | grep -v ^/proc/") - (writeShellScriptBin "pip_install" '' - exec nix shell 'nixpkgs/${system-rev}#python3.pkgs.pip' --command pip install --user -UI pip setuptools - '') + (writeShellScriptBin "pip-install" "exec python -m ensurepip --user") (writeShellScriptBin "nixos-check-reboot" '' set -e