Update Zeus shells

This commit is contained in:
Charlotte Van Petegem 2022-10-28 10:53:14 +02:00
parent a546018b8d
commit 220421c5df
No known key found for this signature in database
GPG key ID: 019E764B7184435A
2 changed files with 43 additions and 0 deletions

42
shells/tap.nix Normal file
View file

@ -0,0 +1,42 @@
{ pkgs, inputs }: pkgs.devshell.mkShell {
name = "Tap";
imports = [ "${inputs.devshell}/extra/language/c.nix" ];
packages = with pkgs; [
(pkgs.lowPrio binutils)
imagemagick
file
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 ];
};
}