diff options
author | Tim Steinbach <tim@nequissimus.com> | 2020-11-03 11:51:36 -0500 |
---|---|---|
committer | Tim Steinbach <tim@nequissimus.com> | 2020-11-04 11:30:36 -0500 |
commit | 23be792bad9d13c558d6019e5cac222115d288ea (patch) | |
tree | 36b787743735c748d85274812c64bcb1c914f9da /nixos/tests/sbt.nix | |
parent | 8d279bbf671ca1ab9fa9a610ec56a4f10a41cfe7 (diff) |
sbt: Add test
Diffstat (limited to 'nixos/tests/sbt.nix')
-rw-r--r-- | nixos/tests/sbt.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/nixos/tests/sbt.nix b/nixos/tests/sbt.nix new file mode 100644 index 0000000000000..004d9c2e140a0 --- /dev/null +++ b/nixos/tests/sbt.nix @@ -0,0 +1,18 @@ +import ./make-test-python.nix ({ pkgs, ...} : { + name = "sbt"; + meta = with pkgs.stdenv.lib.maintainers; { + maintainers = [ nequissimus ]; + }; + + machine = { pkgs, ... }: + { + environment.systemPackages = [ pkgs.sbt ]; + }; + + testScript = + '' + machine.succeed( + "(sbt --offline --version 2>&1 || true) | grep 'getting org.scala-sbt sbt ${pkgs.sbt.version} (this may take some time)'" + ) + ''; +}) |