Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 52 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 obs-studio, 6 webkitgtk_4_1, 7 glib-networking, 8 meson, 9 cmake, 10 pkg-config, 11 ninja, 12 wrapGAppsHook3, 13}: 14 15stdenv.mkDerivation { 16 pname = "obs-webkitgtk"; 17 version = "unstable-2023-11-10"; 18 19 src = fetchFromGitHub { 20 owner = "fzwoch"; 21 repo = "obs-webkitgtk"; 22 rev = "ddf230852c3c338e69b248bdf453a0630f1298a7"; 23 hash = "sha256-DU2w9dRgqWniTE76KTAtFdxIN82VKa/CS6ZdfNcTMto="; 24 }; 25 26 buildInputs = [ 27 obs-studio 28 webkitgtk_4_1 29 glib-networking 30 ]; 31 32 nativeBuildInputs = [ 33 meson 34 cmake 35 pkg-config 36 ninja 37 wrapGAppsHook3 38 ]; 39 40 postPatch = '' 41 substituteInPlace ./obs-webkitgtk.c \ 42 --replace 'g_file_read_link("/proc/self/exe", NULL)' "g_strdup(\"$out/lib/obs-plugins\")" 43 ''; 44 45 meta = with lib; { 46 description = "Yet another OBS Studio browser source"; 47 homepage = "https://github.com/fzwoch/obs-webkitgtk"; 48 maintainers = with maintainers; [ j-hui ]; 49 license = licenses.gpl2Only; 50 platforms = platforms.linux; 51 }; 52}