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
QOwnNotes: init at 17.03.08 #22836
QOwnNotes: init at 17.03.08 #22836
Conversation
On my system I need to run this like so: NIX_PROFILES="/nix/var/nix/profiles/default $HOME/.nix-profile" QOwnNotes to avoid this message: QOwnNotes(22546)/default unknown: Cannot mix incompatible Qt library (version 0x50601) with this library (version 0x50602)
Aborted That happens because |
@@ -0,0 +1,32 @@ | |||
{ stdenv, fetchgit, qt5 }: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are using qt5.callPackage
, so instead of importing qt5
here, you must import the specific submodules you use. This is so that your package sees a consistent set of dependencies.
|
||
buildInputs = [ qt5.qtbase qt5.qtmultimedia qt5.qtscript ]; | ||
|
||
configurePhase = '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add qmakeHook
to your buildInputs
and remove the custom configure phase.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this project the .pro
file is located in src
. Does qmakeHook
have an option to deal with that?
The project also has a cmake build setup which also needs tweaking because the translations try to install in qt-base
.
-- Install configuration: "Release"
CMake Error at src/cmake_install.cmake:44 (file):
file cannot create directory:
/nix/store/zacdil7n5av96y85rp0l74hnxw29kk4z-qtbase-5.6.2/translations.
Maybe need administrative privileges.
Call Stack (most recent call first):
cmake_install.cmake:37 (include)
Unfortunately, we cannot support installing Qt libraries into system and user profiles. However, using |
7bde1de
to
c66a14d
Compare
The loading of the library
|
c66a14d
to
1a6ad13
Compare
@ttuegel The current version works but still has a few not so pretty things: NIX_PROFILES and configurePhase. |
QOwnNotes is a plain-text file notepad and todo-list manager with markdown support and ownCloud integration. http://www.qownnotes.org
@vandenoever I'm closing this PR since it is outdated by now. I have some working there for the last upstream version. It builds and runs but language selection from the settings does not seem to have any effect... If you want to improve on that :) |
QOwnNotes is a plain-text file notepad and todo-list manager with markdown support and ownCloud integration. http://www.qownnotes.org
Motivation for this change
Nice note taking application that integrates with NextCloud and OwnCloud.
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)