Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 zlib,
6}:
7stdenv.mkDerivation {
8 name = "ropebwt2";
9 version = "0-unstable-2021-02-01";
10 src = fetchFromGitHub {
11 owner = "lh3";
12 repo = "ropebwt2";
13 rev = "bd8dbd3db2e9e3cff74acc2907c0742c9ebbf033";
14 hash = "sha256-R/VvbprwcfXF2TBZOYmc1MU3AzCcXFfWCHoYYumXtI8=";
15 };
16 buildInputs = [ zlib ];
17 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
18 installPhase = ''
19 runHook preInstall
20
21 install -Dm755 ropebwt2 -t $out/bin
22
23 runHook postInstall
24 '';
25 meta = {
26 homepage = "https://github.com/lh3/ropebwt2";
27 description = "Incremental construction of FM-index for DNA sequences";
28 mainProgram = "ropebwt2";
29 license = lib.licenses.mit;
30 maintainers = with lib.maintainers; [ apraga ];
31 platforms = lib.platforms.unix;
32 };
33}