2021-01-21 17:00:13 +00:00
|
|
|
{lib, stdenv, fetchurl, libdvdcss}:
|
2015-05-15 03:26:16 +00:00
|
|
|
|
2021-11-09 21:14:04 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libdvdread";
|
|
|
|
version = "4.9.9";
|
2021-01-19 21:20:11 +00:00
|
|
|
|
2015-05-15 03:26:16 +00:00
|
|
|
src = fetchurl {
|
2021-11-09 21:14:04 +00:00
|
|
|
url = "http://dvdnav.mplayerhq.hu/releases/libdvdread-${version}.tar.xz";
|
2015-05-15 03:26:16 +00:00
|
|
|
sha256 = "d91275471ef69d488b05cf15c60e1cd65e17648bfc692b405787419f47ca424a";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [libdvdcss];
|
|
|
|
|
|
|
|
NIX_LDFLAGS = "-ldvdcss";
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
ln -s dvdread $out/include/libdvdread
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://dvdnav.mplayerhq.hu/";
|
2015-05-15 03:26:16 +00:00
|
|
|
description = "A library for reading DVDs";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = [ lib.maintainers.wmertens ];
|
|
|
|
platforms = lib.platforms.linux;
|
2015-05-15 03:26:16 +00:00
|
|
|
};
|
|
|
|
}
|