From 9e431da51578ff00600d1fa5b25b8ffcd7a6afd3 Mon Sep 17 00:00:00 2001 From: Mrinal Purohit Date: Sat, 30 Oct 2021 14:10:44 +0530 Subject: ammonite: move nixos test to installCheckPhase --- pkgs/development/tools/ammonite/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'pkgs/development/tools/ammonite/default.nix') 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 = '' -- cgit 1.4.1