contrib/nix/ruby3.4-shell.nix (937B) - raw
1 let
2 pkgs = import (builtins.fetchGit {
3 url = "https://github.com/NixOS/nixpkgs";
4 ref = "refs/heads/master";
5 rev = "5d0ebea1934d80948ff7b84f3b06e4ec9d99ee49";
6 }) {};
7 gems = pkgs.bundlerEnv {
8 name = "ruby3.4-gems-for-sup";
9 ruby = pkgs.ruby_3_4;
10 gemfile = ./Gemfile;
11 lockfile = ./Gemfile.lock;
12 gemset = ./gemset.nix;
13 gemConfig = pkgs.defaultGemConfig // {
14 rmail = attrs: {
15 dontBuild = false;
16 patches = [
17 # Frozen string literals: https://github.com/terceiro/rmail/pull/13
18 (pkgs.fetchpatch2 {
19 name = "rmail-frozen-string-literals.patch";
20 url = "https://github.com/terceiro/rmail/pull/13/commits/27f455af1fea0be0aa09959cc2237cbdf68de2a1.patch";
21 hash = "sha256-N5X9zix+WPoEugp2DBTu7dRDmesrF5pT/8Td2wraYoA=";
22 })
23 ];
24 };
25 };
26 };
27 in pkgs.mkShell { packages = [ gems gems.wrappedRuby pkgs.pandoc ]; }