Merge pull request #306548 from kashw2/clapper
clapper: 0.5.2 -> 0.6.0; clean up and move to finalAttrs
This commit is contained in:
commit
8c217e63e7
|
@ -2,9 +2,7 @@
|
||||||
, lib
|
, lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, glib
|
|
||||||
, gobject-introspection
|
, gobject-introspection
|
||||||
, python3
|
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, ninja
|
, ninja
|
||||||
, wayland
|
, wayland
|
||||||
|
@ -14,42 +12,41 @@
|
||||||
, shared-mime-info
|
, shared-mime-info
|
||||||
, wrapGAppsHook4
|
, wrapGAppsHook4
|
||||||
, meson
|
, meson
|
||||||
, gjs
|
|
||||||
, gtk4
|
, gtk4
|
||||||
, gst_all_1
|
, gst_all_1
|
||||||
, libGL
|
, libGL
|
||||||
, libadwaita
|
, libadwaita
|
||||||
, appstream-glib
|
, libsoup_3
|
||||||
, libsoup
|
, vala
|
||||||
|
, cmake
|
||||||
|
, libmicrodns
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "clapper";
|
pname = "clapper";
|
||||||
version = "0.5.2";
|
version = "0.6.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Rafostar";
|
owner = "Rafostar";
|
||||||
repo = pname;
|
repo = "clapper";
|
||||||
rev = version;
|
rev = finalAttrs.version;
|
||||||
sha256 = "sha256-s+qdTq3/pHHstwr1W3Hs2Zje++iJFHM6hQTFoZD43bY=";
|
hash = "sha256-5fD1OnVcY3ZC+QfoFqe2jV43/J36r85SpLUYF2ti7dY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
appstream-glib
|
|
||||||
desktop-file-utils # for update-desktop-database
|
|
||||||
glib
|
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
meson
|
meson
|
||||||
|
cmake
|
||||||
ninja
|
ninja
|
||||||
makeWrapper
|
makeWrapper
|
||||||
pkg-config
|
pkg-config
|
||||||
python3
|
|
||||||
shared-mime-info # for update-mime-database
|
|
||||||
wrapGAppsHook4 # for gsettings
|
wrapGAppsHook4 # for gsettings
|
||||||
|
desktop-file-utils # for update-desktop-database
|
||||||
|
shared-mime-info # for update-mime-database
|
||||||
|
vala
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
gjs
|
|
||||||
gst_all_1.gstreamer
|
gst_all_1.gstreamer
|
||||||
gst_all_1.gst-plugins-base
|
gst_all_1.gst-plugins-base
|
||||||
gst_all_1.gst-plugins-good
|
gst_all_1.gst-plugins-good
|
||||||
|
@ -58,29 +55,25 @@ stdenv.mkDerivation rec {
|
||||||
gtk4
|
gtk4
|
||||||
libGL
|
libGL
|
||||||
libadwaita
|
libadwaita
|
||||||
libsoup
|
libsoup_3
|
||||||
wayland
|
wayland
|
||||||
wayland-protocols
|
wayland-protocols
|
||||||
|
libmicrodns
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
patchShebangs build-aux/meson/postinstall.py
|
patchShebangs --build 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; {
|
meta = with lib; {
|
||||||
description = "A GNOME media player built using GJS with GTK4 toolkit and powered by GStreamer with OpenGL rendering. ";
|
description = "A GNOME media player built using GTK4 toolkit and powered by GStreamer with OpenGL rendering";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
Clapper is a GNOME media player build using GJS with GTK4 toolkit.
|
Clapper is a GNOME media player built using the GTK4 toolkit.
|
||||||
The media player is using GStreamer as a media backend and renders everything via OpenGL.
|
The media player is using GStreamer as a media backend.
|
||||||
'';
|
'';
|
||||||
homepage = "https://github.com/Rafostar/clapper";
|
homepage = "https://github.com/Rafostar/clapper";
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
maintainers = with maintainers; [ ];
|
maintainers = with maintainers; [ ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user