Merge pull request #71200 from Shopify/seb-libgda-mac
Add support for libgda on darwin
This commit is contained in:
commit
6695d3f08f
@ -15,9 +15,18 @@ assert postgresSupport -> postgresql != null;
|
|||||||
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "16vxv2qvysh22s8h9h6irx96sacagxkz0i4qgi1wc6ibly6fvjjr";
|
sha256 = "16vxv2qvysh22s8h9h6irx96sacagxkz0i4qgi1wc6ibly6fvjjr";
|
||||||
};
|
};
|
||||||
configureFlags = with stdenv.lib; [ "--enable-gi-system-install=no" ]
|
configureFlags = with stdenv.lib; [
|
||||||
++ (optional (mysqlSupport) "--with-mysql=yes")
|
"--enable-gi-system-install=no"
|
||||||
++ (optional (postgresSupport) "--with-postgres=yes");
|
"--with-mysql=${if mysqlSupport then "yes" else "no"}"
|
||||||
|
"--with-postgres=${if postgresSupport then "yes" else "no"}"
|
||||||
|
|
||||||
|
# macOS builds use the sqlite source code that comes with libgda,
|
||||||
|
# as opposed to using the system or brewed sqlite3, which is not supported on macOS,
|
||||||
|
# as mentioned in https://github.com/GNOME/libgda/blob/95eeca4b0470f347c645a27f714c62aa6e59f820/libgda/sqlite/README#L31,
|
||||||
|
# which references the paper https://web.archive.org/web/20100610151539/http://lattice.umiacs.umd.edu/files/functions_tr.pdf
|
||||||
|
# See also https://github.com/Homebrew/homebrew-core/blob/104f9ecd02854a82372b64d63d41356555378a52/Formula/libgda.rb
|
||||||
|
"--enable-system-sqlite=${if stdenv.isDarwin then "no" else "yes"}"
|
||||||
|
];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
@ -39,6 +48,6 @@ assert postgresSupport -> postgresql != null;
|
|||||||
homepage = https://www.gnome-db.org/;
|
homepage = https://www.gnome-db.org/;
|
||||||
license = [ licenses.lgpl2 licenses.gpl2 ];
|
license = [ licenses.lgpl2 licenses.gpl2 ];
|
||||||
maintainers = gnome3.maintainers;
|
maintainers = gnome3.maintainers;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user