Merge pull request #126080 from tomfitzhenry/clapper
This commit is contained in:
commit
9151047ede
2 changed files with 87 additions and 0 deletions
85
pkgs/applications/video/clapper/default.nix
Normal file
85
pkgs/applications/video/clapper/default.nix
Normal file
|
@ -0,0 +1,85 @@
|
||||||
|
{ config
|
||||||
|
, lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, glib
|
||||||
|
, gobject-introspection
|
||||||
|
, python3
|
||||||
|
, pkg-config
|
||||||
|
, ninja
|
||||||
|
, wayland
|
||||||
|
, wayland-protocols
|
||||||
|
, desktop-file-utils
|
||||||
|
, makeWrapper
|
||||||
|
, shared-mime-info
|
||||||
|
, wrapGAppsHook
|
||||||
|
, meson
|
||||||
|
, gjs
|
||||||
|
, gtk4
|
||||||
|
, gst_all_1
|
||||||
|
, libadwaita
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "clapper";
|
||||||
|
version = "0.4.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "Rafostar";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1gf4z9lib5rxi1xilkxxyywakm9zlq5915w2wib09jyh0if82ahr";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
desktop-file-utils # for update-desktop-database
|
||||||
|
glib
|
||||||
|
gobject-introspection
|
||||||
|
meson
|
||||||
|
ninja
|
||||||
|
makeWrapper
|
||||||
|
pkg-config
|
||||||
|
python3
|
||||||
|
shared-mime-info # for update-mime-database
|
||||||
|
wrapGAppsHook # for gsettings
|
||||||
|
];
|
||||||
|
|
||||||
|
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
|
||||||
|
wayland
|
||||||
|
wayland-protocols
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs build-aux/meson/postinstall.py
|
||||||
|
'';
|
||||||
|
|
||||||
|
mesonFlags = [
|
||||||
|
# TODO: https://github.com/NixOS/nixpkgs/issues/36468
|
||||||
|
"-Dc_args=-I${glib.dev}/include/gio-unix-2.0"
|
||||||
|
];
|
||||||
|
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -23512,6 +23512,8 @@ with pkgs;
|
||||||
|
|
||||||
cipher = callPackage ../applications/misc/cipher { };
|
cipher = callPackage ../applications/misc/cipher { };
|
||||||
|
|
||||||
|
clapper = callPackage ../applications/video/clapper { };
|
||||||
|
|
||||||
claws-mail-gtk2 = callPackage ../applications/networking/mailreaders/claws-mail {
|
claws-mail-gtk2 = callPackage ../applications/networking/mailreaders/claws-mail {
|
||||||
inherit (xorg) libSM;
|
inherit (xorg) libSM;
|
||||||
useGtk3 = false;
|
useGtk3 = false;
|
||||||
|
|
Loading…
Reference in a new issue