0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-12 13:18:57 +03:00

parabolic: 2025.1.4 → 2025.5.4

(cherry picked from commit a10bb7134b)
This commit is contained in:
JS (normalc/ea) 2025-05-15 14:10:18 -04:00 committed by github-actions[bot]
parent 1380654eeb
commit 6a3102a531

View file

@ -7,6 +7,7 @@
itstool, itstool,
ninja, ninja,
yelp-tools, yelp-tools,
desktop-file-utils,
pkg-config, pkg-config,
libnick, libnick,
boost, boost,
@ -18,6 +19,8 @@
libxmlxx5, libxmlxx5,
blueprint-compiler, blueprint-compiler,
qt6, qt6,
qlementine,
qlementine-icons,
yt-dlp, yt-dlp,
ffmpeg, ffmpeg,
aria2, aria2,
@ -31,13 +34,13 @@ assert lib.assertOneOf "uiPlatform" uiPlatform [
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "parabolic"; pname = "parabolic";
version = "2025.1.4"; version = "2025.5.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "NickvisionApps"; owner = "NickvisionApps";
repo = "Parabolic"; repo = "Parabolic";
tag = finalAttrs.version; tag = finalAttrs.version;
hash = "sha256-B8/e5urhy5tAgHNd/PR3HlNQd0M0CxgC56nArFGlQ9c="; hash = "sha256-2CFV9//8gFK1TYksdy9P4nLb7kj/8Q5dr5huoAuDNRs=";
}; };
# Patches desktop file/dbus service bypassing wrapped executable # Patches desktop file/dbus service bypassing wrapped executable
@ -59,6 +62,7 @@ stdenv.mkDerivation (finalAttrs: {
pkg-config pkg-config
itstool itstool
yelp-tools yelp-tools
desktop-file-utils
] ]
++ lib.optionals (uiPlatform == "gnome") [ ++ lib.optionals (uiPlatform == "gnome") [
wrapGAppsHook4 wrapGAppsHook4
@ -76,6 +80,8 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optionals (uiPlatform == "qt") [ ++ lib.optionals (uiPlatform == "qt") [
qt6.qtbase qt6.qtbase
qt6.qtsvg qt6.qtsvg
qlementine
qlementine-icons
] ]
++ lib.optionals (uiPlatform == "gnome") [ ++ lib.optionals (uiPlatform == "gnome") [
glib glib
@ -88,16 +94,28 @@ stdenv.mkDerivation (finalAttrs: {
(lib.cmakeFeature "UI_PLATFORM" uiPlatform) (lib.cmakeFeature "UI_PLATFORM" uiPlatform)
]; ];
dontWrapGApps = true;
dontWrapQtApps = true;
preFixup = preFixup =
lib.optionalString (uiPlatform == "gnome") "gappsWrapperArgs" lib.optionalString (uiPlatform == "gnome") ''
+ lib.optionalString (uiPlatform == "qt") "qtWrapperArgs" makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
+ "+=(--prefix PATH : ${ ''
+ lib.optionalString (uiPlatform == "qt") ''
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
''
+ ''
makeWrapperArgs+=(--prefix PATH : ${
lib.makeBinPath [ lib.makeBinPath [
aria2 aria2
ffmpeg ffmpeg
yt-dlp yt-dlp
] ]
})"; })
wrapProgram $out/bin/org.nickvision.tubeconverter \
''${makeWrapperArgs[@]}
'';
passthru.updateScript = nix-update-script { }; passthru.updateScript = nix-update-script { };