{ fetchFromGitHub, stdenv, cmake, obs-studio, opencv, onnx-runtime, git }: stdenv.mkDerivation rec { pname = "obs-backgroundremoval"; version = "0.4.0"; src = fetchFromGitHub { owner = "royshil"; repo = "obs-backgroundremoval"; rev = "4f0348a15103cd4e516d94b629851208280cd4d4"; sha256 = "TI1FlhE0+JL50gAZCSsI+g8savX8GRQkH3jYli/66hQ="; }; cmakeFlags = [ "-DGIT_TAG=v${version}" ]; patches = [ ./cmake_set_version.patch ]; nativeBuildInputs = [ cmake git ]; buildInputs = [ opencv onnx-runtime obs-studio ]; }