Commit ecfdc355 authored by Martin Wimpress's avatar Martin Wimpress Committed by Cole Helbling
Browse files

obs-studio-plugins.obs-gradient-source: init at 0.3.1

parent 5572bc18
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -20,6 +20,8 @@

  obs-command-source = callPackage ./obs-command-source.nix { };

  obs-gradient-source = callPackage ./obs-gradient-source.nix { };

  obs-gstreamer = callPackage ./obs-gstreamer.nix { };

  obs-hyperion = qt6Packages.callPackage ./obs-hyperion/default.nix { };
+37 −0
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitHub
, cmake
, obs-studio
}:

stdenv.mkDerivation rec {
  pname = "obs-gradient-source";
  version = "0.3.1";

  src = fetchFromGitHub {
    owner = "exeldro";
    repo = "obs-gradient-source";
    rev = version;
    sha256 = "sha256-4u7RzF2b7EWwsfEtRvGDifue34jJM4MaYpwumu0MFpQ=";
  };

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

  cmakeFlags = [
    "-DBUILD_OUT_OF_TREE=On"
  ];

  postInstall = ''
    rm -rf $out/obs-plugins $out/data
  '';

  meta = with lib; {
    description = "Plugin for adding a gradient Source to OBS Studio";
    homepage = "https://github.com/exeldro/obs-gradient-source";
    maintainers = with maintainers; [ flexiondotorg ];
    license = licenses.gpl2Plus;
    platforms = [ "x86_64-linux" "i686-linux" ];
  };
}