contrib/nix/ruby4.0-shell.nix (1093B) - raw
1 let
2 pkgs = import (builtins.fetchGit {
3 url = "https://github.com/NixOS/nixpkgs";
4 ref = "refs/heads/master";
5 rev = "6de3b4b649253e8e0c7229edc3726d8a717b93fe";
6 }) { };
7 gems = pkgs.bundlerEnv {
8 name = "ruby4.0-gems-for-sup";
9 ruby = pkgs.ruby_4_0;
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 xapian-ruby =
26 attrs:
27 pkgs.defaultGemConfig.xapian-ruby attrs
28 // {
29 env.LANG = "C.UTF-8";
30 };
31 };
32 };
33 in
34 pkgs.mkShell {
35 packages = [
36 gems
37 gems.wrappedRuby
38 pkgs.pandoc
39 ];
40 }