-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af9d917
commit 816b299
Showing
4 changed files
with
698 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
inputs = { | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | ||
}; | ||
|
||
outputs = inputs @ { self, ... }: | ||
(inputs.flake-utils.lib.eachDefaultSystem (system: | ||
let | ||
|
||
pkgs = import inputs.nixpkgs { | ||
inherit system; | ||
}; | ||
|
||
ruby = pkgs.ruby_3_0; | ||
|
||
bundix = pkgs.bundix.override { | ||
bundler = pkgs.bundler.override { | ||
ruby = pkgs.ruby_3_0; | ||
}; | ||
}; | ||
|
||
rubyGems = pkgs.bundlerEnv { | ||
name = "ruby-gems-env"; | ||
inherit ruby; | ||
gemdir = ./.; | ||
}; | ||
|
||
shellPkgs = [ | ||
bundix | ||
pkgs.bundler | ||
ruby | ||
rubyGems | ||
] ++ (with pkgs; [ | ||
nodejs-18_x | ||
]); | ||
|
||
in | ||
rec { | ||
|
||
devShells = { | ||
default = pkgs.mkShell { | ||
buildInputs = shellPkgs; | ||
BUNDLE_FORCE_RUBY_PLATFORM = "true"; | ||
}; | ||
}; | ||
|
||
})); | ||
} |
Oops, something went wrong.