From f4b16ef2d1860b294f6f93123e0ebc7c9c16e9f2 Mon Sep 17 00:00:00 2001 From: Michael Raitza Date: Sun, 18 Oct 2020 15:38:21 +0200 Subject: default.nix: Fix testing --- default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'default.nix') diff --git a/default.nix b/default.nix index ef26b4b4..f280a118 100644 --- a/default.nix +++ b/default.nix @@ -25,14 +25,17 @@ pkgs.stdenv.mkDerivation { src = ./.; nativeBuildInputs = with pkgs; [ cmake ]; - buildInputs = with pkgs; [ boost gmp mpfr libedit python texinfo gnused gpgme ]; + buildInputs = with pkgs; [ boost gmp mpfr libedit python3 texinfo gnused gpgme ]; enableParallelBuilding = true; cmakeFlags = [ "-DCMAKE_INSTALL_LIBDIR=lib" "-DUSE_GPGME=1" ]; buildPhase = "make -j$NIX_BUILD_CORES"; - checkPhase = "ctest -j$NIX_BUILD_CORES"; + checkPhase = '' + export LD_LIBRARY_PATH=$PWD + ctest -j$NIX_BUILD_CORES + ''; doCheck = true; -- cgit v1.2.3