Merge pull request #246588 from thillux/fix-libdivsufsort

libdivsufsort: fix cross-compilation
This commit is contained in:
Rick van Schijndel 2023-08-11 12:49:40 +02:00 committed by GitHub
commit 25159f4f39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,14 +1,18 @@
{lib, stdenv, fetchurl}:
{lib, stdenv, fetchFromGitHub, cmake}:
stdenv.mkDerivation rec {
pname = "libdivsufsort";
version = "2.0.1";
src = fetchurl {
url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/libdivsufsort/libdivsufsort-${version}.tar.bz2";
sha256 = "1g0q40vb2k689bpasa914yi8sjsmih04017mw20zaqqpxa32rh2m";
src = fetchFromGitHub {
owner = "y-256";
repo = pname;
rev = "${version}";
hash = "sha256-4p+L1bq9SBgWSHXx+WYWAe60V2g1AN+zlJvC+F367Tk=";
};
nativeBuildInputs = [ cmake ];
meta = {
homepage = "https://github.com/y-256/libdivsufsort";
license = lib.licenses.mit;