2003-12-04 00:58:16 +03:00
|
|
|
{stdenv, fetchurl, libdvdcss}:
|
|
|
|
|
2015-05-15 06:26:16 +03:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libdvdread-${version}";
|
2016-04-12 23:21:49 +03:00
|
|
|
version = "5.0.3";
|
2015-05-15 06:26:16 +03:00
|
|
|
|
2003-12-04 00:58:16 +03:00
|
|
|
src = fetchurl {
|
2016-02-07 15:18:48 +03:00
|
|
|
url = "http://get.videolan.org/libdvdread/${version}/${name}.tar.bz2";
|
2016-04-12 23:21:49 +03:00
|
|
|
sha256 = "0ayqiq0psq18rcp6f5pz82sxsq66v0kwv0y55dbrcg68plnxy71j";
|
2009-03-11 00:03:51 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [libdvdcss];
|
|
|
|
|
|
|
|
NIX_LDFLAGS = "-ldvdcss";
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
ln -s dvdread $out/include/libdvdread
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2014-05-04 03:23:13 +04:00
|
|
|
homepage = http://dvdnav.mplayerhq.hu/;
|
2009-03-11 00:03:51 +03:00
|
|
|
description = "A library for reading DVDs";
|
2014-05-04 03:23:13 +04:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.wmertens ];
|
2017-04-21 00:42:43 +03:00
|
|
|
platforms = with stdenv.lib.platforms; linux ++ darwin;
|
2003-12-04 00:58:16 +03:00
|
|
|
};
|
|
|
|
}
|