forked from inscapist/ruby-nix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.nix
More file actions
38 lines (33 loc) · 729 Bytes
/
test.nix
File metadata and controls
38 lines (33 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
pkgs ? import <nixpkgs> { },
}:
# in `nix repl`
# :te true
# :l test.nix
# :r
# :p gemsetVersions.sorbet-static
rec {
inherit (pkgs) lib ruby defaultGemConfig;
requirements = (
pkgs
// {
inherit ruby gempaths;
name = "test-ruby-nix";
my = import ./mylib.nix pkgs;
gemConfig = defaultGemConfig // {
sorbet-static = _: { buildFlags = [ "--random-flag" ]; };
};
groups = null;
document = [ ];
extraRubySetup = null;
gemset = import ./tests/multi_app/gemset.nix;
}
);
inherit (import ./modules/gems requirements)
gems
gempaths
gemsetVersions
selected
;
inherit (import ./modules/ruby-env requirements) env envMinimal;
}