aboutsummaryrefslogtreecommitdiff
path: root/tools/bwa-mem2-app.nix
blob: 6ee2ab4adf9dfcaa94fa30ef783efdebeff6e535 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ clangStdenv, fetchFromGitHub, zlib }:
clangStdenv.mkDerivation rec {
  pname = "bwa-mem2";
  version = "2.1";
  src = fetchFromGitHub {
    fetchSubmodules = true;
    owner = "bwa-mem2";
    repo = "bwa-mem2";
    rev = "v${version}";
    sha256 = "sha256-T0nkO+NehAMFuwGi7HrQxq57gEsA16TlEWa2SHerxV4=";
  };
  buildInputs = [ zlib ];
  installPhase = ''
    mkdir -p $out/bin
    cp bwa-mem2 bwa-mem2.* $out/bin
  '';
  disableHardening = [ "pie" ];
}