2019-05-17 19:22:02 -07:00
|
|
|
{ mkDerivation, lib, stdenv, makeWrapper, fetchurl, cmake, extra-cmake-modules
|
2016-05-31 18:21:56 -07:00
|
|
|
, karchive, kconfig, kwidgetsaddons, kcompletion, kcoreaddons
|
|
|
|
, kguiaddons, ki18n, kitemmodels, kitemviews, kwindowsystem
|
|
|
|
, kio, kcrash
|
2018-07-01 05:09:58 -07:00
|
|
|
, boost, libraw, fftw, eigen, exiv2, libheif, lcms2, gsl, openexr, giflib
|
2018-09-12 22:22:39 -07:00
|
|
|
, openjpeg, opencolorio, vc, poppler, curl, ilmbase
|
2019-05-29 03:46:55 -07:00
|
|
|
, qtmultimedia, qtx11extras, quazip
|
2019-03-12 05:02:16 -07:00
|
|
|
, python3Packages
|
2016-05-31 18:21:56 -07:00
|
|
|
}:
|
|
|
|
|
2017-05-17 12:26:11 -07:00
|
|
|
mkDerivation rec {
|
2019-07-05 16:04:45 -07:00
|
|
|
pname = "krita";
|
2019-08-04 10:10:53 -07:00
|
|
|
version = "4.2.5";
|
2016-05-31 18:21:56 -07:00
|
|
|
|
2016-11-23 06:53:40 -08:00
|
|
|
src = fetchurl {
|
2019-07-05 16:04:45 -07:00
|
|
|
url = "https://download.kde.org/stable/${pname}/${version}/${pname}-${version}.tar.gz";
|
2019-08-04 10:10:53 -07:00
|
|
|
sha256 = "1f14r2mrqasl6nr3sss0xy2h8xlxd5wdcjcd64m9nz2gwlm39r7w";
|
2016-05-31 18:21:56 -07:00
|
|
|
};
|
|
|
|
|
2019-05-17 19:22:02 -07:00
|
|
|
nativeBuildInputs = [ cmake extra-cmake-modules python3Packages.sip makeWrapper ];
|
2016-05-31 18:21:56 -07:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
karchive kconfig kwidgetsaddons kcompletion kcoreaddons kguiaddons
|
|
|
|
ki18n kitemmodels kitemviews kwindowsystem kio kcrash
|
2018-07-01 05:09:58 -07:00
|
|
|
boost libraw fftw eigen exiv2 lcms2 gsl openexr libheif giflib
|
2018-09-12 22:22:39 -07:00
|
|
|
openjpeg opencolorio poppler curl ilmbase
|
2019-05-29 03:46:55 -07:00
|
|
|
qtmultimedia qtx11extras quazip
|
2019-03-12 05:02:16 -07:00
|
|
|
python3Packages.pyqt5
|
2018-09-01 11:25:38 -07:00
|
|
|
] ++ lib.optional (stdenv.hostPlatform.isi686 || stdenv.hostPlatform.isx86_64) vc;
|
2016-05-31 18:21:56 -07:00
|
|
|
|
2016-09-01 09:11:21 -07:00
|
|
|
NIX_CFLAGS_COMPILE = [ "-I${ilmbase.dev}/include/OpenEXR" ];
|
2016-05-31 18:21:56 -07:00
|
|
|
|
2019-03-12 05:02:16 -07:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DPYQT5_SIP_DIR=${python3Packages.pyqt5}/share/sip/PyQt5"
|
|
|
|
"-DPYQT_SIP_DIR_OVERRIDE=${python3Packages.pyqt5}/share/sip/PyQt5"
|
|
|
|
"-DCMAKE_BUILD_TYPE=RelWithDebInfo"
|
|
|
|
];
|
|
|
|
|
2019-05-17 19:22:02 -07:00
|
|
|
postInstall = ''
|
|
|
|
for i in $out/bin/*; do
|
|
|
|
wrapProgram $i --prefix PYTHONPATH : "$PYTHONPATH"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2017-05-17 12:26:11 -07:00
|
|
|
meta = with lib; {
|
2018-02-28 22:36:11 -08:00
|
|
|
description = "A free and open source painting application";
|
2017-08-01 13:03:30 -07:00
|
|
|
homepage = https://krita.org/;
|
2016-05-31 18:21:56 -07:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
platforms = platforms.linux;
|
2017-04-30 04:42:35 -07:00
|
|
|
license = licenses.gpl2;
|
2016-05-31 18:21:56 -07:00
|
|
|
};
|
|
|
|
}
|