File tree Expand file tree Collapse file tree 6 files changed +84
-3
lines changed
Expand file tree Collapse file tree 6 files changed +84
-3
lines changed Original file line number Diff line number Diff line change 1+ use flake
Original file line number Diff line number Diff line change 1515.yarn
1616modules /** /dist /
1717modules /** /pack-scoped /
18- coverage
18+ coverage
19+ /.direnv /
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ protobuf/
55* .json
66* .min.js
77CHANGELOG.md
8+ flake.lock
89
9-
10- modules /babylonlabs-io-btc-staking-ts /
10+ modules /babylonlabs-io-btc-staking-ts /
Original file line number Diff line number Diff line change 137137/tsconfig.json @ BitGo/coins @ BitGo/web-experience @ BitGo/wallet-platform
138138/tsconfig.packages.json @ BitGo/coins @ BitGo/web-experience @ BitGo/wallet-platform
139139/.iyarc @ BitGo/wallet-platform @ BitGo/hsm @ BitGo/velocity
140+ flake.nix @ BitGo/wallet-platform @ BitGo/hsm @ BitGo/developer-experience
141+ flake.lock @ BitGo/wallet-platform @ BitGo/hsm @ BitGo/developer-experience
Original file line number Diff line number Diff line change 1+ {
2+ inputs = {
3+ nixpkgs . url = "github:nixos/nixpkgs" ;
4+ nixpkgs-nodejs . url = "github:nixos/nixpkgs/de1864217bfa9b5845f465e771e0ecb48b30e02d" ; # Node.js 20.18.1
5+ } ;
6+
7+ outputs = {
8+ self ,
9+ nixpkgs ,
10+ nixpkgs-nodejs ,
11+ } : let
12+ forEachSystem = nixpkgs . lib . genAttrs [
13+ "aarch64-darwin"
14+ "aarch64-linux"
15+ "x86_64-darwin"
16+ "x86_64-linux"
17+ ] ;
18+ in {
19+ devShells = forEachSystem ( system : let
20+ pkgs = nixpkgs . legacyPackages . ${ system } ;
21+ in {
22+ default = pkgs . mkShell {
23+ packages = with nixpkgs-nodejs . legacyPackages . ${ system } ; [
24+ nodejs_20
25+ ( yarn . override { nodejs = nodejs_20 ; } )
26+ ] ;
27+
28+ shellHook = ''
29+ export PATH="$(pwd)/node_modules/.bin:$PATH"
30+ '' ;
31+ } ;
32+ } ) ;
33+ } ;
34+ }
You can’t perform that action at this time.
0 commit comments