diff --git a/pkgs/development/libraries/libcerf/default.nix b/pkgs/development/libraries/libcerf/default.nix
index 83d9dd49b81d..7a3b96314189 100644
--- a/pkgs/development/libraries/libcerf/default.nix
+++ b/pkgs/development/libraries/libcerf/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, lib, fetchurl, cmake, perl }:
+{ stdenv, lib, fetchurl, cmake, perl, gnuplot }:
 
 stdenv.mkDerivation rec {
   pname = "libcerf";
@@ -11,6 +11,10 @@ stdenv.mkDerivation rec {
 
   nativeBuildInputs = [ cmake perl ];
 
+  passthru.tests = {
+    inherit gnuplot;
+  };
+
   meta = with lib; {
     description = "Complex error (erf), Dawson, Faddeeva, and Voigt function library";
     homepage = "https://jugit.fz-juelich.de/mlz/libcerf";