aboutsummaryrefslogtreecommitdiff
path: root/tools/bwa-mem2-app.nix
blob: 49f4af309521dac68e37be2575c4d524fb3cfd0a (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" ];
}