Unverified Commit 5bb9e638 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

hashlink: remove obsolete workarounds (#492942)

parents 04cd9c51 15fbd2d8
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@
  libjpeg_turbo,
  libuv,
  libvorbis,
  mbedtls_2,
  mbedtls,
  openal,
  pcre,
  SDL2,
@@ -28,12 +28,12 @@ stdenv.mkDerivation rec {
    sha256 = "sha256-nVr+fDdna8EEHvIiXsccWFRTYzXfb4GG1zrfL+O6zLA=";
  };

  # incompatible pointer type error: const char ** -> const void **
  # backport of https://github.com/HaxeFoundation/hashlink/pull/767
  postPatch = ''
    substituteInPlace libs/sqlite/sqlite.c \
    substituteInPlace CMakeLists.txt \
     --replace-warn \
       "sqlite3_prepare16_v2(db->db, sql, -1, &r->r, &tl)" \
       "sqlite3_prepare16_v2(db->db, sql, -1, &r->r, (const void**)&tl)"
       "cmake_minimum_required(VERSION 3.1)" \
       "cmake_minimum_required(VERSION 3.13)"
  '';

  buildInputs = [
@@ -43,7 +43,7 @@ stdenv.mkDerivation rec {
    libpng
    libuv
    libvorbis
    mbedtls_2
    mbedtls
    openal
    pcre
    SDL2