Add Java environment

This commit is contained in:
Luc Perkins 2022-07-28 23:42:40 +02:00
parent 4504c0f122
commit 58ace59505
No known key found for this signature in database
GPG key ID: 4F102D0C16E232F2
8 changed files with 89 additions and 6 deletions

View file

@ -20,6 +20,8 @@
rust = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
helpers = with pkgs; [ pkg-config ];
inherit (pkgs) mkShell;
inherit (pkgs.lib) optionals;
inherit (pkgs.stdenv) isDarwin;
@ -30,8 +32,7 @@
default = mkShell {
nativeBuildInputs = [
rust
pkgs.pkg-config
];
] ++ helpers;
buildInputs = with pkgs; [
openssl
@ -39,8 +40,7 @@
];
shellHook = ''
echo "Entering Rust env"
echo "Running `${rust}/bin/cargo --version`"
${rust}/bin/cargo --version
'';
};
};