Skip to content

Commit 47276a1

Browse files
committed
Update flake template
1 parent 234943d commit 47276a1

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

examples/simple-app/flake.nix

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,20 @@
4646
gemConfig = { };
4747

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

51+
# Running bundix would regenerate `gemset.nix`
5152
bundixcli = bundix.packages.${system}.default;
53+
54+
# Use these instead of the original `bundle <mutate>` commands
55+
bundleLock = pkgs.writeShellScriptBin "bundle-lock" ''
56+
export BUNDLE_PATH=vendor/bundle
57+
bundle lock
58+
'';
59+
bundleUpdate = pkgs.writeShellScriptBin "bundle-update" ''
60+
export BUNDLE_PATH=vendor/bundle
61+
bundle lock --update
62+
'';
5263
in
5364
rec {
5465
inherit
@@ -67,11 +78,13 @@
6778
[
6879
env
6980
bundixcli
81+
bundleLock
82+
bundleUpdate
7083
]
7184
++ (with pkgs; [
72-
nodejs-19_x
7385
yarn
7486
rufo
87+
# more packages here
7588
]);
7689
};
7790
};

0 commit comments

Comments
 (0)