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
Adding photoflow #35545
Adding photoflow #35545
Conversation
meta = { | ||
description = "A fully non-destructive photo retouching program providing a complete RAW image editing workflow"; | ||
homepage = http://aferrero2707.github.io/PhotoFlow/; | ||
license = stdenv.lib.licenses.gpl3Plus; |
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 could factor out stdenv.lib
before the attribute set using with
construction.
sha256 = "06gsw0yhkdnhgcvnbsc5s4agm678ap10djvji8m2qssgnjn26vgs"; | ||
}; | ||
|
||
buildInputs = [ gettext glib libxml2 pkgconfig swig automake gobjectIntrospection cmake libtiff libjpeg fftw exiv2 lensfun gtkmm2 libraw lcms2 libexif vips expat pcre pugixml ]; |
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.
Tools used for building the software (gettext libxml2 pkgconfig swig automake gobjectIntrospection cmake
) should go to nativeBuildInputs
.
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.
Also when using cmake
, you should also add ninja
.
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.
Also, you should use gtkmm3
in accordance with #18559
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.
Photoflow can be compiled with gtkmm3 but unfortunately it's not very usable.
Discussed here: https://discuss.pixls.us/t/help-needed-for-gtk3-theme/5803
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.
Maybe mention it in comment, them.
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.
That makes sense. Anyway thanks for great review.
|
||
buildInputs = [ gettext glib libxml2 pkgconfig swig automake gobjectIntrospection cmake libtiff libjpeg fftw exiv2 lensfun gtkmm2 libraw lcms2 libexif vips expat pcre pugixml ]; | ||
|
||
enableParallelBuilding = true; |
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 is not necessary, cmake
builds in parallel by default.
|
||
meta = { | ||
description = "A fully non-destructive photo retouching program providing a complete RAW image editing workflow"; | ||
homepage = http://aferrero2707.github.io/PhotoFlow/; |
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.
Use https here.
src = fetchFromGitHub { | ||
owner = "aferrero2707"; | ||
repo = "PhotoFlow"; | ||
rev = "914561fcb1ca97de4814c4024d9a76e4b435c2af"; |
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.
If you extract a version into a separate variable, you can use "v${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.
[Reportedly](aferrero2707/PhotoFlow#175 (comment), the stable branch is more stable then the release. Could you use commit aferrero2707/PhotoFlow@-f9bbea183fa02412d1d17075955d2284eeaf8174 and name the package photoflow-unstable-03-06
?
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.
Did this. Release is quite old already so I hope this is better but for example gtk3 did more worse on this.
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.
Should there be also year in "version number"? I set package name to photoflow-unstable-2018-03-06 and amended commit message according.
Also please use |
9435173
to
0b9dc78
Compare
af39079
to
79ecd4f
Compare
libjpeg | ||
fftw | ||
exiv2 | ||
lensfun |
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.
For some reason, photoflow builds its own version of lensfun. Could you fix it?
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 do it.
cmakeFlags = [
"-DBUNDLED_EXIV2=OFF"
"-DBUNDLED_LENSFUN=OFF"
"-DBUNDLED_GEXIV2=OFF"
];
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.
Done
@@ -0,0 +1,49 @@ | |||
{ stdenv, fetchFromGitHub, gettext, glib, libxml2, pkgconfig, swig, automake, gobjectIntrospection, cmake, ninja, libtiff, libjpeg, fftw, exiv2, lensfun, gtkmm2, libraw, lcms2, libexif, vips, expat, pcre, pugixml }: |
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.
Depends on https://github.com/darktable-org/rawspeed, could you package it as well and use that instead of the bundled one?
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.
Hmm, apparently it is not possible at the moment. I opened an issue aferrero2707/PhotoFlow#175
Okay to merge? |
I guess it is. |
Motivation for this change
Adding new software
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)