Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 37 lines 756 B view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, cmake 5, pkg-config 6, llvmPackages 7, enableOpenMP ? true 8}: 9 10stdenv.mkDerivation rec { 11 pname = "wfa2-lib"; 12 version = "2.3.5"; 13 14 src = fetchFromGitHub { 15 owner = "smarco"; 16 repo = "WFA2-lib"; 17 rev = "v${version}"; 18 hash = "sha256-vTeSvhSt3PQ/BID6uM1CuXkQipgG7VViDexvAwV4nW8="; 19 }; 20 21 nativeBuildInputs = [ 22 cmake 23 pkg-config 24 ]; 25 26 buildInputs = lib.optionals enableOpenMP [ llvmPackages.openmp ]; 27 28 cmakeFlags = [ "-DOPENMP=${if enableOpenMP then "ON" else "OFF"}" ]; 29 30 meta = with lib; { 31 description = "Wavefront alignment algorithm library v2"; 32 homepage = "https://github.com/smarco/WFA2-lib"; 33 license = licenses.mit; 34 maintainers = [ ]; 35 platforms = platforms.linux; 36 }; 37}