shells: silverfin*: add some rubymine workarounds

This commit is contained in:
Charlotte Van Petegem 2024-07-18 09:49:04 +02:00
parent 742090e8af
commit 4fe2d1faab
2 changed files with 12 additions and 0 deletions

View file

@ -3,6 +3,7 @@ pkgs.devshell.mkShell {
name = "Silverfin"; name = "Silverfin";
imports = [ "${inputs.devshell}/extra/language/ruby.nix" ]; imports = [ "${inputs.devshell}/extra/language/ruby.nix" ];
devshell.startup = { devshell.startup = {
# Hack to make sure Rubymine doesn't use an ephemeral path from the nix store
"link-devshell-dir".text = '' "link-devshell-dir".text = ''
ln -snf $DEVSHELL_DIR $PRJ_DATA_DIR/devshell ln -snf $DEVSHELL_DIR $PRJ_DATA_DIR/devshell
''; '';
@ -18,6 +19,11 @@ pkgs.devshell.mkShell {
name = "LIBRARY_PATH"; name = "LIBRARY_PATH";
eval = "$LD_LIBRARY_PATH"; eval = "$LD_LIBRARY_PATH";
} }
# Workaround for Rubymine not setting a TERM and some applications not being able to handle that
{
name = "TERM";
eval = "\${TERM:-xterm-256color}";
}
{ {
name = "POSTGRESQL_ADDRESS"; name = "POSTGRESQL_ADDRESS";
value = "localhost"; value = "localhost";

View file

@ -3,6 +3,7 @@ pkgs.devshell.mkShell {
name = "Silverfin"; name = "Silverfin";
imports = [ "${inputs.devshell}/extra/language/ruby.nix" ]; imports = [ "${inputs.devshell}/extra/language/ruby.nix" ];
devshell.startup = { devshell.startup = {
# Hack to make sure Rubymine doesn't use an ephemeral path from the nix store
"link-devshell-dir".text = '' "link-devshell-dir".text = ''
ln -snf $DEVSHELL_DIR $PRJ_DATA_DIR/devshell ln -snf $DEVSHELL_DIR $PRJ_DATA_DIR/devshell
''; '';
@ -37,6 +38,11 @@ pkgs.devshell.mkShell {
name = "LIBRARY_PATH"; name = "LIBRARY_PATH";
eval = "$LD_LIBRARY_PATH"; eval = "$LD_LIBRARY_PATH";
} }
# Workaround for Rubymine not setting a TERM and some applications not being able to handle that
{
name = "TERM";
eval = "\${TERM:-xterm-256color}";
}
]; ];
language.c.compiler = lib.mkForce pkgs.clang; language.c.compiler = lib.mkForce pkgs.clang;
language.ruby = { language.ruby = {