nixpkgs/pkgs/applications/video/vokoscreen-ng/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

74 lines
1.6 KiB
Nix
Raw Normal View History

2020-08-25 17:30:22 +00:00
{ lib
, mkDerivation
, fetchFromGitHub
, pkg-config
, qmake
, qttools
, gstreamer
, libX11
2021-02-03 14:42:14 +00:00
, pulseaudio
2020-08-25 17:30:22 +00:00
, qtbase
, qtmultimedia
, qtx11extras
, gst-plugins-base
, gst-plugins-good
, gst-plugins-bad
, gst-plugins-ugly
, wayland
, pipewire
, wrapQtAppsHook
2020-08-25 17:30:22 +00:00
}:
mkDerivation rec {
2020-08-25 17:30:22 +00:00
pname = "vokoscreen-ng";
2023-07-22 14:45:47 +00:00
version = "3.7.0";
2020-08-25 17:30:22 +00:00
src = fetchFromGitHub {
owner = "vkohaupt";
repo = "vokoscreenNG";
rev = version;
2023-07-22 14:45:47 +00:00
sha256 = "sha256-epz/KoXo84zzCD1dzclRWgeQSqrgwEtaIGvrTPuN9hw=";
2020-08-25 17:30:22 +00:00
};
qmakeFlags = [ "src/vokoscreenNG.pro" ];
nativeBuildInputs = [ qttools pkg-config qmake wrapQtAppsHook ];
2020-08-25 17:30:22 +00:00
buildInputs = [
gstreamer
libX11
2021-02-03 14:42:14 +00:00
pulseaudio
2020-08-25 17:30:22 +00:00
qtbase
qtmultimedia
qtx11extras
wayland
pipewire
2020-08-25 17:30:22 +00:00
gst-plugins-base
gst-plugins-good
gst-plugins-bad
gst-plugins-ugly
];
postPatch = ''
substituteInPlace src/vokoscreenNG.pro \
--replace lrelease-qt5 lrelease
'';
postInstall = ''
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-08-25 17:30:22 +00:00
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
wrapQtApp $out/bin/vokoscreenNG
2020-08-25 17:30:22 +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;
};
}