From 1f0029e3fd796a4ec75ae524e3db1cc619381d6d Mon Sep 17 00:00:00 2001 From: Clarck Robinson Date: Thu, 22 Dec 2022 17:12:51 +0100 Subject: [PATCH] Use Nix to setup a reproducible dev and build environment Part of [request #30007](https://tuleap.net/plugins/tracker/?aid=30007) Use Nix to setup a reproducible dev and build environment in the Jenkins plugin How to test: - Write in your terminal: nix-shell => You are in the nix shell - do: `java -version` => the Java version is displayed (currently it is 17.0.4) - do: `mvn -v` => The Maven version is displayed (currently it is 3.8.6) --- shell.nix | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..a8eaad0 --- /dev/null +++ b/shell.nix @@ -0,0 +1,8 @@ +{ pkgs ? import {} }: + +pkgs.mkShellNoCC { + buildInputs = [ + pkgs.maven + pkgs.jdk + ]; +}