mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
902 B
37 lines
902 B
![]()
3 years ago
|
{
|
||
|
inputs = {
|
||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||
|
flake-utils.url = "github:numtide/flake-utils";
|
||
|
};
|
||
|
|
||
|
outputs = { self, nixpkgs, flake-utils }:
|
||
|
flake-utils.lib.eachDefaultSystem (system:
|
||
|
let
|
||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||
|
gems = pkgs.bundlerEnv {
|
||
|
name = "devdocs-gems";
|
||
|
gemdir = ./.;
|
||
|
};
|
||
|
tools = [ gems gems.wrappedRuby ];
|
||
|
in
|
||
|
{
|
||
|
devShells = {
|
||
|
make-gemset = pkgs.mkShell {
|
||
|
buildInputs = tools;
|
||
|
shellHook = ''
|
||
|
bundle install
|
||
|
bundix
|
||
|
'';
|
||
|
};
|
||
|
default = pkgs.mkShell
|
||
|
{
|
||
|
buildInputs = tools;
|
||
|
shellHook = ''
|
||
|
bundle exec thor docs:download --default
|
||
|
bundle exec rackup
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
});
|
||
|
}
|