2024-02-29 20:09:43 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, gst_all_1
|
|
|
|
, gst-plugins-bad
|
2020-09-25 04:45:31 +00:00
|
|
|
, gst-plugins-base
|
|
|
|
, gst-plugins-good
|
|
|
|
, gst-plugins-ugly
|
2024-02-29 20:09:43 +00:00
|
|
|
, gstreamer
|
|
|
|
, lib
|
|
|
|
, libX11
|
2023-03-30 22:05:00 +00:00
|
|
|
, pipewire
|
2024-02-29 20:09:43 +00:00
|
|
|
, pkg-config
|
|
|
|
, pulseaudio
|
|
|
|
, qt6
|
|
|
|
, stdenv
|
|
|
|
, wayland
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-09-25 04:45:31 +00:00
|
|
|
pname = "vokoscreen-ng";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "4.0.0";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vkohaupt";
|
|
|
|
repo = "vokoscreenNG";
|
|
|
|
rev = version;
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-Y6+R18Gf3ShqhsmZ4Okx02fSOOyilS6iKU5FW9wpxvY=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
qmakeFlags = [ "src/vokoscreenNG.pro" ];
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
nativeBuildInputs = [ qt6.qttools pkg-config qt6.qmake qt6.wrapQtAppsHook ];
|
2020-09-25 04:45:31 +00:00
|
|
|
buildInputs = [
|
2024-02-29 20:09:43 +00:00
|
|
|
gst_all_1.gstreamer
|
2020-09-25 04:45:31 +00:00
|
|
|
libX11
|
2021-02-05 17:12:51 +00:00
|
|
|
pulseaudio
|
2024-02-29 20:09:43 +00:00
|
|
|
qt6.qtbase
|
|
|
|
qt6.qtmultimedia
|
2023-03-15 16:39:30 +00:00
|
|
|
wayland
|
2023-03-30 22:05:00 +00:00
|
|
|
pipewire
|
2024-02-29 20:09:43 +00:00
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
gst_all_1.gst-plugins-good
|
|
|
|
gst_all_1.gst-plugins-bad
|
|
|
|
gst_all_1.gst-plugins-ugly
|
2020-09-25 04:45:31 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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";
|
2024-02-29 20:09:43 +00:00
|
|
|
maintainers = with maintainers; [ shamilton dietmarw ];
|
2020-09-25 04:45:31 +00:00
|
|
|
platforms = platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "vokoscreenNG";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
}
|