-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
68 lines (63 loc) · 2.14 KB
/
Copy pathflake.nix
File metadata and controls
68 lines (63 loc) · 2.14 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
description = "Test Logger development environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
actionlint
cmake
gh
jq
libyaml
nodejs
openssl
pkg-config
rubyPackages_3_4.openssl
rubyPackages_3_4.psych
rubyPackages_3_4.ruby-vips
rubyPackages_3_4.rugged
rubyPackages_3_4.sorbet-runtime
ruby_3_4
sqlite
yamlfix
yamllint
];
# Use bundler to manage Rails version instead of Nix
shellHook = ''
export GEM_HOME=$PWD/.gems
export PATH=$GEM_HOME/bin:$PATH
# Add bin directory to PATH for easy access to scripts
export PATH=$PWD/bin:$PATH
echo "Ruby $(ruby --version) with Rails $(rails --version)"
echo ""
echo "Scripts available:"
echo " init - Initialize project (submodules, bundle, .env)"
echo " rspec-find - Find first failing test with details"
echo " rspec-memory - Run tests with memory profiling"
echo " rspec-quick - Run tests quickly with in-memory DB"
echo " rspec-quicker - Run tests in parallel with fail-fast"
echo " rspec-replace - Test replacements for broken tests"
echo " test-memory - Run tests with memory analysis"
echo " find - Run ripgrep for a string, useful dirs only"
echo " flay - Run structural duplicate detection on codebase"
echo " jscpd - Run copy-paste detection on codebase"
echo " update-chobble - Update chobble-forms and en14960 gems"
'';
};
}
);
}