2020-05-21 23:57:10 +02:00
|
|
|
{ boost, cmake, fetchFromGitHub, freeglut, freetype, glew, libjpeg, libmypaint
|
2021-06-08 00:59:24 +02:00
|
|
|
, libpng, libtiff, libusb1, lz4, xz, lzo, openblas, opencv, pkg-config, qtbase
|
|
|
|
, qtmultimedia, qtscript, qtserialport, lib, stdenv, superlu, wrapQtAppsHook, }:
|
2020-05-21 23:57:10 +02:00
|
|
|
let source = import ./source.nix { inherit fetchFromGitHub; };
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
inherit (source) src;
|
|
|
|
|
|
|
|
pname = "opentoonz";
|
|
|
|
version = source.versions.opentoonz;
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ];
|
2020-05-21 23:57:10 +02:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
freeglut
|
|
|
|
freetype
|
|
|
|
glew
|
|
|
|
libjpeg
|
|
|
|
libmypaint
|
|
|
|
libpng
|
|
|
|
libtiff
|
|
|
|
libusb1
|
|
|
|
lz4
|
2021-03-14 19:12:53 +01:00
|
|
|
xz
|
2020-05-21 23:57:10 +02:00
|
|
|
lzo
|
|
|
|
openblas
|
2021-06-08 00:59:24 +02:00
|
|
|
opencv
|
2020-05-21 23:57:10 +02:00
|
|
|
qtbase
|
|
|
|
qtmultimedia
|
|
|
|
qtscript
|
2021-06-08 00:59:24 +02:00
|
|
|
qtserialport
|
2020-05-21 23:57:10 +02:00
|
|
|
superlu
|
|
|
|
];
|
|
|
|
|
|
|
|
postUnpack = "sourceRoot=$sourceRoot/toonz";
|
|
|
|
|
|
|
|
cmakeDir = "../sources";
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DTIFF_INCLUDE_DIR=${libtiff.dev}/include"
|
|
|
|
"-DTIFF_LIBRARY=${libtiff.out}/lib/libtiff.so"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
sed -i '/cp -r .*stuff/a\ chmod -R u+w $HOME/.config/OpenToonz/stuff' $out/bin/opentoonz
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Full-featured 2D animation creation software";
|
|
|
|
homepage = "https://opentoonz.github.io/";
|
2021-01-15 14:21:58 +01:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ chkno ];
|
2020-05-21 23:57:10 +02:00
|
|
|
};
|
|
|
|
}
|