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