From 220421c5dfdc3e6e5d81e8f6202d639dcd025aaa Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Fri, 28 Oct 2022 10:53:14 +0200 Subject: [PATCH] Update Zeus shells --- shells/gamification2.nix | 1 + shells/tap.nix | 42 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 shells/tap.nix diff --git a/shells/gamification2.nix b/shells/gamification2.nix index a271c979..e2de6295 100644 --- a/shells/gamification2.nix +++ b/shells/gamification2.nix @@ -12,6 +12,7 @@ yarn ]; env = [ + { name = "NIX_CC"; value = "${pkgs.gcc}"; } { name = "PGDATA"; eval = "$PRJ_DATA_DIR/postgres"; } { name = "DATABASE_HOST"; eval = "$PGDATA"; } { name = "GEM_HOME"; eval = "$PRJ_DATA_DIR/bundle/$(ruby -e 'puts RUBY_VERSION')"; } diff --git a/shells/tap.nix b/shells/tap.nix new file mode 100644 index 00000000..1e670f24 --- /dev/null +++ b/shells/tap.nix @@ -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 ]; + }; +}