about summary refs log tree commit diff
path: root/pkgs/applications/audio/ft2-clone
diff options
context:
space:
mode:
authorTimo Kaufmann <timokau@zoho.com>2020-10-12 11:06:04 +0200
committerGitHub <noreply@github.com>2020-10-12 11:06:04 +0200
commit787ec1544074f8c2709c2cfe523fae34d3be6942 (patch)
tree2bfffee50a15f29d6d0be184274fd71849436867 /pkgs/applications/audio/ft2-clone
parent38c6398c7842335f769cfbe4f71a070484f9432b (diff)
parent75414df39ebb69865aa7d700be827d296e468d6d (diff)
Merge pull request #94187 from fgaz/ft2-clone/1.27
ft2-clone: add a test
Diffstat (limited to 'pkgs/applications/audio/ft2-clone')
-rw-r--r--pkgs/applications/audio/ft2-clone/default.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/applications/audio/ft2-clone/default.nix b/pkgs/applications/audio/ft2-clone/default.nix
index aa4f122689165..bcdc1fe719cd5 100644
--- a/pkgs/applications/audio/ft2-clone/default.nix
+++ b/pkgs/applications/audio/ft2-clone/default.nix
@@ -1,8 +1,10 @@
 { stdenv
 , fetchFromGitHub
 , cmake
+, nixosTests
 , alsaLib
 , SDL2
+, libiconv
 }:
 
 stdenv.mkDerivation rec {
@@ -17,7 +19,13 @@ stdenv.mkDerivation rec {
   };
 
   nativeBuildInputs = [ cmake ];
-  buildInputs = [ SDL2 ] ++ stdenv.lib.optional stdenv.isLinux alsaLib;
+  buildInputs = [ SDL2 ]
+    ++ stdenv.lib.optional stdenv.isLinux alsaLib
+    ++ stdenv.lib.optional stdenv.isDarwin libiconv;
+
+  passthru.tests = {
+    ft2-clone-starts = nixosTests.ft2-clone;
+  };
 
   meta = with stdenv.lib; {
     description = "A highly accurate clone of the classic Fasttracker II software for MS-DOS";