From 97ca1528a031075ad1bb1ebb6f71079accf31527 Mon Sep 17 00:00:00 2001 From: Emily Date: Fri, 27 Sep 2019 15:07:07 +0100 Subject: [PATCH] nextpnr: enable tests --- pkgs/development/compilers/nextpnr/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/compilers/nextpnr/default.nix b/pkgs/development/compilers/nextpnr/default.nix index 4713626fbb2..d9f6f9f65dd 100644 --- a/pkgs/development/compilers/nextpnr/default.nix +++ b/pkgs/development/compilers/nextpnr/default.nix @@ -35,6 +35,7 @@ with stdenv; mkDerivation rec { enableParallelBuilding = true; cmakeFlags = [ "-DARCH=generic;ice40;ecp5" + "-DBUILD_TESTS=ON" "-DICEBOX_ROOT=${icestorm}/share/icebox" "-DTRELLIS_ROOT=${trellis}/share/trellis" "-DPYTRELLIS_LIBDIR=${trellis}/lib/trellis" @@ -57,6 +58,7 @@ with stdenv; mkDerivation rec { --replace ''\'''${PYTHON_EXECUTABLE}' '${icestorm.pythonInterp}' ''; + doCheck = true; postFixup = lib.optionalString enableGui '' wrapQtApp $out/bin/nextpnr-generic