2013-04-08 20:06:54 +01:00
|
|
|
{stdenv, fetchurl, openssl, jdk, premake3}:
|
2012-02-22 20:29:46 +00:00
|
|
|
|
|
|
|
# Info on how to use / obtain aacs keys:
|
|
|
|
# http://vlc-bluray.whoknowsmy.name/
|
|
|
|
# https://wiki.archlinux.org/index.php/BluRay
|
|
|
|
|
|
|
|
|
|
|
|
let baseName = "aacskeys";
|
2012-11-12 09:53:57 +00:00
|
|
|
version = "0.4.0e";
|
2012-02-22 20:29:46 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${baseName}-${version}";
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace "premake.lua" \
|
|
|
|
--replace "/usr/lib/jvm/java-6-sun/include" "${jdk}/include"
|
|
|
|
'';
|
|
|
|
|
|
|
|
src = fetchurl {
|
2012-11-12 09:53:57 +00:00
|
|
|
url = "http://deb-multimedia.org/pool/main/a/${baseName}/${baseName}_${version}.orig.tar.gz";
|
|
|
|
sha256 = "0d3zvwixpkixfkkc16wj37h2xbcq5hsqqhqngzqr6pslmqr67vnr";
|
2012-02-22 20:29:46 +00:00
|
|
|
};
|
|
|
|
|
2013-04-08 20:06:54 +01:00
|
|
|
buildInputs = [openssl jdk premake3];
|
2012-02-22 20:29:46 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2014-06-30 13:56:10 +01:00
|
|
|
mkdir -p $out/{bin,lib,share/${baseName}}
|
2012-02-22 20:29:46 +00:00
|
|
|
|
|
|
|
# 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}
|
|
|
|
'';
|
|
|
|
|
2018-08-19 09:29:28 +01:00
|
|
|
meta = with stdenv.lib; {
|
2012-02-22 20:29:46 +00:00
|
|
|
homepage = http://forum.doom9.org/showthread.php?t=123311;
|
|
|
|
description = "A library and program to retrieve decryption keys for HD discs";
|
2018-08-19 09:29:28 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.publicDomain;
|
2012-02-22 20:29:46 +00:00
|
|
|
};
|
|
|
|
}
|