mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
bf995e3641
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*".*\.";' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*)\.";/\1";/'
37 lines
896 B
Nix
37 lines
896 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, obs-studio
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "obs-command-source";
|
|
version = "0.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "norihiro";
|
|
repo = "obs-command-source";
|
|
rev = version;
|
|
sha256 = "sha256-yrzY4pHSupkkdRlx725oSVtQTH1Ci9zFolHN3i2Vm28=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ obs-studio ];
|
|
|
|
postInstall = ''
|
|
mkdir $out/lib $out/share
|
|
mv $out/obs-plugins/64bit $out/lib/obs-plugins
|
|
rm -rf $out/obs-plugins
|
|
mv $out/data $out/share/obs
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "OBS Studio plugin that provides a dummy source to execute arbitrary commands when a scene is switched";
|
|
homepage = "https://github.com/norihiro/command-source";
|
|
maintainers = with maintainers; [ flexiondotorg ];
|
|
license = licenses.gpl2Plus;
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
|
};
|
|
}
|