about summary refs log tree commit diff
path: root/pkgs/applications/video/obs-studio/plugins/obs-rgb-levels-filter.nix
blob: aff227211e4d71db359854ee9bb9dcc2baf38f37 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ lib
, stdenv
, fetchFromGitHub
, cmake
, obs-studio
}:

stdenv.mkDerivation rec {
  pname = "obs-rgb-levels-filter";
  version = "1.0.0";

  src = fetchFromGitHub {
    owner = "wimpysworld";
    repo = "obs-rgb-levels-filter";
    rev = version;
    sha256 = "sha256-QREwK9nBhjCBFslXUj9bGUGPgfEns8QqlgP5e2O/0oU=";
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [ obs-studio ];

  cmakeFlags = [
    "-DOBS_SRC_DIR=${obs-studio.src}"
  ];

  meta = with lib; {
    description = "Simple OBS Studio filter to adjust RGB levels";
    homepage = "https://github.com/wimpysworld/obs-rgb-levels-filter";
    maintainers = with maintainers; [ flexiondotorg ];
    license = licenses.gpl2Plus;
    platforms = [ "x86_64-linux" "i686-linux" ];
  };
}