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
gmic_krita_qt: Init at 2.3.6 #47442
gmic_krita_qt: Init at 2.3.6 #47442
Conversation
gmic_qt = fetchFromGitHub { | ||
owner = "c-koi"; | ||
repo = "gmic-qt"; | ||
rev = "9e992cff2db418032b849458f5c9443267c7162c"; |
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.
Do they have release versions or git tags instead of hashes?
Do you also have a hint for future people to know what git hashes they have to use that are compatible with each other?
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.
yes, they use tags with version numbers. Since the tools have the same version numbers and are relaesed almost synchronously, there should be no problem.
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.
Ok then please use tags to fetch the source.
|
||
cp ${gmic_stdlib} gmic/src/gmic_stdlib.h | ||
|
||
make -C gmic/src CImg.h gmic_stdlib.h |
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.
It looks a bit cleaner if this would be in preConfigure
.
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.
will do.
cp ${gmic_stdlib} gmic/src/gmic_stdlib.h | ||
|
||
make -C gmic/src CImg.h gmic_stdlib.h | ||
cd gmic_qt |
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.
This should stay after build or else you have to do: make -C ../gmic/src CImg.h gmic_stdlib.h
, which is also possible.
cd gmic_qt | ||
''; | ||
|
||
preConfigure = '' | ||
cp ${gmic_stdlib} gmic/src/gmic_stdlib.h |
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.
This can stay in unpackPhase.
@GrahamcOfBorg build gmic_krita_qt |
pkgs/top-level/all-packages.nix
Outdated
@@ -1370,6 +1370,8 @@ with pkgs; | |||
|
|||
gmic = callPackage ../tools/graphics/gmic { }; | |||
|
|||
gmic-qt = callPackage ../tools/graphics/gmic-qt { }; |
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.
gmic_krita_qt
or gmic_qt
?
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.
yeah. gmic_krita_qt is more accurate
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: gmic_krita_qt Partial log (click to expand)
|
No attempt on x86_64-linux (full log) The following builds were skipped because they don't evaluate on x86_64-linux: gmic_krita_qt Partial log (click to expand)
|
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: gmic_krita_qt Partial log (click to expand)
|
@GrahamcOfBorg build gmic_qt |
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: gmic_qt Partial log (click to expand)
|
No attempt on x86_64-linux (full log) The following builds were skipped because they don't evaluate on x86_64-linux: gmic_qt Partial log (click to expand)
|
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: gmic_qt Partial log (click to expand)
|
@GrahamcOfBorg build gmic-qt |
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: gmic-qt Partial log (click to expand)
|
Unexpected error: command failed with exit code 1 on x86_64-linux (full log) Attempted: gmic-qt Partial log (click to expand)
|
Unexpected error: command failed with exit code 1 on aarch64-linux (full log) Attempted: gmic-qt Partial log (click to expand)
|
@@ -0,0 +1,82 @@ | |||
{ stdenv, fetchurl, fetchFromGitHub, cmake, ninja, pkgconfig, 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.
according to https://nixos.org/nixpkgs/manual/#sec-language-qt you should not use qt5
as an argument but use libsForQt5.callPackage
(or maybe a plugin qualifies as a library ?)
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.
Agreed.
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.
well, gmic_krita_qt depends on qt5 as its gui framework...
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.
True, but if you use libsForQt5.callPackage
in all-packages.nix then you can reference dependencies directly instead of using the qt5 set. For example { qtbase }
instead of { 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.
This ensures that all dependencies have the same qt5 version.
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.
i changed it in the latest commit
This also need to be fixed:
|
see ofborg output. |
@GrahamcOfBorg build gmic-qt |
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: gmic-qt Partial log (click to expand)
|
No attempt on x86_64-linux (full log) The following builds were skipped because they don't evaluate on x86_64-linux: gmic-qt Partial log (click to expand)
|
@GrahamcOfBorg build gmic_krita_qt |
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: gmic_krita_qt Partial log (click to expand)
|
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: gmic-qt Partial log (click to expand)
|
Failure on x86_64-linux (full log) Attempted: gmic_krita_qt Partial log (click to expand)
|
Failure on aarch64-linux (full log) Attempted: gmic_krita_qt Partial log (click to expand)
|
@GrahamcOfBorg build gmic_krita_qt |
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: gmic_krita_qt Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: gmic_krita_qt Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: gmic_krita_qt Partial log (click to expand)
|
Motivation for this change
This tool has been missing in the toolbox.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)