From f19b89e423f947a8fdea05a37082418f3df974dd Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 1 Apr 2024 15:33:01 +0100 Subject: [PATCH] Change nix-shell templates to import by default --- templates | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates b/templates index 8865f8e..3a0467d 100644 --- a/templates +++ b/templates @@ -176,7 +176,7 @@ nix-mode "platforms = platforms." (p (completing-read "Platform: " '("all" "allBut" "arm" "cygwin" "darwin" "freebsd" "gnu" "i686" "illumos" "linux" "mesaPlatforms" "mips" "netbsd" "none" "openbsd" "unix" "x86"))) ";" n> q "};" n> "}" ) -(pythonshell "with import (builtins.getFlake \"github:nixos/nixpkgs" (p "/23.11")"\") {};" +(pythonshell "with import " (p "") " {};" n> "mkShellNoCC {" n> "packages = [" n> "(" (p "python3") ".withPackages" @@ -184,7 +184,7 @@ nix-mode n> q n> "];" n> "}") -(poetryshell "with import (builtins.getFlake \"github:nixos/nixpkgs" (p "/23.11")"\") {};" +(poetryshell "with import " (p "") " {};" n "with (builtins.getFlake \"github:nix-community/poetry2nix\").lib.mkPoetry2Nix {inherit pkgs;};" n> "(mkPoetryEnv rec {" n> "projectDir = ./.;"