Change nix-shell templates to import <nixpkgs> by default

This commit is contained in:
Evie Litherland-Smith 2024-04-01 15:33:01 +01:00
parent c1f0521488
commit f19b89e423

View file

@ -176,7 +176,7 @@ nix-mode
"platforms = platforms." "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> "}" (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 "<nixpkgs>") " {};"
n> "mkShellNoCC {" n> "mkShellNoCC {"
n> "packages = [" n> "packages = ["
n> "(" (p "python3") ".withPackages" n> "(" (p "python3") ".withPackages"
@ -184,7 +184,7 @@ nix-mode
n> q n> q
n> "];" n> "];"
n> "}") n> "}")
(poetryshell "with import (builtins.getFlake \"github:nixos/nixpkgs" (p "/23.11")"\") {};" (poetryshell "with import " (p "<nixpkgs>") " {};"
n "with (builtins.getFlake \"github:nix-community/poetry2nix\").lib.mkPoetry2Nix {inherit pkgs;};" n "with (builtins.getFlake \"github:nix-community/poetry2nix\").lib.mkPoetry2Nix {inherit pkgs;};"
n> "(mkPoetryEnv rec {" n> "(mkPoetryEnv rec {"
n> "projectDir = ./.;" n> "projectDir = ./.;"