tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
obs-backgroundremoval: reinit at 0.5.16
Aroun Olorin
2 years ago
d763075d
3e4e464b
+47
-2
2 changed files
expand all
collapse all
unified
split
pkgs
applications
video
obs-studio
plugins
default.nix
obs-backgroundremoval
default.nix
+2
-2
pkgs/applications/video/obs-studio/plugins/default.nix
···
14
14
15
15
looking-glass-obs = callPackage ./looking-glass-obs.nix { };
16
16
17
17
+
obs-backgroundremoval = callPackage ./obs-backgroundremoval { };
18
18
+
17
19
obs-gstreamer = callPackage ./obs-gstreamer.nix { };
18
20
19
21
obs-hyperion = qt6Packages.callPackage ./obs-hyperion/default.nix { };
···
39
41
};
40
42
41
43
obs-websocket = throw "obs-websocket has been removed: Functionality has been integrated into obs-studio itself.";
42
42
-
43
43
-
obs-backgroundremoval = throw "obs-backgroundremoval has been removed: It does not work anymore and is unmaintained.";
44
44
45
45
wlrobs = callPackage ./wlrobs.nix { };
46
46
}
+45
pkgs/applications/video/obs-studio/plugins/obs-backgroundremoval/default.nix
···
1
1
+
{ lib
2
2
+
, stdenv
3
3
+
, fetchFromGitHub
4
4
+
, cmake
5
5
+
, obs-studio
6
6
+
, onnxruntime
7
7
+
, opencv
8
8
+
}:
9
9
+
10
10
+
stdenv.mkDerivation rec {
11
11
+
pname = "obs-backgroundremoval";
12
12
+
version = "0.5.16";
13
13
+
14
14
+
src = fetchFromGitHub {
15
15
+
owner = "royshil";
16
16
+
repo = "obs-backgroundremoval";
17
17
+
rev = "v${version}";
18
18
+
hash = "sha256-E+pm/Ma6dZTYlX3DpB49ynTETsRS2TBqgHSCijl/Txc=";
19
19
+
};
20
20
+
21
21
+
nativeBuildInputs = [ cmake ];
22
22
+
buildInputs = [ obs-studio onnxruntime opencv ];
23
23
+
24
24
+
dontWrapQtApps = true;
25
25
+
26
26
+
cmakeFlags = [
27
27
+
"-DUSE_SYSTEM_ONNXRUNTIME=ON"
28
28
+
"-DUSE_SYSTEM_OPENCV=ON"
29
29
+
];
30
30
+
31
31
+
postInstall = ''
32
32
+
mkdir $out/lib $out/share
33
33
+
mv $out/obs-plugins/64bit $out/lib/obs-plugins
34
34
+
rm -rf $out/obs-plugins
35
35
+
mv $out/data $out/share/obs
36
36
+
'';
37
37
+
38
38
+
meta = with lib; {
39
39
+
description = "OBS plugin to replace the background in portrait images and video";
40
40
+
homepage = "https://github.com/royshil/obs-backgroundremoval";
41
41
+
maintainers = with maintainers; [ zahrun ];
42
42
+
license = licenses.mit;
43
43
+
platforms = [ "x86_64-linux" "i686-linux" ];
44
44
+
};
45
45
+
}