This commit is contained in:
Paul-Henri Froidmont 2021-12-02 23:09:52 +01:00
commit 57918f09c3
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
9 changed files with 2117 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";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
millWithJdk11 = pkgs.mill.override { jre = pkgs.jdk11; };
inputs = with pkgs; [
millWithJdk11
];
in
{
devShell = pkgs.mkShell {
buildInputs = inputs;
shellHook = ''
set -a
JAVA_HOME=${pkgs.jdk11}
set +a
'';
};
}
);
}