From 6b0dda077194ab8b73f3b1534adec34c5a6f4fbd Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 22 Feb 2012 20:29:46 +0000 Subject: [PATCH] new package: aacskeys -- grab aacs keys from bluray disks svn path=/nixpkgs/trunk/; revision=32491 --- .../libraries/aacskeys/default.nix | 45 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 47 insertions(+) create mode 100644 pkgs/development/libraries/aacskeys/default.nix diff --git a/pkgs/development/libraries/aacskeys/default.nix b/pkgs/development/libraries/aacskeys/default.nix new file mode 100644 index 000000000000..3bed95e26714 --- /dev/null +++ b/pkgs/development/libraries/aacskeys/default.nix @@ -0,0 +1,45 @@ +{stdenv, fetchurl, openssl, jdk, premake}: + +# Info on how to use / obtain aacs keys: +# http://vlc-bluray.whoknowsmy.name/ +# https://wiki.archlinux.org/index.php/BluRay + + +let baseName = "aacskeys"; + version = "0.4.0c"; +in + +stdenv.mkDerivation { + name = "${baseName}-${version}"; + + patchPhase = '' + substituteInPlace "premake.lua" \ + --replace "/usr/lib/jvm/java-6-sun/include" "${jdk}/include" + ''; + + src = fetchurl { + url = "http://debian-multimedia.org/pool/main/a/${baseName}/${baseName}_${version}.orig.tar.gz"; + sha256 = "54ea78898917f4acaf78101dda254de56bc7696bad12cbf22ee6f09d4ee88a43"; + }; + + buildInputs = [openssl jdk premake]; + + installPhase = '' + ensureDir $out/{bin,lib,share/${baseName}} + + # Install lib + install -Dm444 lib/linux/libaacskeys.so $out/lib + + # Install program + install -Dm555 bin/linux/aacskeys $out/bin + + # Install resources + install -Dm444 HostKeyCertificate.txt $out/share/${baseName} + install -Dm444 ProcessingDeviceKeysSimple.txt $out/share/${baseName} + ''; + + meta = { + homepage = http://forum.doom9.org/showthread.php?t=123311; + description = "A library and program to retrieve decryption keys for HD discs"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 36f2d801303f..a16fca55a021 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3194,6 +3194,8 @@ let a52dec = callPackage ../development/libraries/a52dec { }; + aacskeys = callPackage ../development/libraries/aacskeys { }; + aalib = callPackage ../development/libraries/aalib { }; acl = callPackage ../development/libraries/acl { };