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

19 lines
543 B
Nix
Raw Normal View History

2021-12-18 16:23:14 +01:00
{ 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=";
2021-12-18 16:23:14 +01:00
};
cmakeFlags = [ "-DGIT_TAG=v${version}" ];
patches = [ ./cmake_set_version.patch ];
nativeBuildInputs = [ cmake git ];
buildInputs = [ opencv onnx-runtime obs-studio ];
}