1{ lib, stdenv, fetchurl, libgcrypt, libgpg-error, bison, flex }:
2
3# library that allows libbluray to play AACS protected bluray disks
4# libaacs does not infringe DRM's right or copyright. See the legal page of the website for more info.
5
6# Info on how to use / obtain aacs keys:
7# http://vlc-bluray.whoknowsmy.name/
8# https://wiki.archlinux.org/index.php/BluRay
9
10stdenv.mkDerivation rec {
11 pname = "libaacs";
12 version = "0.11.1";
13
14 src = fetchurl {
15 url = "http://get.videolan.org/libaacs/${version}/${pname}-${version}.tar.bz2";
16 sha256 = "sha256-qIqg6+TJinf3rv/ZKrPvZKxUjGuCLoJIqLkmclvqCjk=";
17 };
18
19 buildInputs = [ libgcrypt libgpg-error ];
20
21 nativeBuildInputs = [ bison flex ];
22
23 meta = with lib; {
24 homepage = "https://www.videolan.org/developers/libaacs.html";
25 description = "Library to access AACS protected Blu-Ray disks";
26 license = licenses.lgpl21;
27 maintainers = with maintainers; [ abbradar ];
28 platforms = with platforms; linux;
29 };
30}