Skip to content

Commit e716009

Browse files
committed
flake.nix: add devShells.minimum for CI builds, etc.
1 parent 005eb59 commit e716009

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

flake.nix

+10-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
perSystem = { config, self', inputs', pkgs, system, lib, ... }: let
2828
inherit (pkgs) stdenv;
2929
in {
30-
# define default devshell
30+
# define default devshell, with a richer collection of tools intended for interactive development
3131
devShells.default = pkgs.mkShell {
3232
inputsFrom = with pkgs ; [ secp256k1 ];
3333
packages = with pkgs ; [
@@ -39,6 +39,15 @@
3939
})
4040
];
4141
};
42+
# define minimum devshell, with the minimum necessary to do a CI build
43+
devShells.minimum = pkgs.mkShell {
44+
inputsFrom = with pkgs ; [ secp256k1 ];
45+
packages = with pkgs ; [
46+
(gradle.override { # Gradle 8.x (Nix package) runs using an internally-linked JDK
47+
java = jdk23_headless; # Run Gradle with this JDK
48+
})
49+
];
50+
};
4251

4352
# define flake output packages
4453
packages = let

0 commit comments

Comments
 (0)