From 36464da82e198a0272efebda209eb610fdfa6d12 Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: Sat, 13 Apr 2024 17:57:37 +1000 Subject: [PATCH] contrib/nix: add a shell.nix for testing 'gem install' --- contrib/nix/README | 4 ++++ contrib/nix/gem-install-shell.nix | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 contrib/nix/gem-install-shell.nix diff --git a/contrib/nix/README b/contrib/nix/README index e56874c2..beacb1bc 100644 --- a/contrib/nix/README +++ b/contrib/nix/README @@ -1,3 +1,7 @@ After updating Gemfile, regenerate Gemfile.lock and gemset.nix: nix-shell -p bundix --run 'bundix --gemfile=contrib/nix/Gemfile --lockfile=contrib/nix/Gemfile.lock --gemset=contrib/nix/gemset.nix -l' + +Test gem installation: + + nix-shell contrib/nix/gem-install-shell.nix --run 'gem install --verbose -i ./asdf ./pkg/sup-999.gem' diff --git a/contrib/nix/gem-install-shell.nix b/contrib/nix/gem-install-shell.nix new file mode 100644 index 00000000..b808ec3b --- /dev/null +++ b/contrib/nix/gem-install-shell.nix @@ -0,0 +1,12 @@ +{ pkgs ? import {} }: +pkgs.mkShell { + packages = with pkgs; [ + ncurses + ncurses.dev + libuuid + libuuid.dev + ruby_3_2 + zlib + zlib.dev + ]; +}