2023-01-11 07:51:40 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, libmediainfo, wxGTK32
|
|
|
|
, desktop-file-utils, libSM, imagemagick, darwin }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
let
|
|
|
|
inherit (darwin.apple_sdk.frameworks) Cocoa;
|
|
|
|
in
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "22.12";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "mediainfo-gui";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://mediaarea.net/download/source/mediainfo/${version}/mediainfo_${version}.tar.xz";
|
2023-01-11 07:51:40 +00:00
|
|
|
sha256 = "sha256-kyuCc59zjn22A89bsXByBzGp58YdFFwqVKq7PNC3U7w=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2023-01-11 07:51:40 +00:00
|
|
|
buildInputs = [ libmediainfo wxGTK32 desktop-file-utils libSM imagemagick ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ Cocoa ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
sourceRoot = "./MediaInfo/Project/GNU/GUI/";
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
2023-01-11 07:51:40 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.devhell ];
|
|
|
|
};
|
|
|
|
}
|