diff --git a/pkgs/applications/graphics/krita/default.nix b/pkgs/applications/graphics/krita/default.nix new file mode 100644 index 000000000000..e8d2951dd169 --- /dev/null +++ b/pkgs/applications/graphics/krita/default.nix @@ -0,0 +1,45 @@ +{ stdenv, lib, fetchgit, 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}"; + version = "3.0"; + + src = fetchgit { + url = "http://phabricator.kde.org/diffusion/KRITA/krita.git"; + rev = "refs/tags/v${version}"; + sha256 = "0aas86667ncp8jz00c8qk7bm26g76l65cysh06wxr8kxbvqynrdn"; + }; + + 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}/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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1377f1b958e1..065bca2e27ab 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15790,6 +15790,11 @@ in konversation = callPackage ../applications/networking/irc/konversation/1.6.nix { }; + krita = callPackage ../applications/graphics/krita { + vc = vc_0_7; + openjpeg = openjpeg_1; + }; + phonon = callPackage ../development/libraries/phonon { }; phonon-backend-gstreamer = callPackage ../development/libraries/phonon/backends/gstreamer.nix { };