Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sqlitebrowser: 3.10.0 -> 3.10.1 and make it work with Qt 5.9 #31120

Merged
merged 1 commit into from Nov 7, 2017

Conversation

peterhoeg
Copy link
Member

Motivation for this change

We were building it against qt 5.6 but it can be made to work with 5.9. Not sure if this is the right way to do this though (getting rid of references to Test and PrintSupport).

Cc: @matthiasbeyer @ttuegel

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@peterhoeg peterhoeg requested a review from nbp as a code owner November 2, 2017 07:27
@globin globin requested a review from ttuegel November 2, 2017 07:56
Copy link
Contributor

@matthiasbeyer matthiasbeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Builds and starts here, I'll give it a go! 👍


cmakeFlags = [ "-DUSE_QT5=TRUE" ];

# A regression was introduced in CMakeLists.txt on v3.9.x
# See https://github.com/sqlitebrowser/sqlitebrowser/issues/832 and issues/755
postPatch = ''
substituteInPlace CMakeLists.txt --replace 'project("DB Browser for SQLite")' 'project(sqlitebrowser)'
substituteInPlace CMakeLists.txt \
--replace 'project("DB Browser for SQLite")' 'project(sqlitebrowser)' \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That substitution is not needed anymore: CMakeLists.txt was fixed upstream for 3.10.x
You can also remove the 2 lines of comments above regarding this past issue.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done (and thanks!)

mkDerivation rec {
version = "3.10.0";
let
qscintillaLib = (qscintilla.override { withQt5 = true; });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

libsForQt5 provide qscintilla with withQt5, no need to override.

homepage = http://sqlitebrowser.org/;
license = licenses.gpl3;
maintainers = with maintainers; [ matthiasbeyer ];
platforms = platforms.linux; # can only test on linux
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, don't align attributes for simplicity and consistency with other packages.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need a style guide...

@peterhoeg
Copy link
Member Author

Unless @ttuegel has any problems with the ugly "make it work with qt 5.9" stuff in here, I'm going to go ahead and merge this.

@peterhoeg peterhoeg merged commit 376516f into NixOS:master Nov 7, 2017
@peterhoeg peterhoeg deleted the f/sqlite branch November 7, 2017 02:28
@peterhoeg peterhoeg restored the f/sqlite branch November 7, 2017 09:17
@peterhoeg peterhoeg deleted the f/sqlite branch November 7, 2017 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants