2019-05-18 03:22:02 +01:00
|
|
|
{ mkDerivation, lib, stdenv, makeWrapper, fetchurl, cmake, extra-cmake-modules
|
2016-06-01 02:21:56 +01:00
|
|
|
, karchive, kconfig, kwidgetsaddons, kcompletion, kcoreaddons
|
|
|
|
, kguiaddons, ki18n, kitemmodels, kitemviews, kwindowsystem
|
2021-05-14 01:56:27 +01:00
|
|
|
, kio, kcrash, breeze-icons
|
2018-07-01 13:09:58 +01:00
|
|
|
, boost, libraw, fftw, eigen, exiv2, libheif, lcms2, gsl, openexr, giflib
|
2018-09-13 06:22:39 +01:00
|
|
|
, openjpeg, opencolorio, vc, poppler, curl, ilmbase
|
2019-05-29 11:46:55 +01:00
|
|
|
, qtmultimedia, qtx11extras, quazip
|
2019-03-12 12:02:16 +00:00
|
|
|
, python3Packages
|
2016-06-01 02:21:56 +01:00
|
|
|
}:
|
|
|
|
|
2017-05-17 20:26:11 +01:00
|
|
|
mkDerivation rec {
|
2019-07-06 00:04:45 +01:00
|
|
|
pname = "krita";
|
2021-04-26 10:34:44 +01:00
|
|
|
version = "4.4.3";
|
2016-06-01 02:21:56 +01:00
|
|
|
|
2016-11-23 14:53:40 +00:00
|
|
|
src = fetchurl {
|
2021-04-26 10:34:44 +01:00
|
|
|
url = "https://download.kde.org/stable/${pname}/${version}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "0rwghzci2wn2jmisvnzs23yxc2z3d4dcx2qbbhcvjyi3q8ij61nl";
|
2016-06-01 02:21:56 +01:00
|
|
|
};
|
|
|
|
|
2019-05-18 03:22:02 +01:00
|
|
|
nativeBuildInputs = [ cmake extra-cmake-modules python3Packages.sip makeWrapper ];
|
2016-06-01 02:21:56 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
karchive kconfig kwidgetsaddons kcompletion kcoreaddons kguiaddons
|
2021-05-14 01:56:27 +01:00
|
|
|
ki18n kitemmodels kitemviews kwindowsystem kio kcrash breeze-icons
|
2018-07-01 13:09:58 +01:00
|
|
|
boost libraw fftw eigen exiv2 lcms2 gsl openexr libheif giflib
|
2018-09-13 06:22:39 +01:00
|
|
|
openjpeg opencolorio poppler curl ilmbase
|
2019-05-29 11:46:55 +01:00
|
|
|
qtmultimedia qtx11extras quazip
|
2019-03-12 12:02:16 +00:00
|
|
|
python3Packages.pyqt5
|
2018-09-01 19:25:38 +01:00
|
|
|
] ++ lib.optional (stdenv.hostPlatform.isi686 || stdenv.hostPlatform.isx86_64) vc;
|
2016-06-01 02:21:56 +01:00
|
|
|
|
2020-01-11 20:15:12 +00:00
|
|
|
NIX_CFLAGS_COMPILE = [ "-I${ilmbase.dev}/include/OpenEXR" ]
|
|
|
|
++ lib.optional stdenv.cc.isGNU "-Wno-deprecated-copy";
|
2016-06-01 02:21:56 +01:00
|
|
|
|
2019-03-12 12:02:16 +00: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-18 03:22:02 +01:00
|
|
|
postInstall = ''
|
|
|
|
for i in $out/bin/*; do
|
|
|
|
wrapProgram $i --prefix PYTHONPATH : "$PYTHONPATH"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2017-05-17 20:26:11 +01:00
|
|
|
meta = with lib; {
|
2018-03-01 06:36:11 +00:00
|
|
|
description = "A free and open source painting application";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://krita.org/";
|
2016-06-01 02:21:56 +01:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
platforms = platforms.linux;
|
2021-04-26 13:13:57 +01:00
|
|
|
license = licenses.gpl3Only;
|
2016-06-01 02:21:56 +01:00
|
|
|
};
|
|
|
|
}
|