obb: switch to passthru.tests

This commit is contained in:
Will Cohen 2022-01-05 08:39:26 -05:00
parent b65eb7ec84
commit 3dd7698867

View file

@ -6,7 +6,7 @@
, clojure , clojure
, git , git
, jdk , jdk
, callPackage , obb
, fetchFromGitHub , fetchFromGitHub
, makeWrapper , makeWrapper
, runCommand }: , runCommand }:
@ -64,11 +64,12 @@ stdenv.mkDerivation rec {
runHook postInstall runHook postInstall
''; '';
doInstallCheck = true; passthru.tests = {
installCheckPhase = '' simple = runCommand "${pname}-test" {} ''
[ $($out/bin/obb -e '(+ 1 2)') = '3' ] [ $(${obb}/bin/obb -e '(+ 1 2)') = '3' ]
''; touch $out
'';
};
meta = with lib; { meta = with lib; {
description = "Ad-hoc ClojureScript scripting of Mac applications via Apple's Open Scripting Architecture"; description = "Ad-hoc ClojureScript scripting of Mac applications via Apple's Open Scripting Architecture";