Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Zahrun committed Jan 16, 2024
1 parent 7de1a86 commit 25daf81
Showing 1 changed file with 14 additions and 6 deletions.
@@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, obs-studio
, onnxruntime
Expand All @@ -9,25 +10,32 @@

stdenv.mkDerivation rec {
pname = "obs-backgroundremoval";
version = "1.1.10";
version = "0.5.16";

src = fetchFromGitHub {
owner = "royshil";
owner = "occ-ai";
repo = "obs-backgroundremoval";
#rev = "v${version}";
rev = "umireon.build-without-gpu-on-linux";
hash = "sha256-FIf4XCuR8+2kAxu31e11cNFV0oK23wo1Pj/HX4A/RsQ=";
rev = "ddf6df0c9957e5c38e14108f48cda95d26e632e7";
hash = "sha256-Gg+J+gnMDH3DC/BLmTGEQusH8jsyZKtlVR0HUsJgvps=";
};

patches = [
(fetchpatch {
url = "https://github.com/Zahrun/obs-backgroundremoval/commit/2a100ff2636abea18b1f9a54759b805a4c2ce2f4.patch";
sha256 = "sha256-5oo79Qpc+GJ49+Ektwv/wG4RAvyiP+k0xU/NLwFtbXQ=";
})
];

nativeBuildInputs = [ cmake ];
buildInputs = [ obs-studio onnxruntime opencv ];
buildInputs = [ obs-studio onnxruntime.dev opencv ];

dontWrapQtApps = true;

cmakeFlags = [
"-DUSE_SYSTEM_ONNXRUNTIME=ON"
"-DUSE_SYSTEM_OPENCV=ON"
"-DDISABLE_ONNXRUNTIME_GPU=ON"
#"-DDISABLE_ONNXRUNTIME_GPU=ON"
];

postInstall = ''
Expand Down

0 comments on commit 25daf81

Please sign in to comment.