2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, wrapQtAppsHook
|
|
|
|
, boost
|
|
|
|
, cairo
|
|
|
|
, ceres-solver
|
|
|
|
, expat
|
|
|
|
, extra-cmake-modules
|
|
|
|
, glog
|
|
|
|
, libXdmcp
|
|
|
|
, python3
|
|
|
|
, wayland
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
2023-07-15 17:15:38 +00:00
|
|
|
minorVersion = "2.5";
|
|
|
|
version = "${minorVersion}.0";
|
|
|
|
OpenColorIO-Configs = fetchFromGitHub {
|
|
|
|
owner = "NatronGitHub";
|
|
|
|
repo = "OpenColorIO-Configs";
|
|
|
|
rev = "Natron-v${minorVersion}";
|
|
|
|
hash = "sha256-TD7Uge9kKbFxOmOCn+TSQovnKTmFS3uERTu5lmZFHbc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit version;
|
2021-03-09 03:18:52 +00:00
|
|
|
pname = "natron";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NatronGitHub";
|
|
|
|
repo = "Natron";
|
|
|
|
rev = "v${version}";
|
|
|
|
fetchSubmodules = true;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-dgScbfyulZPlrngqSw7xwipldoRd8uFO8VP9mlJyhQ8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
cmakeFlags = [ "-DNATRON_SYSTEM_LIBS=ON" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2023-07-15 17:15:38 +00:00
|
|
|
boost
|
|
|
|
expat
|
|
|
|
cairo
|
|
|
|
python3
|
|
|
|
python3.pkgs.pyside2
|
|
|
|
python3.pkgs.shiboken2
|
|
|
|
extra-cmake-modules
|
|
|
|
wayland
|
|
|
|
glog
|
|
|
|
ceres-solver
|
|
|
|
libXdmcp
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share
|
|
|
|
cp -r ${OpenColorIO-Configs} $out/share/OpenColorIO-Configs
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/Natron \
|
2023-07-15 17:15:38 +00:00
|
|
|
--prefix PYTHONPATH : "${python3.pkgs.makePythonPath [ python3.pkgs.qtpy python3.pkgs.pyside2 ]}" \
|
|
|
|
--set-default OCIO "$out/share/OpenColorIO-Configs/blender/config.ocio"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Node-graph based, open-source compositing software";
|
|
|
|
longDescription = ''
|
|
|
|
Node-graph based, open-source compositing software. Similar in
|
|
|
|
functionalities to Adobe After Effects and Nuke by The Foundry.
|
|
|
|
'';
|
|
|
|
homepage = "https://natron.fr/";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl2;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.puffnfresh ];
|
|
|
|
platforms = platforms.linux;
|
2023-07-15 17:15:38 +00:00
|
|
|
broken = stdenv.isLinux && stdenv.isAarch64;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|