nixpkgs/pkgs/by-name/cl/clapper/package.nix

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

86 lines
1.8 KiB
Nix
Raw Normal View History

{ lib
2021-06-07 15:01:42 +00:00
, stdenv
, fetchFromGitHub
, gobject-introspection
, pkg-config
, ninja
, desktop-file-utils
, makeWrapper
, shared-mime-info
, wrapGAppsHook4
2021-06-07 15:01:42 +00:00
, meson
, gtk4
, gst_all_1
, libGL
2021-06-07 15:01:42 +00:00
, libadwaita
2024-04-24 14:23:39 +00:00
, libsoup_3
, vala
, cmake
, libmicrodns
2024-10-22 11:47:46 +00:00
, gtuber
, glib-networking
2021-06-07 15:01:42 +00:00
}:
2024-04-24 14:23:39 +00:00
stdenv.mkDerivation (finalAttrs: {
2021-06-07 15:01:42 +00:00
pname = "clapper";
2024-07-02 00:45:29 +00:00
version = "0.6.1";
2021-06-07 15:01:42 +00:00
src = fetchFromGitHub {
owner = "Rafostar";
2024-04-24 14:23:39 +00:00
repo = "clapper";
rev = finalAttrs.version;
2024-07-02 00:45:29 +00:00
hash = "sha256-IQJTnLB6FzYYPONOqBkvi89iF0U6fx/aWYvNOOJpBvc=";
2021-06-07 15:01:42 +00:00
};
nativeBuildInputs = [
gobject-introspection
meson
2024-04-24 14:23:39 +00:00
cmake
2021-06-07 15:01:42 +00:00
ninja
makeWrapper
pkg-config
wrapGAppsHook4 # for gsettings
2024-04-24 14:23:39 +00:00
desktop-file-utils # for update-desktop-database
shared-mime-info # for update-mime-database
vala
2021-06-07 15:01:42 +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
2024-10-22 11:47:46 +00:00
gtuber
glib-networking # for TLS support
2021-06-07 15:01:42 +00:00
gtk4
libGL
2021-06-07 15:01:42 +00:00
libadwaita
2024-04-24 14:23:39 +00:00
libsoup_3
libmicrodns
2021-06-07 15:01:42 +00:00
];
postPatch = ''
2024-04-24 14:23:39 +00:00
patchShebangs --build build-aux/meson/postinstall.py
2021-06-07 15:01:42 +00:00
'';
# The package uses "clappersink" provided by itself
preFixup = ''
gappsWrapperArgs+=(
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : $out/lib/gstreamer-1.0
)
'';
2021-06-07 15:01:42 +00:00
meta = with lib; {
2024-04-24 14:23:39 +00:00
description = "GNOME media player built using GTK4 toolkit and powered by GStreamer with OpenGL rendering";
2021-06-07 15:01:42 +00:00
longDescription = ''
2024-04-24 14:23:39 +00:00
Clapper is a GNOME media player built using the GTK4 toolkit.
The media player is using GStreamer as a media backend.
2021-06-07 15:01:42 +00:00
'';
homepage = "https://github.com/Rafostar/clapper";
license = licenses.gpl3Plus;
2024-04-27 14:29:26 +00:00
maintainers = with maintainers; [ aleksana ];
2021-06-07 15:01:42 +00:00
platforms = platforms.linux;
};
2024-04-24 14:23:39 +00:00
})