mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-22 21:30:45 +02:00
obb: switch to passthru.tests
This commit is contained in:
parent
b65eb7ec84
commit
3dd7698867
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue