Move shells to separate files
This commit is contained in:
parent
7d60967e74
commit
fbe31586f9
10 changed files with 211 additions and 205 deletions
40
shells/tab.nix
Normal file
40
shells/tab.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ pkgs, inputs }: pkgs.devshell.mkShell {
|
||||
name = "Tab";
|
||||
imports = [ "${inputs.devshell}/extra/language/c.nix" ];
|
||||
packages = with pkgs; [
|
||||
(pkgs.lowPrio binutils)
|
||||
findutils
|
||||
gnumake
|
||||
ruby_3_1
|
||||
nodejs
|
||||
yarn
|
||||
];
|
||||
env = [
|
||||
{ name = "GEM_HOME"; eval = "$PRJ_DATA_DIR/bundle/$(ruby -e 'puts RUBY_VERSION')"; }
|
||||
{ name = "PATH"; prefix = "$GEM_HOME/bin"; }
|
||||
];
|
||||
commands = [
|
||||
{
|
||||
name = "server-support";
|
||||
category = "general commands";
|
||||
help = "Run everything required for a server";
|
||||
command = ''
|
||||
bundle install
|
||||
'';
|
||||
}
|
||||
{
|
||||
name = "server";
|
||||
category = "general commands";
|
||||
help = "Run everything";
|
||||
command = ''
|
||||
server-support
|
||||
rails s
|
||||
'';
|
||||
}
|
||||
];
|
||||
language.c = {
|
||||
compiler = pkgs.gcc;
|
||||
includes = [ pkgs.sqlite pkgs.libmysqlclient pkgs.zlib ];
|
||||
libraries = [ pkgs.sqlite pkgs.libmysqlclient pkgs.zlib ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue