Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 39 lines 807 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 obs-studio, 7}: 8 9stdenv.mkDerivation (finalAttrs: { 10 pname = "obs-source-clone"; 11 version = "0.1.5"; 12 13 src = fetchFromGitHub { 14 owner = "exeldro"; 15 repo = "obs-source-clone"; 16 tag = finalAttrs.version; 17 hash = "sha256-0rBtFPfqVvB333eeWRpVe4TgrJTiBTIzsV/SSe3EgOc="; 18 }; 19 20 nativeBuildInputs = [ cmake ]; 21 22 buildInputs = [ obs-studio ]; 23 24 cmakeFlags = [ 25 (lib.cmakeBool "BUILD_OUT_OF_TREE" true) 26 ]; 27 28 postInstall = '' 29 rm -rf $out/obs-plugins $out/data 30 ''; 31 32 meta = { 33 description = "Plugin for OBS Studio to clone sources"; 34 homepage = "https://github.com/exeldro/obs-source-clone"; 35 maintainers = with lib.maintainers; [ flexiondotorg ]; 36 license = lib.licenses.gpl2Plus; 37 platforms = lib.platforms.linux; 38 }; 39})