Change:
<del> { lib, stdenv, fetchurl, qt4, pkg-config, boost, expat, cairo, python2Packages, cmake, flex, bison, pango, librsvg, librevenge, libxml2, libcdr, libzip, poppler, imagemagick, openexr, ffmpeg, opencolorio_1, openimageio_1, qmake4Hook, libpng, libGL, lndir, libraw, openjpeg, libwebp, fetchFromGitHub }: </del> <ins> { lib , stdenv , fetchFromGitHub , cmake , pkg-config , wrapQtAppsHook , boost , cairo , ceres-solver , expat , extra-cmake-modules , glog , libXdmcp , python3 , wayland }: </ins> let <del> minorVersion = "2.3"; version = "${minorVersion}.15"; OpenColorIO-Configs = fetchurl { url = "https://github.com/NatronGitHub/OpenColorIO-Configs/archive/Natron-v${minorVersion}.tar.gz"; sha256 = "AZK9J+RnMyxOYcAQOAQZj5QciPQ999m6jrtBt5rdpkA="; }; seexpr = stdenv.mkDerivation rec { version = "1.0.1"; pname = "seexpr"; src = fetchurl { url = "https://github.com/wdas/SeExpr/archive/rel-${version}.tar.gz"; sha256 = "1ackh0xs4ip7mk34bam8zd4qdymkdk0dgv8x0f2mf6gbyzzyh7lp"; }; nativeBuildInputs = [ cmake ]; buildInputs = [ libpng flex bison ]; }; buildPlugin = { pluginName, sha256, nativeBuildInputs ? [], buildInputs ? [], preConfigure ? "", postPatch ? "" }: stdenv.mkDerivation { pname = "openfx-${pluginName}"; version = version; src = fetchurl { url = "https://github.com/NatronGitHub/openfx-${pluginName}/releases/download/Natron-${version}/openfx-${pluginName}-Natron-${version}.tar.xz"; inherit sha256; }; inherit nativeBuildInputs buildInputs postPatch; preConfigure = '' makeFlagsArray+=("CONFIG=release") makeFlagsArray+=("PLUGINPATH=$out/Plugins/OFX/Natron") ${preConfigure} ''; }; lodepngcpp = fetchurl { url = "https://raw.githubusercontent.com/lvandeve/lodepng/a70c086077c0eaecbae3845e4da4424de5f43361/lodepng.cpp"; sha256 = "1dxkkr4jbmvlwfr7m16i1mgcj1pqxg9s1a7y3aavs9rrk0ki8ys2"; }; lodepngh = fetchurl { url = "https://raw.githubusercontent.com/lvandeve/lodepng/a70c086077c0eaecbae3845e4da4424de5f43361/lodepng.h"; sha256 = "14drdikd0vws3wwpyqq7zzm5z3kg98svv4q4w0hr45q6zh6hs0bq"; }; cimgversion = "89b9d062ec472df3d33989e6d5d2a8b50ba0775c"; CImgh = fetchurl { url = "https://raw.githubusercontent.com/dtschump/CImg/${cimgversion}/CImg.h"; sha256 = "sha256-NbYpZDNj2oZ+wqoEkRwwCjiujdr+iGOLA0Pa0Ynso6U="; }; inpainth = fetchurl { url = "https://raw.githubusercontent.com/dtschump/CImg/${cimgversion}/plugins/inpaint.h"; sha256 = "sha256-cd28a3VOs5002GkthHkbIUrxZfKuGhqIYO4Oxe/2HIQ="; </del> <ins> minorVersion = "2.5"; version = "${minorVersion}.0"; OpenColorIO-Configs = fetchFromGitHub { owner = "NatronGitHub"; repo = "OpenColorIO-Configs"; rev = "Natron-v${minorVersion}"; hash = "sha256-TD7Uge9kKbFxOmOCn+TSQovnKTmFS3uERTu5lmZFHbc="; </ins> }; <del> plugins = map buildPlugin [ ({ pluginName = "arena"; sha256 = "tUb6myG03mRieUAfgRZfv5Ap+cLvbpNrLMYCGTiAq8c="; nativeBuildInputs = [ pkg-config ]; buildInputs = [ pango librsvg librevenge libcdr opencolorio_1 libxml2 libzip poppler imagemagick ]; preConfigure = '' sed -i 's|pkg-config poppler-glib|pkg-config poppler poppler-glib|g' Makefile.master for i in Extra Bundle; do cp ${lodepngcpp} $i/lodepng.cpp cp ${lodepngh} $i/lodepng.h done ''; }) ({ pluginName = "io"; sha256 = "OQg6a5wNy9TFFySjmgd1subvXRxY/ZnSOCkaoUo+ZaA="; nativeBuildInputs = [ pkg-config ]; buildInputs = [ libpng ffmpeg openexr opencolorio_1 openimageio_1 boost libGL seexpr libraw openjpeg libwebp ]; }) ({ pluginName = "misc"; sha256 = "XkdQyWI9ilF6IoP3yuHulNUZRPLX1m4lq/+RbXsrFEQ="; buildInputs = [ libGL ]; postPatch = '' cp '${inpainth}' CImg/Inpaint/inpaint.h patch -p0 -dCImg < CImg/Inpaint/inpaint.h.patch # taken from the Makefile; it gets skipped if the file already exists cp '${CImgh}' CImg/CImg.h ''; }) ]; </del> in stdenv.mkDerivation { inherit version;

Discussion:
Describe the bug It's impossible to install natron as the package is marked as broken. To Reproduce Steps to reproduce the behavior: natron to systemPackages Expected behavior Package to system as usual Screenshots [nix sudo nixos-rebuild switch building Nix... building the system configuration... error: --- ThrownError
------------------------------------------------- nix-build Package ‘natron-2.1.9’ in /nix/store/h56h9jaa88b5mhwmg7hqn2w426ljg63c-nixos- is marked as broken, refusing to evaluate. a) For you can set { = true; } in to override this. b) For , , or any other Nix command you can add { allowBroken = true; } to (use '--show-trace' to show detailed location information) system: host os: multi-user?: sandbox: version: channels(root): nixpkgs: yaml attribute: module:
note: it seems to work when installed via flatpak ( on flathub)
I marked this as stale due to inactivity. &rarr;