rapidfuzz-cpp: inherit default doCheck
instead of setting it explicitly
This commit is contained in:
parent
2e7d54cfde
commit
abebf789a3
@ -5,14 +5,14 @@
|
|||||||
, catch2_3
|
, catch2_3
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "rapidfuzz-cpp";
|
pname = "rapidfuzz-cpp";
|
||||||
version = "1.10.4";
|
version = "1.10.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "maxbachmann";
|
owner = "maxbachmann";
|
||||||
repo = "rapidfuzz-cpp";
|
repo = "rapidfuzz-cpp";
|
||||||
rev = "v${version}";
|
rev = "v${finalAttrs.version}";
|
||||||
hash = "sha256-I7MdeLs+J5a57ypgUJIW0/pSFPzK4nZA4ZrVRdKX7J4=";
|
hash = "sha256-I7MdeLs+J5a57ypgUJIW0/pSFPzK4nZA4ZrVRdKX7J4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
|
|||||||
cmake
|
cmake
|
||||||
];
|
];
|
||||||
|
|
||||||
cmakeFlags = lib.optionals doCheck [
|
cmakeFlags = lib.optionals finalAttrs.finalPackage.doCheck [
|
||||||
"-DRAPIDFUZZ_BUILD_TESTING=ON"
|
"-DRAPIDFUZZ_BUILD_TESTING=ON"
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -33,14 +33,12 @@ stdenv.mkDerivation rec {
|
|||||||
catch2_3
|
catch2_3
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Rapid fuzzy string matching in C++ using the Levenshtein Distance";
|
description = "Rapid fuzzy string matching in C++ using the Levenshtein Distance";
|
||||||
homepage = "https://github.com/maxbachmann/rapidfuzz-cpp";
|
homepage = "https://github.com/maxbachmann/rapidfuzz-cpp";
|
||||||
changelog = "https://github.com/maxbachmann/rapidfuzz-cpp/blob/${src.rev}/CHANGELOG.md";
|
changelog = "https://github.com/maxbachmann/rapidfuzz-cpp/blob/${finalAttrs.src.rev}/CHANGELOG.md";
|
||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
maintainers = with lib.maintainers; [ dotlambda ];
|
maintainers = with lib.maintainers; [ dotlambda ];
|
||||||
platforms = lib.platforms.unix;
|
platforms = lib.platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user