Skip to content

Commit

Permalink
add nix flake for dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronfyfe committed Aug 29, 2023
1 parent af9d917 commit 816b299
Show file tree
Hide file tree
Showing 4 changed files with 698 additions and 31 deletions.
74 changes: 43 additions & 31 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,45 @@ GIT
GEM
remote: https://rubygems.org/
specs:
addressable (2.8.1)
Ascii85 (1.1.0)
addressable (2.8.5)
public_suffix (>= 2.0.2, < 6.0)
afm (0.2.2)
async (2.6.4)
console (~> 1.10)
fiber-annotation
io-event (~> 1.1)
timers (~> 4.1)
colorator (1.1.0)
concurrent-ruby (1.2.2)
console (1.23.2)
fiber-annotation
fiber-local
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
ethon (0.15.0)
ethon (0.16.0)
ffi (>= 1.15.0)
eventmachine (1.2.7)
ffi (1.15.5)
fiber-annotation (0.2.0)
fiber-local (1.0.0)
forwardable-extended (2.6.0)
google-protobuf (3.22.0)
google-protobuf (3.22.0-x86_64-darwin)
google-protobuf (3.22.0-x86_64-linux)
html-proofer (3.19.4)
google-protobuf (3.24.2)
hashery (2.1.2)
html-proofer (5.0.8)
addressable (~> 2.3)
mercenary (~> 0.3)
async (~> 2.1)
nokogiri (~> 1.13)
parallel (~> 1.10)
pdf-reader (~> 2.11)
rainbow (~> 3.0)
typhoeus (~> 1.3)
yell (~> 2.0)
zeitwerk (~> 2.5)
http_parser.rb (0.8.0)
i18n (1.12.0)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
io-event (1.3.2)
jekyll (4.3.2)
addressable (~> 2.4)
colorator (~> 1.0)
Expand Down Expand Up @@ -63,46 +76,45 @@ GEM
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
mini_portile2 (2.8.1)
nokogiri (1.14.3)
mini_portile2 (~> 2.8.0)
mini_portile2 (2.8.4)
nokogiri (1.15.4)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nokogiri (1.14.3-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.14.3-x86_64-linux)
racc (~> 1.4)
parallel (1.22.1)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (5.0.1)
racc (1.6.2)
pdf-reader (2.11.0)
Ascii85 (~> 1.0)
afm (~> 0.2.1)
hashery (~> 2.0)
ruby-rc4
ttfunk
public_suffix (5.0.3)
racc (1.7.1)
rainbow (3.1.1)
rake (13.0.6)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.5)
rouge (4.1.0)
rexml (3.2.6)
rouge (4.1.3)
ruby-rc4 (0.1.5)
safe_yaml (1.0.5)
sass-embedded (1.58.3)
google-protobuf (~> 3.21)
rake (>= 10.0.0)
sass-embedded (1.58.3-x86_64-darwin)
google-protobuf (~> 3.21)
sass-embedded (1.58.3-x86_64-linux)
google-protobuf (~> 3.21)
sass-embedded (1.66.1)
google-protobuf (~> 3.23)
rake (>= 13.0.0)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
timers (4.3.5)
ttfunk (1.7.0)
typhoeus (1.4.0)
ethon (>= 0.9.0)
unicode-display_width (2.4.2)
webrick (1.8.1)
yell (2.2.2)
zeitwerk (2.6.11)

PLATFORMS
ruby
x86_64-darwin-20
x86_64-linux

DEPENDENCIES
html-proofer
Expand All @@ -111,4 +123,4 @@ DEPENDENCIES
webrick (~> 1.8)

BUNDLED WITH
2.4.6
2.4.19
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 49 additions & 0 deletions flake.nix
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";
};
};

}));
}
Loading

0 comments on commit 816b299

Please sign in to comment.