From 21e7164d77ec2e5c9913159a94eac7b797e4f024 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 16 May 2025 06:28:28 +0100 Subject: [PATCH] libkate: 0.4.1 -> 0.4.3 Changes: https://gitlab.xiph.org/xiph/kate/-/blob/kate-0.4.3/ChangeLog?ref_type=tags --- pkgs/by-name/li/libkate/package.nix | 38 ++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 11 deletions(-) diff --git a/pkgs/by-name/li/libkate/package.nix b/pkgs/by-name/li/libkate/package.nix index 418e91d7ebb0..553ba6e89ce3 100644 --- a/pkgs/by-name/li/libkate/package.nix +++ b/pkgs/by-name/li/libkate/package.nix @@ -1,34 +1,50 @@ { lib, stdenv, - fetchurl, + fetchFromGitLab, + autoreconfHook, + bison, + flex, libogg, libpng, + pkg-config, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "libkate"; - version = "0.4.1"; + version = "0.4.3"; - src = fetchurl { - url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/libkate/${pname}-${version}.tar.gz"; - sha256 = "0s3vr2nxfxlf1k75iqpp4l78yf4gil3f0v778kvlngbchvaq23n4"; + src = fetchFromGitLab { + domain = "gitlab.xiph.org/"; + owner = "xiph"; + repo = "kate"; + tag = "kate-${finalAttrs.version}"; + hash = "sha256-HwDahmjDC+O321Ba7MnHoQdHOFUMpFzaNdLHQeEg11Q="; }; + nativeBuildInputs = [ + autoreconfHook + bison + flex + pkg-config # provides macro PKG_CHECK_MODULES + ]; + buildInputs = [ libogg libpng ]; - meta = with lib; { + enableParallelBuilding = true; + + meta = { description = "Library for encoding and decoding Kate streams"; longDescription = '' This is libkate, the reference implementation of a codec for the Kate bitstream format. Kate is a karaoke and text codec meant for encapsulation in an Ogg container. It can carry Unicode text, images, and animate them.''; - homepage = "https://code.google.com/archive/p/libkate/"; - platforms = platforms.unix; - license = licenses.bsd3; + homepage = "https://wiki.xiph.org/index.php/OggKate"; + platforms = lib.platforms.unix; + license = lib.licenses.bsd3; }; -} +})