about summary refs log tree commit diff
path: root/pkgs/development/libraries/zxing-cpp/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/zxing-cpp/default.nix')
-rw-r--r--pkgs/development/libraries/zxing-cpp/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/libraries/zxing-cpp/default.nix b/pkgs/development/libraries/zxing-cpp/default.nix
index b9d61e5af626d..bcddfa96552f7 100644
--- a/pkgs/development/libraries/zxing-cpp/default.nix
+++ b/pkgs/development/libraries/zxing-cpp/default.nix
@@ -3,6 +3,7 @@
 , fetchFromGitHub
 , pkg-config
 , cmake
+, python3
 }:
 
 stdenv.mkDerivation rec {
@@ -37,6 +38,10 @@ stdenv.mkDerivation rec {
       --replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
   '';
 
+  passthru.tests = {
+    inherit (python3.pkgs) zxing_cpp;
+  };
+
   meta = with lib; {
     homepage = "https://github.com/nu-book/zxing-cpp";
     description = "C++ port of zxing (a Java barcode image processing library)";