mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 06:31:02 +00:00
70cadb6cbd
This fixes build after KDE updates in f228ea521
#22698.
/cc maintainer @abbradar. I only tested starting it up.
46 lines
1.3 KiB
Nix
46 lines
1.3 KiB
Nix
{ stdenv, lib, fetchurl, cmake, extra-cmake-modules, makeQtWrapper
|
|
, karchive, kconfig, kwidgetsaddons, kcompletion, kcoreaddons
|
|
, kguiaddons, ki18n, kitemmodels, kitemviews, kwindowsystem
|
|
, kio, kcrash
|
|
, boost, libraw, fftw, eigen, exiv2, lcms2, gsl, openexr
|
|
, openjpeg, opencolorio, vc, poppler_qt5, curl, ilmbase
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "krita-${version}";
|
|
ver_min = "3.1.2";
|
|
version = "${ver_min}.1";
|
|
|
|
src = fetchurl {
|
|
url = "http://download.kde.org/stable/krita/${ver_min}/${name}.tar.gz";
|
|
sha256 = "934ed82c3f4e55e7819b327c838ea2f307d3bf3d040722501378b01d76a3992d";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake extra-cmake-modules makeQtWrapper ];
|
|
|
|
buildInputs = [
|
|
karchive kconfig kwidgetsaddons kcompletion kcoreaddons kguiaddons
|
|
ki18n kitemmodels kitemviews kwindowsystem kio kcrash
|
|
boost libraw fftw eigen exiv2 lcms2 gsl openexr
|
|
openjpeg opencolorio vc poppler_qt5 curl ilmbase
|
|
];
|
|
|
|
NIX_CFLAGS_COMPILE = [ "-I${ilmbase.dev}/include/OpenEXR" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
postInstall = ''
|
|
for i in $out/bin/*; do
|
|
wrapQtProgram "$i"
|
|
done
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A free an open source painting application";
|
|
homepage = "https://krita.org/";
|
|
maintainers = with maintainers; [ abbradar ];
|
|
platforms = platforms.linux;
|
|
licenses = licenses.gpl2;
|
|
};
|
|
}
|