mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-25 05:23:54 +00:00
utox: use checkInputs, also cleanup
This commit is contained in:
parent
9808244aae
commit
1662443fa1
@ -22,15 +22,16 @@ stdenv.mkDerivation rec {
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
check cmake pkgconfig
|
||||
cmake pkgconfig
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DENABLE_AUTOUPDATE=OFF"
|
||||
] ++ lib.optional (doCheck) "-DENABLE_TESTS=ON";
|
||||
|
||||
doCheck = stdenv.isLinux;
|
||||
"-DENABLE_TESTS=${if doCheck then "ON" else "OFF"}"
|
||||
];
|
||||
|
||||
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
|
||||
checkInputs = [ check ];
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
ctest -VV
|
||||
|
Loading…
Reference in New Issue
Block a user