This commit is contained in:
Paul-Henri Froidmont 2022-12-02 16:48:27 +01:00
commit bfd82a5476
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
9 changed files with 2390 additions and 0 deletions

30
flake.nix Normal file
View file

@ -0,0 +1,30 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
};
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
millWithFixedJdk = pkgs.mill.override { jre = pkgs.jdk; };
in
{
devShell = pkgs.mkShell {
buildInputs = [ millWithFixedJdk ];
shellHook = ''
set -a
JAVA_HOME=${pkgs.jdk}
set +a
'';
};
}
);
}