depot/third_party/nixpkgs/pkgs/applications/video/clapper/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

81 lines
1.7 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, gobject-introspection
, pkg-config
, ninja
, desktop-file-utils
, makeWrapper
, shared-mime-info
, wrapGAppsHook4
, meson
, gtk4
, gst_all_1
, libGL
, libadwaita
, libsoup_3
, vala
, cmake
, libmicrodns
}:
stdenv.mkDerivation (finalAttrs: {
pname = "clapper";
version = "0.6.1";
src = fetchFromGitHub {
owner = "Rafostar";
repo = "clapper";
rev = finalAttrs.version;
hash = "sha256-IQJTnLB6FzYYPONOqBkvi89iF0U6fx/aWYvNOOJpBvc=";
};
nativeBuildInputs = [
gobject-introspection
meson
cmake
ninja
makeWrapper
pkg-config
wrapGAppsHook4 # for gsettings
desktop-file-utils # for update-desktop-database
shared-mime-info # for update-mime-database
vala
];
buildInputs = [
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-ugly
gtk4
libGL
libadwaita
libsoup_3
libmicrodns
];
postPatch = ''
patchShebangs --build build-aux/meson/postinstall.py
'';
# The package uses "clappersink" provided by itself
preFixup = ''
gappsWrapperArgs+=(
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : $out/lib/gstreamer-1.0
)
'';
meta = with lib; {
description = "GNOME media player built using GTK4 toolkit and powered by GStreamer with OpenGL rendering";
longDescription = ''
Clapper is a GNOME media player built using the GTK4 toolkit.
The media player is using GStreamer as a media backend.
'';
homepage = "https://github.com/Rafostar/clapper";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ aleksana ];
platforms = platforms.linux;
};
})