Skip to content

Small CLI tool to quickly import and store shell.nix templates.

License

Notifications You must be signed in to change notification settings

leonwind/nix-shell-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nix-Shell-Generator

Usages

Store an existing shell.nix

Go into your project directory with an existing shell.nix file and run

nix-shell-generator --add nix-shell-descriptive-name

E.g. for a shell.nix file for a C++ project using GCC, cmake, boost, valgrind, gdb you can run

nix-shell-generator --add gcc-boost-debugger

You can also add an --path path/to/shell.nix argument if your shell.nix is not in your current working directory.

Add existing shell.nix into your project

Run nix-shell-generator --get to open a fuzzy finder to search and select your shell.nix template. The template gets renamed and copied to ./shell.nix.

--get example

Installation

Install by running

go install github.com/leonwind/nix-shell-generator/cmd/nix-shell-generator@06d5c91

Your shell.nix templates will be stored in ~/.config/nix-shell-generator/.

For more practical usage, set up a shell alias: alias nsg = "nix-shell-generator"

About

Small CLI tool to quickly import and store shell.nix templates.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages