Skip to content

Commit

Permalink
contrib/nix: add a shell.nix for testing 'gem install'
Browse files Browse the repository at this point in the history
  • Loading branch information
danc86 committed Apr 13, 2024
1 parent 492091a commit 36464da
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contrib/nix/README
Original file line number Diff line number Diff line change
@@ -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'
12 changes: 12 additions & 0 deletions contrib/nix/gem-install-shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
packages = with pkgs; [
ncurses
ncurses.dev
libuuid
libuuid.dev
ruby_3_2
zlib
zlib.dev
];
}

0 comments on commit 36464da

Please sign in to comment.