sqlitestudio: include official plugins (#413765)
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
{
|
||||
stdenv,
|
||||
lib,
|
||||
python3,
|
||||
|
||||
sqlitestudio,
|
||||
}:
|
||||
stdenv.mkDerivation {
|
||||
pname = "sqlitestudio-plugins";
|
||||
|
||||
inherit (sqlitestudio)
|
||||
version
|
||||
src
|
||||
nativeBuildInputs
|
||||
buildInputs
|
||||
;
|
||||
|
||||
postConfigure = ''
|
||||
uic ./SQLiteStudio3/guiSQLiteStudio/mainwindow.ui -o ./SQLiteStudio3/guiSQLiteStudio/ui_mainwindow.h
|
||||
'';
|
||||
|
||||
qmakeFlags = [
|
||||
"./Plugins"
|
||||
"PYTHON_VERSION=${python3.pythonVersion}"
|
||||
"INCLUDEPATH+=${python3}/include/python${python3.pythonVersion}"
|
||||
];
|
||||
|
||||
# bin/ld: final link failed: bad value
|
||||
enableParallelBuilding = false;
|
||||
|
||||
meta = sqlitestudio.meta // {
|
||||
description = "Official plugins for SQLiteStudio, a free, open source, multi-platform SQLite database manager";
|
||||
badPlatforms = [ lib.systems.inspect.platformPatterns.isStatic ];
|
||||
};
|
||||
}
|
||||
@@ -8,6 +8,9 @@
|
||||
python3,
|
||||
copyDesktopItems,
|
||||
makeDesktopItem,
|
||||
|
||||
sqlitestudio-plugins,
|
||||
includeOfficialPlugins ? lib.meta.availableOn stdenv.hostPlatform sqlitestudio-plugins,
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "sqlitestudio";
|
||||
@@ -41,7 +44,14 @@ stdenv.mkDerivation rec {
|
||||
qtscript
|
||||
]);
|
||||
|
||||
qmakeFlags = [ "./SQLiteStudio3" ];
|
||||
qmakeFlags =
|
||||
[
|
||||
"./SQLiteStudio3"
|
||||
"DEFINES+=NO_AUTO_UPDATES"
|
||||
]
|
||||
++ lib.optionals includeOfficialPlugins [
|
||||
"DEFINES+=PLUGINS_DIR=${sqlitestudio-plugins}/lib/sqlitestudio"
|
||||
];
|
||||
|
||||
desktopItems = [
|
||||
(makeDesktopItem {
|
||||
@@ -67,7 +77,7 @@ stdenv.mkDerivation rec {
|
||||
meta = {
|
||||
description = "Free, open source, multi-platform SQLite database manager";
|
||||
homepage = "https://sqlitestudio.pl/";
|
||||
license = lib.licenses.gpl3;
|
||||
license = lib.licenses.gpl3Only;
|
||||
mainProgram = "sqlitestudio";
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ asterismono ];
|
||||
|
||||
Reference in New Issue
Block a user