2022-04-27 00:21:19 +02:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, stdenv
|
|
|
|
, cmake
|
|
|
|
, obs-studio
|
|
|
|
, opencv
|
|
|
|
, onnx-runtime
|
|
|
|
, git
|
|
|
|
,
|
2022-03-01 22:19:03 +01:00
|
|
|
}:
|
2021-12-18 16:23:14 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "obs-backgroundremoval";
|
|
|
|
version = "0.4.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "royshil";
|
|
|
|
repo = "obs-backgroundremoval";
|
|
|
|
rev = "4f0348a15103cd4e516d94b629851208280cd4d4";
|
2021-12-20 12:07:24 +01:00
|
|
|
sha256 = "TI1FlhE0+JL50gAZCSsI+g8savX8GRQkH3jYli/66hQ=";
|
2021-12-18 16:23:14 +01:00
|
|
|
};
|
|
|
|
|
2022-04-27 00:21:19 +02:00
|
|
|
cmakeFlags = [ "-DGIT_TAG=v${version}" ];
|
|
|
|
patches = [ ./cmake_set_version.patch ];
|
2021-12-18 16:23:14 +01:00
|
|
|
|
2022-04-27 00:21:19 +02:00
|
|
|
nativeBuildInputs = [ cmake git ];
|
|
|
|
buildInputs = [ opencv onnx-runtime obs-studio ];
|
2021-12-18 16:23:14 +01:00
|
|
|
}
|