From 3dd76988673bd6a67ab43567963ead57030af355 Mon Sep 17 00:00:00 2001 From: Will Cohen Date: Wed, 5 Jan 2022 08:39:26 -0500 Subject: [PATCH] obb: switch to passthru.tests --- pkgs/development/interpreters/clojure/obb.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/development/interpreters/clojure/obb.nix b/pkgs/development/interpreters/clojure/obb.nix index 2b37428b25ba1..9583be923939a 100644 --- a/pkgs/development/interpreters/clojure/obb.nix +++ b/pkgs/development/interpreters/clojure/obb.nix @@ -6,7 +6,7 @@ , clojure , git , jdk -, callPackage +, obb , fetchFromGitHub , makeWrapper , runCommand }: @@ -64,11 +64,12 @@ stdenv.mkDerivation rec { runHook postInstall ''; - doInstallCheck = true; - installCheckPhase = '' - [ $($out/bin/obb -e '(+ 1 2)') = '3' ] - ''; - + passthru.tests = { + simple = runCommand "${pname}-test" {} '' + [ $(${obb}/bin/obb -e '(+ 1 2)') = '3' ] + touch $out + ''; + }; meta = with lib; { description = "Ad-hoc ClojureScript scripting of Mac applications via Apple's Open Scripting Architecture";