2021-09-18 10:52:07 +00:00
|
|
|
{ config
|
|
|
|
, lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gobject-introspection
|
|
|
|
, pkg-config
|
|
|
|
, ninja
|
|
|
|
, desktop-file-utils
|
|
|
|
, makeWrapper
|
|
|
|
, shared-mime-info
|
2022-03-05 16:20:37 +00:00
|
|
|
, wrapGAppsHook4
|
2021-09-18 10:52:07 +00:00
|
|
|
, meson
|
|
|
|
, gtk4
|
|
|
|
, gst_all_1
|
2023-11-16 04:20:00 +00:00
|
|
|
, libGL
|
2021-09-18 10:52:07 +00:00
|
|
|
, libadwaita
|
2024-05-15 15:35:15 +00:00
|
|
|
, libsoup_3
|
|
|
|
, vala
|
|
|
|
, cmake
|
|
|
|
, libmicrodns
|
2021-09-18 10:52:07 +00:00
|
|
|
}:
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-09-18 10:52:07 +00:00
|
|
|
pname = "clapper";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.6.0";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Rafostar";
|
2024-05-15 15:35:15 +00:00
|
|
|
repo = "clapper";
|
|
|
|
rev = finalAttrs.version;
|
|
|
|
hash = "sha256-5fD1OnVcY3ZC+QfoFqe2jV43/J36r85SpLUYF2ti7dY=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
meson
|
2024-05-15 15:35:15 +00:00
|
|
|
cmake
|
2021-09-18 10:52:07 +00:00
|
|
|
ninja
|
|
|
|
makeWrapper
|
|
|
|
pkg-config
|
2022-03-05 16:20:37 +00:00
|
|
|
wrapGAppsHook4 # for gsettings
|
2024-05-15 15:35:15 +00:00
|
|
|
desktop-file-utils # for update-desktop-database
|
|
|
|
shared-mime-info # for update-mime-database
|
|
|
|
vala
|
2021-09-18 10:52:07 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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
|
2023-11-16 04:20:00 +00:00
|
|
|
libGL
|
2021-09-18 10:52:07 +00:00
|
|
|
libadwaita
|
2024-05-15 15:35:15 +00:00
|
|
|
libsoup_3
|
|
|
|
libmicrodns
|
2021-09-18 10:52:07 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2024-05-15 15:35:15 +00:00
|
|
|
patchShebangs --build build-aux/meson/postinstall.py
|
2021-09-18 10:52:07 +00:00
|
|
|
'';
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
# The package uses "clappersink" provided by itself
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : $out/lib/gstreamer-1.0
|
|
|
|
)
|
2021-09-18 10:52:07 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "GNOME media player built using GTK4 toolkit and powered by GStreamer with OpenGL rendering";
|
2021-09-18 10:52:07 +00:00
|
|
|
longDescription = ''
|
2024-05-15 15:35:15 +00:00
|
|
|
Clapper is a GNOME media player built using the GTK4 toolkit.
|
|
|
|
The media player is using GStreamer as a media backend.
|
2021-09-18 10:52:07 +00:00
|
|
|
'';
|
|
|
|
homepage = "https://github.com/Rafostar/clapper";
|
|
|
|
license = licenses.gpl3Plus;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with maintainers; [ aleksana ];
|
2021-09-18 10:52:07 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2024-05-15 15:35:15 +00:00
|
|
|
})
|