Skip to content

Commit

Permalink
Update flake template
Browse files Browse the repository at this point in the history
  • Loading branch information
inscapist committed Apr 30, 2024
1 parent 234943d commit 47276a1
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions examples/simple-app/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,20 @@
gemConfig = { };

# See available versions here: https://github.com/bobvanderlinden/nixpkgs-ruby/blob/master/ruby/versions.json
ruby = pkgs."ruby-3.2";
ruby = pkgs."ruby-3.3.1";

# Running bundix would regenerate `gemset.nix`
bundixcli = bundix.packages.${system}.default;

# Use these instead of the original `bundle <mutate>` commands
bundleLock = pkgs.writeShellScriptBin "bundle-lock" ''
export BUNDLE_PATH=vendor/bundle
bundle lock
'';
bundleUpdate = pkgs.writeShellScriptBin "bundle-update" ''
export BUNDLE_PATH=vendor/bundle
bundle lock --update
'';
in
rec {
inherit
Expand All @@ -67,11 +78,13 @@
[
env
bundixcli
bundleLock
bundleUpdate
]
++ (with pkgs; [
nodejs-19_x
yarn
rufo
# more packages here
]);
};
};
Expand Down

0 comments on commit 47276a1

Please sign in to comment.