pragha: modernize, move to by-name/

This commit is contained in:
pancaek
2025-10-21 13:34:57 -07:00
parent c8a90d6bb4
commit ed5d911faf
2 changed files with 14 additions and 15 deletions

View File

@@ -1,14 +1,13 @@
{ {
lib, lib,
stdenv,
intltool, intltool,
mkDerivation,
installShellFiles, installShellFiles,
pkg-config, pkg-config,
fetchFromGitHub, fetchFromGitHub,
dbus-glib, dbus-glib,
desktop-file-utils, desktop-file-utils,
hicolor-icon-theme, hicolor-icon-theme,
qtbase,
sqlite, sqlite,
taglib, taglib,
zlib, zlib,
@@ -17,6 +16,7 @@
libcddb, libcddb,
libcdio, libcdio,
gst_all_1, gst_all_1,
libsForQt5,
withGstPlugins ? true, withGstPlugins ? true,
glyr, glyr,
withGlyr ? true, withGlyr ? true,
@@ -45,15 +45,15 @@
assert withGlyr -> withLastfm; assert withGlyr -> withLastfm;
assert withLastfm -> withCD; assert withLastfm -> withCD;
mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "pragha"; pname = "pragha";
version = "1.3.99.1"; version = "1.3.99.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "pragha-music-player"; owner = "pragha-music-player";
repo = "pragha"; repo = "pragha";
rev = "v${version}"; tag = "v${finalAttrs.version}";
sha256 = "sha256-C4zh2NHqP4bwKMi5s+3AfEtKqxRlzL66H8OyNonGzxE="; hash = "sha256-C4zh2NHqP4bwKMi5s+3AfEtKqxRlzL66H8OyNonGzxE=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@@ -62,6 +62,7 @@ mkDerivation rec {
xfce.xfce4-dev-tools xfce.xfce4-dev-tools
desktop-file-utils desktop-file-utils
installShellFiles installShellFiles
libsForQt5.wrapQtAppsHook
]; ];
buildInputs = buildInputs =
@@ -73,7 +74,7 @@ mkDerivation rec {
gtk3 gtk3
hicolor-icon-theme hicolor-icon-theme
libpeas libpeas
qtbase libsForQt5.qtbase
sqlite sqlite
taglib taglib
zlib zlib
@@ -108,17 +109,17 @@ mkDerivation rec {
postInstall = '' postInstall = ''
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0") qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
install -m 444 data/${pname}.desktop $out/share/applications install -m 444 data/pragha.desktop $out/share/applications
install -d $out/share/pixmaps install -d $out/share/pixmaps
installManPage data/${pname}.1 installManPage data/pragha.1
''; '';
meta = with lib; { meta = {
description = "Lightweight GTK+ music manager - fork of Consonance Music Manager"; description = "Lightweight GTK+ music manager - fork of Consonance Music Manager";
mainProgram = "pragha"; mainProgram = "pragha";
homepage = "https://pragha-music-player.github.io/"; homepage = "https://pragha-music-player.github.io/";
license = licenses.gpl3Plus; license = lib.licenses.gpl3Plus;
maintainers = with maintainers; [ mbaeten ]; maintainers = with lib.maintainers; [ mbaeten ];
platforms = platforms.unix; platforms = lib.platforms.unix;
}; };
} })

View File

@@ -11858,8 +11858,6 @@ with pkgs;
withConplay = false; withConplay = false;
}; };
pragha = libsForQt5.callPackage ../applications/audio/pragha { };
rofi-emoji = (callPackage ../applications/misc/rofi-emoji { }).v3; rofi-emoji = (callPackage ../applications/misc/rofi-emoji { }).v3;
rofi-rbw = python3Packages.callPackage ../applications/misc/rofi-rbw { rofi-rbw = python3Packages.callPackage ../applications/misc/rofi-rbw {