2021-01-21 17:00:13 +00:00
|
|
|
{lib, stdenv, fetchurl, libdvdcss}:
|
2003-12-03 21:58:16 +00:00
|
|
|
|
2015-05-15 04:26:16 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libdvdread";
|
2020-05-05 19:25:54 +01:00
|
|
|
version = "6.1.1";
|
2015-05-15 04:26:16 +01:00
|
|
|
|
2003-12-03 21:58:16 +00:00
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "http://get.videolan.org/libdvdread/${version}/${pname}-${version}.tar.bz2";
|
2020-05-05 19:25:54 +01:00
|
|
|
sha256 = "15hpwbw3nm84y432l0j61w0zmqxplsyymfc52dry6nvwl44p6d9y";
|
2009-03-10 21:03:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [libdvdcss];
|
|
|
|
|
|
|
|
NIX_LDFLAGS = "-ldvdcss";
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
ln -s dvdread $out/include/libdvdread
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-03-24 15:32:53 +00:00
|
|
|
homepage = "http://dvdnav.mplayerhq.hu/";
|
2009-03-10 21:03:51 +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 = with lib.platforms; linux ++ darwin;
|
2003-12-03 21:58:16 +00:00
|
|
|
};
|
|
|
|
}
|