2021-06-07 16:01:42 +01:00
|
|
|
{ config
|
|
|
|
, lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, python3
|
|
|
|
, pkg-config
|
|
|
|
, ninja
|
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
|
|
|
, desktop-file-utils
|
|
|
|
, makeWrapper
|
|
|
|
, shared-mime-info
|
2022-02-17 04:03:41 +00:00
|
|
|
, wrapGAppsHook4
|
2021-06-07 16:01:42 +01:00
|
|
|
, meson
|
|
|
|
, gjs
|
|
|
|
, gtk4
|
|
|
|
, gst_all_1
|
|
|
|
, libadwaita
|
2021-10-17 12:50:35 +01:00
|
|
|
, appstream-glib
|
|
|
|
, libsoup
|
2021-06-07 16:01:42 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "clapper";
|
2022-07-07 21:29:34 +01:00
|
|
|
version = "0.5.2";
|
2021-06-07 16:01:42 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Rafostar";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-07-07 21:29:34 +01:00
|
|
|
sha256 = "sha256-s+qdTq3/pHHstwr1W3Hs2Zje++iJFHM6hQTFoZD43bY=";
|
2021-06-07 16:01:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-10-17 12:50:35 +01:00
|
|
|
appstream-glib
|
2021-06-07 16:01:42 +01:00
|
|
|
desktop-file-utils # for update-desktop-database
|
|
|
|
glib
|
|
|
|
gobject-introspection
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
makeWrapper
|
|
|
|
pkg-config
|
|
|
|
python3
|
|
|
|
shared-mime-info # for update-mime-database
|
2022-02-17 04:03:41 +00:00
|
|
|
wrapGAppsHook4 # for gsettings
|
2021-06-07 16:01:42 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gjs
|
|
|
|
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
|
|
|
|
libadwaita
|
2021-10-17 12:50:35 +01:00
|
|
|
libsoup
|
2021-06-07 16:01:42 +01:00
|
|
|
wayland
|
|
|
|
wayland-protocols
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs build-aux/meson/postinstall.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
cp ${src}/data/icons/*.svg $out/share/icons/hicolor/scalable/apps/
|
|
|
|
cp ${src}/data/icons/*.svg $out/share/icons/hicolor/symbolic/apps/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A GNOME media player built using GJS with GTK4 toolkit and powered by GStreamer with OpenGL rendering. ";
|
|
|
|
longDescription = ''
|
|
|
|
Clapper is a GNOME media player build using GJS with GTK4 toolkit.
|
|
|
|
The media player is using GStreamer as a media backend and renders everything via OpenGL.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/Rafostar/clapper";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ tomfitzhenry ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|