2014-03-02 08:21:50 +04:00
|
|
|
{ stdenv, fetchurl, pkgconfig, yasm
|
|
|
|
, freetype, fribidi, fontconfig
|
|
|
|
, enca ? null
|
|
|
|
, harfbuzz ? null
|
|
|
|
}:
|
2011-02-10 00:10:42 +03:00
|
|
|
|
2014-03-02 08:21:50 +04:00
|
|
|
let
|
|
|
|
version = "0.11.1";
|
|
|
|
sha256 = "1b0ki1zdkhflszzj5qr45j9qsd0rfbb6ws5pqkny8jhih0l3lxwx";
|
|
|
|
baseurl = "https://github.com/libass/libass/releases/download";
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "libass-${version}";
|
2011-02-10 00:10:42 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-03-02 08:21:50 +04:00
|
|
|
url = "${baseurl}/${version}/${name}.tar.xz";
|
|
|
|
inherit sha256;
|
2011-02-10 00:10:42 +03:00
|
|
|
};
|
|
|
|
|
2014-03-02 08:21:50 +04:00
|
|
|
nativeBuildInputs = [ pkgconfig yasm ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
freetype fribidi fontconfig
|
|
|
|
enca harfbuzz
|
|
|
|
];
|
2011-02-10 00:10:42 +03:00
|
|
|
|
|
|
|
meta = {
|
2014-03-02 08:21:50 +04:00
|
|
|
description = "Portable ASS/SSA subtitle renderer";
|
2011-02-10 00:10:42 +03:00
|
|
|
homepage = http://code.google.com/p/libass/;
|
2014-03-02 08:21:50 +04:00
|
|
|
license = stdenv.lib.licenses.isc;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2011-02-10 00:10:42 +03:00
|
|
|
maintainers = [ stdenv.lib.maintainers.urkud ];
|
2014-03-02 08:21:50 +04:00
|
|
|
repositories.git = git://github.com/libass/libass.git;
|
2011-02-10 00:10:42 +03:00
|
|
|
};
|
|
|
|
}
|