From d334ab8ce77277d5ab9f25614266ed6eb81920c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Bori?= Date: Tue, 26 Nov 2024 19:47:20 +0100 Subject: [PATCH 1/2] mediainfo-gui: Code format using `nixfmt-rfc-style` --- pkgs/by-name/me/mediainfo-gui/package.nix | 45 ++++++++++++++++------- 1 file changed, 32 insertions(+), 13 deletions(-) diff --git a/pkgs/by-name/me/mediainfo-gui/package.nix b/pkgs/by-name/me/mediainfo-gui/package.nix index b649afd83abe1..2a4b05524d0c1 100644 --- a/pkgs/by-name/me/mediainfo-gui/package.nix +++ b/pkgs/by-name/me/mediainfo-gui/package.nix @@ -1,37 +1,56 @@ -{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, libmediainfo, wxGTK32 -, desktop-file-utils, libSM, imagemagick, darwin }: +{ + lib, + stdenv, + fetchurl, + autoreconfHook, + pkg-config, + libmediainfo, + wxGTK32, + desktop-file-utils, + libSM, + imagemagick, + darwin, +}: let inherit (darwin.apple_sdk.frameworks) Cocoa; in -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "mediainfo-gui"; version = "24.06"; src = fetchurl { - url = "https://mediaarea.net/download/source/mediainfo/${version}/mediainfo_${version}.tar.xz"; + url = "https://mediaarea.net/download/source/mediainfo/${finalAttrs.version}/mediainfo_${finalAttrs.version}.tar.xz"; hash = "sha256-MvSoKjHjhuF3/fbkwjcFPkdbUBCJJpqyxylFKgkxNSA="; }; - nativeBuildInputs = [ autoreconfHook pkg-config ]; + nativeBuildInputs = [ + autoreconfHook + pkg-config + ]; - buildInputs = [ libmediainfo wxGTK32 desktop-file-utils libSM imagemagick ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ Cocoa ]; + buildInputs = [ + libmediainfo + wxGTK32 + desktop-file-utils + libSM + imagemagick + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Cocoa ]; sourceRoot = "MediaInfo/Project/GNU/GUI"; enableParallelBuilding = true; - meta = with lib; { + meta = { description = "Supplies technical and tag information about a video or audio file (GUI version)"; longDescription = '' MediaInfo is a convenient unified display of the most relevant technical and tag data for video and audio files. ''; - homepage = "https://mediaarea.net/"; - license = licenses.bsd2; - platforms = platforms.unix; - maintainers = [ maintainers.devhell ]; + homepage = "https://mediaarea.net"; + license = lib.licenses.bsd2; + platforms = lib.platforms.unix; + maintainers = with lib.maintainers; [ devhell ]; mainProgram = "mediainfo-gui"; }; -} +}) From 27680307b99c5de08da6d058fedc03b96e8f4d73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Bori?= Date: Sun, 1 Dec 2024 16:30:00 +0100 Subject: [PATCH 2/2] mediainfo-gui: Fix missing GSettings schemas --- pkgs/by-name/me/mediainfo-gui/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/me/mediainfo-gui/package.nix b/pkgs/by-name/me/mediainfo-gui/package.nix index 2a4b05524d0c1..cb4f5a8b01006 100644 --- a/pkgs/by-name/me/mediainfo-gui/package.nix +++ b/pkgs/by-name/me/mediainfo-gui/package.nix @@ -10,6 +10,7 @@ libSM, imagemagick, darwin, + wrapGAppsHook3, }: let @@ -27,6 +28,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ autoreconfHook pkg-config + wrapGAppsHook3 ]; buildInputs = [