2020-09-25 04:45:31 +00:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, qmake
|
|
|
|
, qttools
|
|
|
|
, gstreamer
|
|
|
|
, libX11
|
2021-02-05 17:12:51 +00:00
|
|
|
, pulseaudio
|
2020-09-25 04:45:31 +00:00
|
|
|
, qtbase
|
|
|
|
, qtmultimedia
|
|
|
|
, qtx11extras
|
|
|
|
|
|
|
|
, gst-plugins-base
|
|
|
|
, gst-plugins-good
|
|
|
|
, gst-plugins-bad
|
|
|
|
, gst-plugins-ugly
|
2023-03-15 16:39:30 +00:00
|
|
|
, wayland
|
2023-03-30 22:05:00 +00:00
|
|
|
, pipewire
|
2023-03-15 16:39:30 +00:00
|
|
|
, wrapQtAppsHook
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
mkDerivation rec {
|
2020-09-25 04:45:31 +00:00
|
|
|
pname = "vokoscreen-ng";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "3.8.0";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vkohaupt";
|
|
|
|
repo = "vokoscreenNG";
|
|
|
|
rev = version;
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-4tQ/fLaAbjfc3mt2qJsW9scku/CGUs74SehDaZgLPj4=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
qmakeFlags = [ "src/vokoscreenNG.pro" ];
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
nativeBuildInputs = [ qttools pkg-config qmake wrapQtAppsHook ];
|
2020-09-25 04:45:31 +00:00
|
|
|
buildInputs = [
|
|
|
|
gstreamer
|
|
|
|
libX11
|
2021-02-05 17:12:51 +00:00
|
|
|
pulseaudio
|
2020-09-25 04:45:31 +00:00
|
|
|
qtbase
|
|
|
|
qtmultimedia
|
|
|
|
qtx11extras
|
2023-03-15 16:39:30 +00:00
|
|
|
wayland
|
2023-03-30 22:05:00 +00:00
|
|
|
pipewire
|
2020-09-25 04:45:31 +00:00
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-good
|
|
|
|
gst-plugins-bad
|
|
|
|
gst-plugins-ugly
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/vokoscreenNG.pro \
|
|
|
|
--replace lrelease-qt5 lrelease
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
2023-03-15 16:39:30 +00:00
|
|
|
mkdir -p $out/bin $out/share/applications $out/share/icons
|
|
|
|
cp ./vokoscreenNG $out/bin/
|
|
|
|
cp ./src/applications/vokoscreenNG.desktop $out/share/applications/
|
|
|
|
cp ./src/applications/vokoscreenNG.png $out/share/icons/
|
2020-09-25 04:45:31 +00:00
|
|
|
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
|
2023-03-15 16:39:30 +00:00
|
|
|
wrapQtApp $out/bin/vokoscreenNG
|
2020-09-25 04:45:31 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "User friendly Open Source screencaster for Linux and Windows";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
homepage = "https://github.com/vkohaupt/vokoscreenNG";
|
|
|
|
maintainers = with maintainers; [ shamilton ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|