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

49 lines
1.4 KiB
Nix
Raw Normal View History

{ mkDerivation, lib, stdenv, fetchurl, cmake, extra-cmake-modules
2016-06-01 03:21:56 +02:00
, karchive, kconfig, kwidgetsaddons, kcompletion, kcoreaddons
, kguiaddons, ki18n, kitemmodels, kitemviews, kwindowsystem
, kio, kcrash
2018-07-01 14:09:58 +02:00
, boost, libraw, fftw, eigen, exiv2, libheif, lcms2, gsl, openexr, giflib
, openjpeg, opencolorio, vc, poppler, curl, ilmbase
, qtmultimedia, qtx11extras
2018-07-01 14:09:50 +02:00
, python3
2016-06-01 03:21:56 +02:00
}:
2019-01-23 07:13:09 +01:00
let
major = "4.1";
minor = "7";
patch = "101";
in
2017-05-17 21:26:11 +02:00
mkDerivation rec {
2016-06-01 03:21:56 +02:00
name = "krita-${version}";
2019-01-23 07:13:09 +01:00
version = "${major}.${minor}.${patch}";
2016-06-01 03:21:56 +02:00
2016-11-23 15:53:40 +01:00
src = fetchurl {
2019-01-23 07:13:09 +01:00
url = "https://download.kde.org/stable/krita/${major}.${minor}/${name}.tar.gz";
sha256 = "0pvghb17vj3y19wa1n1zfg3yl5206ir3y45znrgdgdw076m5pjav";
2016-06-01 03:21:56 +02:00
};
2017-05-17 21:26:11 +02:00
nativeBuildInputs = [ cmake extra-cmake-modules ];
2016-06-01 03:21:56 +02:00
buildInputs = [
karchive kconfig kwidgetsaddons kcompletion kcoreaddons kguiaddons
ki18n kitemmodels kitemviews kwindowsystem kio kcrash
2018-07-01 14:09:58 +02:00
boost libraw fftw eigen exiv2 lcms2 gsl openexr libheif giflib
openjpeg opencolorio poppler curl ilmbase
qtmultimedia qtx11extras
2018-07-01 14:09:50 +02:00
python3
] ++ lib.optional (stdenv.hostPlatform.isi686 || stdenv.hostPlatform.isx86_64) vc;
2016-06-01 03:21:56 +02:00
2016-09-01 18:11:21 +02:00
NIX_CFLAGS_COMPILE = [ "-I${ilmbase.dev}/include/OpenEXR" ];
2016-06-01 03:21:56 +02:00
2017-05-17 21:26:11 +02:00
meta = with lib; {
2018-03-01 07:36:11 +01:00
description = "A free and open source painting application";
homepage = https://krita.org/;
2016-06-01 03:21:56 +02:00
maintainers = with maintainers; [ abbradar ];
platforms = platforms.linux;
license = licenses.gpl2;
2016-06-01 03:21:56 +02:00
};
}