nixpkgs/pkgs/applications/graphics/krita/default.nix

55 lines
1.6 KiB
Nix
Raw Normal View History

{ mkDerivation, lib, stdenv, fetchurl, cmake, extra-cmake-modules
2016-06-01 02:21:56 +01:00
, karchive, kconfig, kwidgetsaddons, kcompletion, kcoreaddons
, kguiaddons, ki18n, kitemmodels, kitemviews, kwindowsystem
, kio, kcrash
2018-07-01 13:09:58 +01:00
, boost, libraw, fftw, eigen, exiv2, libheif, lcms2, gsl, openexr, giflib
, openjpeg, opencolorio, vc, poppler, curl, ilmbase
, qtmultimedia, qtx11extras
2019-03-12 12:02:16 +00:00
, python3Packages
2016-06-01 02:21:56 +01:00
}:
2019-01-23 06:13:09 +00:00
let
major = "4.1";
2019-03-12 12:02:16 +00:00
minor = "8";
patch = null;
2019-01-23 06:13:09 +00:00
in
2017-05-17 20:26:11 +01:00
mkDerivation rec {
2016-06-01 02:21:56 +01:00
name = "krita-${version}";
2019-03-12 12:02:16 +00:00
version = "${major}.${minor}";
2016-06-01 02:21:56 +01:00
2016-11-23 14:53:40 +00:00
src = fetchurl {
2019-01-23 06:13:09 +00:00
url = "https://download.kde.org/stable/krita/${major}.${minor}/${name}.tar.gz";
2019-03-12 12:02:16 +00:00
sha256 = "0h2rplc76r82b8smk61zci1ijj9xkjmf20pdqa8fc2lz4zicjxh4";
2016-06-01 02:21:56 +01:00
};
2019-03-12 12:02:16 +00:00
nativeBuildInputs = [ cmake extra-cmake-modules python3Packages.sip ];
2016-06-01 02:21:56 +01:00
buildInputs = [
karchive kconfig kwidgetsaddons kcompletion kcoreaddons kguiaddons
ki18n kitemmodels kitemviews kwindowsystem kio kcrash
2018-07-01 13:09:58 +01:00
boost libraw fftw eigen exiv2 lcms2 gsl openexr libheif giflib
openjpeg opencolorio poppler curl ilmbase
qtmultimedia qtx11extras
2019-03-12 12:02:16 +00:00
python3Packages.pyqt5
] ++ lib.optional (stdenv.hostPlatform.isi686 || stdenv.hostPlatform.isx86_64) vc;
2016-06-01 02:21:56 +01:00
2016-09-01 17:11:21 +01:00
NIX_CFLAGS_COMPILE = [ "-I${ilmbase.dev}/include/OpenEXR" ];
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"
];
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";
homepage = https://krita.org/;
2016-06-01 02:21:56 +01:00
maintainers = with maintainers; [ abbradar ];
platforms = platforms.linux;
license = licenses.gpl2;
2016-06-01 02:21:56 +01:00
};
}