46 lines
1.0 KiB
Nix
46 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
cmake,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "edlib";
|
|
version = "1.3.9.post1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Martinsos";
|
|
repo = "edlib";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-XejxohLVdBBzpYZ//OpqC1ActmCaZ8tunJyhOYtZmKQ=";
|
|
};
|
|
|
|
patches = [
|
|
# Bump minimum CMake version to 3.20
|
|
(fetchpatch {
|
|
name = "bump-cmake-version.patch";
|
|
url = "https://github.com/Martinsos/edlib/commit/47359e591f3861f12105fa8e72242de64d5597c4.patch?full_index=1";
|
|
hash = "sha256-Efbv8XYF1jOz6MypIyhfFJGQQt8gTYNZRd+R8ukIf3o=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
doCheck = true;
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
bin/runTests
|
|
runHook postCheck
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://martinsos.github.io/edlib";
|
|
description = "Lightweight, fast C/C++ library for sequence alignment using edit distance";
|
|
maintainers = with lib.maintainers; [ bcdarwin ];
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|