mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 02:23:54 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
85 lines
1.8 KiB
Nix
85 lines
1.8 KiB
Nix
{
|
|
mkDerivation,
|
|
lib,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
extra-cmake-modules,
|
|
makeWrapper,
|
|
boost,
|
|
doxygen,
|
|
openssl,
|
|
libmysqlclient,
|
|
postgresql,
|
|
graphviz,
|
|
loki,
|
|
qscintilla,
|
|
qtbase,
|
|
qttools,
|
|
}:
|
|
|
|
mkDerivation {
|
|
pname = "tora";
|
|
version = "3.2.176";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tora-tool";
|
|
repo = "tora";
|
|
rev = "39bf2837779bf458fc72a9f0e49271152e57829f";
|
|
sha256 = "0fr9b542i8r6shgnz33lc3cz333fnxgmac033yxfrdjfglzk0j2k";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
extra-cmake-modules
|
|
makeWrapper
|
|
qttools
|
|
];
|
|
|
|
buildInputs = [
|
|
boost
|
|
doxygen
|
|
graphviz
|
|
loki
|
|
libmysqlclient
|
|
openssl
|
|
postgresql
|
|
qscintilla
|
|
qtbase
|
|
];
|
|
|
|
preConfigure = ''
|
|
substituteInPlace src/widgets/toglobalsetting.cpp \
|
|
--replace 'defaultGvHome = "/usr/bin"' 'defaultGvHome = "${lib.getBin graphviz}/bin"'
|
|
substituteInPlace extlibs/libermodel/dotgraph.cpp \
|
|
--replace /usr/bin/dot ${lib.getBin graphviz}/bin/dot
|
|
'';
|
|
|
|
cmakeFlags = [
|
|
"-DWANT_INTERNAL_LOKI=0"
|
|
"-DWANT_INTERNAL_QSCINTILLA=0"
|
|
# cmake/modules/FindQScintilla.cmake looks in qtbase and for the wrong library name
|
|
"-DQSCINTILLA_INCLUDE_DIR=${qscintilla}/include"
|
|
"-DQSCINTILLA_LIBRARY=${qscintilla}/lib/libqscintilla2.so"
|
|
"-DENABLE_DB2=0"
|
|
"-DENABLE_ORACLE=0"
|
|
"-DENABLE_TERADATA=0"
|
|
"-DQT5_BUILD=1"
|
|
"-Wno-dev"
|
|
];
|
|
|
|
# these libraries are only searched for at runtime so we need to force-link them
|
|
NIX_LDFLAGS = "-lgvc -lmysqlclient -lecpg -lssl -L${libmysqlclient}/lib/mariadb";
|
|
|
|
qtWrapperArgs = [
|
|
''--prefix PATH : ${lib.getBin graphviz}/bin''
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Tora SQL tool";
|
|
mainProgram = "tora";
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
platforms = platforms.linux;
|
|
license = licenses.asl20;
|
|
};
|
|
}
|