btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / li / libaacs / package.nix
blobc0d3b91885e659a2b521abbcee18e43c1c047b7f
1 { lib, stdenv, fetchurl, libgcrypt, libgpg-error, bison, flex }:
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.
6 # Info on how to use / obtain aacs keys:
7 # http://vlc-bluray.whoknowsmy.name/
8 # https://wiki.archlinux.org/index.php/BluRay
10 stdenv.mkDerivation rec {
11   pname = "libaacs";
12   version  = "0.11.1";
14   src = fetchurl {
15     url = "http://get.videolan.org/libaacs/${version}/${pname}-${version}.tar.bz2";
16     sha256 = "sha256-qIqg6+TJinf3rv/ZKrPvZKxUjGuCLoJIqLkmclvqCjk=";
17   };
19   buildInputs = [ libgcrypt libgpg-error ];
21   nativeBuildInputs = [ bison flex ];
23   meta = with lib; {
24     homepage = "https://www.videolan.org/developers/libaacs.html";
25     description = "Library to access AACS protected Blu-Ray disks";
26     mainProgram = "aacs_info";
27     license = licenses.lgpl21;
28     maintainers = with maintainers; [ abbradar ];
29     platforms = with platforms; linux;
30   };