Commit cc1a2322 authored by Nikolay Korotkiy's avatar Nikolay Korotkiy
Browse files

cudatext: fix gtk2 build

parent 3d76922d
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -66,8 +66,12 @@ stdenv.mkDerivation rec {
  NIX_LDFLAGS = "--as-needed -rpath ${lib.makeLibraryPath buildInputs}";

  buildPhase = lib.concatStringsSep "\n" (lib.mapAttrsToList (name: dep: ''
    ln -s ${dep} ${name}
    cp -r ${dep} ${name}
  '') deps) + ''
    # See https://wiki.freepascal.org/CudaText#How_to_compile_CudaText
    substituteInPlace ATSynEdit/atsynedit/atsynedit_package.lpk \
      --replace GTK2_IME_CODE _GTK2_IME_CODE

    lazbuild --lazarusdir=${lazarus}/share/lazarus --pcp=./lazarus --ws=${widgetset} \
      bgrabitmap/bgrabitmap/bgrabitmappack.lpk \
      EncConv/encconv/encconv_package.lpk \