Created
January 22, 2020 06:02
-
-
Save thefloweringash/9882f775aadfa7b16daee58091bfadc7 to your computer and use it in GitHub Desktop.
bundlerEnv ruby2.7 test case
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
# frozen_string_literal: true | |
source "https://rubygems.org" | |
gem "thor" |
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
GEM | |
remote: https://rubygems.org/ | |
specs: | |
thor (1.0.1) | |
PLATFORMS | |
ruby | |
DEPENDENCIES | |
thor | |
BUNDLED WITH | |
1.17.2 |
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
{ | |
thor = { | |
groups = ["default"]; | |
platforms = []; | |
source = { | |
remotes = ["https://rubygems.org"]; | |
sha256 = "1xbhkmyhlxwzshaqa7swy2bx6vd64mm0wrr8g3jywvxy7hg0cwkm"; | |
type = "gem"; | |
}; | |
version = "1.0.1"; | |
}; | |
} |
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
{ rubyAttr ? "ruby_2_7" }: | |
let | |
pkgs = import <nixpkgs> {}; | |
bundlerEnv = pkgs.bundlerEnv.override { | |
bundler = pkgs.bundler.override { | |
ruby = pkgs."${rubyAttr}"; | |
}; | |
}; | |
in | |
bundlerEnv { | |
pname = "thor"; | |
ruby = pkgs."${rubyAttr}"; | |
gemdir = ./.; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment