Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, cmake }: 2 3stdenv.mkDerivation rec { 4 pname = "edlib"; 5 version = "unstable-2021-08-20"; 6 7 src = fetchFromGitHub { 8 owner = "Martinsos"; 9 repo = pname; 10 rev = "f8afceb49ab0095c852e0b8b488ae2c88e566afd"; 11 hash = "sha256-P/tFbvPBtA0MYCNDabW+Ypo3ltwP4S+6lRDxwAZ1JFo="; 12 }; 13 14 nativeBuildInputs = [ cmake ]; 15 16 doCheck = true; 17 checkPhase = '' 18 runHook preCheck 19 bin/runTests 20 runHook postCheck 21 ''; 22 23 meta = with lib; { 24 homepage = "https://martinsos.github.io/edlib"; 25 description = "Lightweight, fast C/C++ library for sequence alignment using edit distance"; 26 maintainers = with maintainers; [ bcdarwin ]; 27 license = licenses.mit; 28 platforms = platforms.unix; 29 }; 30}