Skip to content

Commit 1dcac55

Browse files
committed
feat(templates): add nix-shell framework and template
Add support for nix-shell as a new framework option, including a corresponding template file for setting up a development environment. This enhancement allows users to easily create and manage nix-shell environments for their projects.
1 parent e6e7a58 commit 1dcac55

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

src/templates.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,18 @@ export const FRAMEWORKS: Framework[] = [
4242
},
4343
],
4444
},
45+
{
46+
name: "nix",
47+
display: "nix",
48+
color: yellow,
49+
variants: [
50+
{
51+
name: "nix-shell",
52+
display: "nix shell",
53+
color: blue,
54+
},
55+
],
56+
},
4557
{
4658
name: "nestjs",
4759
display: "NestJS",
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{ pkgs ? import <nixpkgs> {} }:
2+
3+
pkgs.mkShell {
4+
buildInputs = with pkgs; [
5+
# Development tools
6+
git
7+
gnumake
8+
9+
# Add your project-specific dependencies here
10+
# For example:
11+
# nodejs
12+
# python3
13+
# rustc
14+
# cargo
15+
];
16+
17+
shellHook = ''
18+
echo "Welcome to development environment!"
19+
# Add any shell initialization commands here
20+
'';
21+
}

0 commit comments

Comments
 (0)