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.

69 lines
1.6 KiB
Nix
Raw Normal View History

{ fetchFromGitHub
, gst_all_1
, gst-plugins-bad
2020-08-25 17:30:22 +00:00
, gst-plugins-base
, gst-plugins-good
, gst-plugins-ugly
, gstreamer
, lib
, libX11
, pipewire
, pkg-config
, pulseaudio
, qt6
, stdenv
, wayland
2020-08-25 17:30:22 +00:00
}:
stdenv.mkDerivation rec {
2020-08-25 17:30:22 +00:00
pname = "vokoscreen-ng";
version = "4.0.0";
2020-08-25 17:30:22 +00:00
src = fetchFromGitHub {
owner = "vkohaupt";
repo = "vokoscreenNG";
rev = version;
hash = "sha256-Y6+R18Gf3ShqhsmZ4Okx02fSOOyilS6iKU5FW9wpxvY=";
2020-08-25 17:30:22 +00:00
};
qmakeFlags = [ "src/vokoscreenNG.pro" ];
nativeBuildInputs = [ qt6.qttools pkg-config qt6.qmake qt6.wrapQtAppsHook ];
2020-08-25 17:30:22 +00:00
buildInputs = [
gst_all_1.gstreamer
2020-08-25 17:30:22 +00:00
libX11
2021-02-03 14:42:14 +00:00
pulseaudio
qt6.qtbase
qt6.qtmultimedia
wayland
pipewire
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-08-25 17:30:22 +00:00
];
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 dietmarw ];
2020-08-25 17:30:22 +00:00
platforms = platforms.linux;
2023-11-27 01:17:53 +00:00
mainProgram = "vokoscreenNG";
2020-08-25 17:30:22 +00:00
};
}