Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 50 lines 933 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 cairo, 7 obs-studio, 8 pango, 9 pkg-config, 10}: 11 12stdenv.mkDerivation rec { 13 pname = "obs-text-pthread"; 14 version = "2.0.5"; 15 16 src = fetchFromGitHub { 17 owner = "norihiro"; 18 repo = "obs-text-pthread"; 19 rev = version; 20 sha256 = "sha256-zrgxKs3jmrwQJiEgKfZz1BOVToTLauQXtFYcuFlV71o="; 21 }; 22 23 nativeBuildInputs = [ 24 cmake 25 pkg-config 26 ]; 27 buildInputs = [ 28 cairo 29 obs-studio 30 pango 31 ]; 32 33 postInstall = '' 34 mkdir $out/lib $out/share 35 mv $out/obs-plugins/64bit $out/lib/obs-plugins 36 rm -rf $out/obs-plugins 37 mv $out/data $out/share/obs 38 ''; 39 40 meta = with lib; { 41 description = "Rich text source plugin for OBS Studio"; 42 homepage = "https://github.com/norihiro/obs-text-pthread"; 43 maintainers = with maintainers; [ flexiondotorg ]; 44 license = licenses.gpl2Plus; 45 platforms = [ 46 "x86_64-linux" 47 "i686-linux" 48 ]; 49 }; 50}