patch: use checkInputs instead of conditional

This is more clear, to separate test dependencies.
This commit is contained in:
Matthew Bauer 2018-09-29 20:25:51 -05:00
parent ff0568380b
commit b068e220ff

View File

@ -23,7 +23,6 @@ stdenv.mkDerivation rec {
})
];
buildInputs = stdenv.lib.optional doCheck ed;
nativeBuildInputs = [ autoreconfHook ];
configureFlags = stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
@ -31,6 +30,7 @@ stdenv.mkDerivation rec {
];
doCheck = stdenv.hostPlatform.libc != "musl"; # not cross;
checkInputs = [ed];
meta = {
description = "GNU Patch, a program to apply differences to files";