Unverified Commit 0ed5d361 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

ldmud: fix build, move off of Python310 (#489427)

parents dd52ca92 1f45aafb
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@
  tlsSupport ? false,
  openssl,
  pythonSupport ? false,
  python310,
  python3,
}:

stdenv.mkDerivation (finalAttrs: {
@@ -61,7 +61,7 @@ stdenv.mkDerivation (finalAttrs: {
  ++ lib.optional postgresSupport libpq
  ++ lib.optional sqliteSupport sqlite
  ++ lib.optional tlsSupport openssl
  ++ lib.optional pythonSupport python310
  ++ lib.optional pythonSupport python3
  ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];

  # To support systems without autoconf LD puts its configure.ac in a non-default
@@ -94,6 +94,10 @@ stdenv.mkDerivation (finalAttrs: {
      export LDFLAGS="$LDFLAGS -L${libiconv}/lib -liconv"
    '';

  env.NIX_CFLAGS_COMPILE =
    # Required for legacy C code in source
    "-std=gnu99";

  installTargets = [
    "install-driver"
    "install-utils"