1{lib, stdenv, fetchFromGitHub, cmake}:
2
3stdenv.mkDerivation rec {
4 pname = "libdivsufsort";
5 version = "2.0.1";
6
7 src = fetchFromGitHub {
8 owner = "y-256";
9 repo = pname;
10 rev = "${version}";
11 hash = "sha256-4p+L1bq9SBgWSHXx+WYWAe60V2g1AN+zlJvC+F367Tk=";
12 };
13
14 nativeBuildInputs = [ cmake ];
15
16 meta = {
17 homepage = "https://github.com/y-256/libdivsufsort";
18 license = lib.licenses.mit;
19 description = "Library to construct the suffix array and the BW transformed string";
20 platforms = lib.platforms.unix;
21 };
22}