2021-02-05 17:12:51 +00:00
|
|
|
{lib, stdenv, fetchurl, libdvdcss}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libdvdread";
|
|
|
|
version = "4.9.9";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2022-01-13 20:06:32 +00:00
|
|
|
url = "http://dvdnav.mplayerhq.hu/releases/libdvdread-${version}.tar.xz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "d91275471ef69d488b05cf15c60e1cd65e17648bfc692b405787419f47ca424a";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [libdvdcss];
|
|
|
|
|
|
|
|
NIX_LDFLAGS = "-ldvdcss";
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
ln -s dvdread $out/include/libdvdread
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://dvdnav.mplayerhq.hu/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Library for reading DVDs";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = [ lib.maintainers.wmertens ];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|