Skip to content

Commit

Permalink
Use same jre version on CI and in nix shell
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostbuster91 committed Sep 24, 2023
1 parent fefc548 commit 4e17861
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,18 @@
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
shellPackages = [
"jre"
"sbt"
"nodejs"
"yarn"
];
in
{
devShell = pkgs.mkShell {
buildInputs = map (pkgName: pkgs.${pkgName}) shellPackages;
buildInputs = with pkgs; [
(sbt.override {
jre = temurin-jre-bin-17;
})
nodejs
yarn
];
welcomeMessage = ''
Welcome to the Diffx Nix shell! 👋
Available packages:
${builtins.concatStringsSep "\n" (map (n : "- ${n}") shellPackages)}
'';

shellHook = ''
Expand All @@ -28,4 +26,5 @@
};
}
);
}
}

0 comments on commit 4e17861

Please sign in to comment.