···1{
2 lib,
3 stdenv,
4- fetchurl,
0005 libogg,
6 libpng,
07}:
89-stdenv.mkDerivation rec {
10 pname = "libkate";
11- version = "0.4.1";
1213- src = fetchurl {
14- url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/libkate/${pname}-${version}.tar.gz";
15- sha256 = "0s3vr2nxfxlf1k75iqpp4l78yf4gil3f0v778kvlngbchvaq23n4";
00016 };
17000000018 buildInputs = [
19 libogg
20 libpng
21 ];
2223- meta = with lib; {
0024 description = "Library for encoding and decoding Kate streams";
25 longDescription = ''
26 This is libkate, the reference implementation of a codec for the Kate
27 bitstream format. Kate is a karaoke and text codec meant for encapsulation
28 in an Ogg container. It can carry Unicode text, images, and animate
29 them.'';
30- homepage = "https://code.google.com/archive/p/libkate/";
31- platforms = platforms.unix;
32- license = licenses.bsd3;
33 };
34-}
···1{
2 lib,
3 stdenv,
4+ fetchFromGitLab,
5+ autoreconfHook,
6+ bison,
7+ flex,
8 libogg,
9 libpng,
10+ pkg-config,
11}:
1213+stdenv.mkDerivation (finalAttrs: {
14 pname = "libkate";
15+ version = "0.4.3";
1617+ src = fetchFromGitLab {
18+ domain = "gitlab.xiph.org/";
19+ owner = "xiph";
20+ repo = "kate";
21+ tag = "kate-${finalAttrs.version}";
22+ hash = "sha256-HwDahmjDC+O321Ba7MnHoQdHOFUMpFzaNdLHQeEg11Q=";
23 };
2425+ nativeBuildInputs = [
26+ autoreconfHook
27+ bison
28+ flex
29+ pkg-config # provides macro PKG_CHECK_MODULES
30+ ];
31+32 buildInputs = [
33 libogg
34 libpng
35 ];
3637+ enableParallelBuilding = true;
38+39+ meta = {
40 description = "Library for encoding and decoding Kate streams";
41 longDescription = ''
42 This is libkate, the reference implementation of a codec for the Kate
43 bitstream format. Kate is a karaoke and text codec meant for encapsulation
44 in an Ogg container. It can carry Unicode text, images, and animate
45 them.'';
46+ homepage = "https://wiki.xiph.org/index.php/OggKate";
47+ platforms = lib.platforms.unix;
48+ license = lib.licenses.bsd3;
49 };
50+})