diff options
Diffstat (limited to 'pkgs/development/tools/ammonite/default.nix')
-rw-r--r-- | pkgs/development/tools/ammonite/default.nix | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/development/tools/ammonite/default.nix b/pkgs/development/tools/ammonite/default.nix index ab1ea2a82a3..157ee78d53c 100644 --- a/pkgs/development/tools/ammonite/default.nix +++ b/pkgs/development/tools/ammonite/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, jre, nixosTests, writeScript, common-updater-scripts +{ lib, stdenv, fetchurl, jre, writeScript, common-updater-scripts , git, nixfmt, nix, coreutils, gnused, disableRemoteLogging ? true }: with lib; @@ -28,7 +28,6 @@ let ''; passthru = { - tests = { inherit (nixosTests) ammonite; }; updateScript = writeScript "update.sh" '' #!${stdenv.shell} @@ -58,6 +57,15 @@ let ''; }; + doInstallCheck = true; + installCheckPhase = '' + runHook preInstallCheck + + $out/bin/amm -c 'val foo = 21; println(foo * 2)' | grep 42 + + runHook postInstallCheck + ''; + meta = { description = "Improved Scala REPL"; longDescription = '' |