nixos-config/pkgs/obs-backgroundremoval/default.nix

27 lines
550 B
Nix
Raw Normal View History

2022-03-01 22:19:03 +01:00
{
fetchFromGitHub,
stdenv,
cmake,
obs-studio,
opencv,
onnx-runtime,
git,
}:
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";
sha256 = "TI1FlhE0+JL50gAZCSsI+g8savX8GRQkH3jYli/66hQ=";
2021-12-18 16:23:14 +01:00
};
2022-03-01 22:19:03 +01:00
cmakeFlags = ["-DGIT_TAG=v${version}"];
patches = [./cmake_set_version.patch];
2021-12-18 16:23:14 +01:00
2022-03-01 22:19:03 +01:00
nativeBuildInputs = [cmake git];
buildInputs = [opencv onnx-runtime obs-studio];
2021-12-18 16:23:14 +01:00
}