Use added ruby support in devshell
This commit is contained in:
parent
15c5fcaf15
commit
2e49db495a
5 changed files with 18 additions and 51 deletions
|
@ -1,6 +1,6 @@
|
|||
{ pkgs, inputs }: pkgs.devshell.mkShell {
|
||||
name = "Tab";
|
||||
imports = [ "${inputs.devshell}/extra/language/c.nix" ];
|
||||
imports = [ "${inputs.devshell}/extra/language/ruby.nix" ];
|
||||
commands = [
|
||||
{
|
||||
name = "refresh-deps";
|
||||
|
@ -13,26 +13,17 @@
|
|||
'';
|
||||
}
|
||||
];
|
||||
env = [
|
||||
{ name = "GEM_HOME"; eval = "$PRJ_DATA_DIR/bundle/$(ruby -e 'puts RUBY_VERSION')"; }
|
||||
{ name = "PATH"; prefix = "$GEM_HOME/bin"; }
|
||||
];
|
||||
serviceGroups.server.services = {
|
||||
web.command = "rails s -p 3000";
|
||||
js.command = "yarn build:dev --watch";
|
||||
css.command = "yarn build:css --watch";
|
||||
};
|
||||
packages = with pkgs; [
|
||||
(pkgs.lowPrio binutils)
|
||||
findutils
|
||||
gnumake
|
||||
ruby_3_1
|
||||
nodejs
|
||||
yarn
|
||||
];
|
||||
language.c = {
|
||||
compiler = pkgs.gcc;
|
||||
includes = [ pkgs.sqlite pkgs.libmysqlclient pkgs.zlib ];
|
||||
libraries = [ pkgs.sqlite pkgs.libmysqlclient pkgs.zlib ];
|
||||
language.ruby = {
|
||||
package = pkgs.ruby_3_1;
|
||||
nativeDeps = [ pkgs.sqlite pkgs.libmysqlclient pkgs.zlib ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue