flatbuffers: fix build for musl
This commit is contained in:
parent
e279676f48
commit
0a70128cdc
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, fetchFromGitHub, cmake }:
|
{ stdenv, fetchFromGitHub, fetchpatch, cmake }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (rec {
|
||||||
pname = "flatbuffers";
|
pname = "flatbuffers";
|
||||||
version = "1.11.0";
|
version = "1.11.0";
|
||||||
|
|
||||||
@ -34,4 +34,12 @@ stdenv.mkDerivation rec {
|
|||||||
platforms = stdenv.lib.platforms.unix;
|
platforms = stdenv.lib.platforms.unix;
|
||||||
homepage = https://google.github.io/flatbuffers/;
|
homepage = https://google.github.io/flatbuffers/;
|
||||||
};
|
};
|
||||||
}
|
} // stdenv.lib.optionalAttrs stdenv.hostPlatform.isMusl {
|
||||||
|
# Remove when updating to the next version.
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/google/flatbuffers/commit/2b52494047fb6e97af03e1801b42adc7ed3fd78a.diff";
|
||||||
|
sha256 = "01k07ws0f4w7nnl8nli795wgjm4p94lxd3kva4yf7nf3pg4p8arx";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user