nixpkgs-suyu/pkgs/development/libraries/libdvdread/default.nix

28 lines
675 B
Nix
Raw Normal View History

{stdenv, fetchurl, libdvdcss}:
stdenv.mkDerivation rec {
name = "libdvdread-${version}";
version = "6.0.0";
src = fetchurl {
url = "http://get.videolan.org/libdvdread/${version}/${name}.tar.bz2";
sha256 = "0dgr23fzcjhb7ck54xkr9zmf4jcq3ph0dz3fbyvla1c6ni9ijfxk";
};
buildInputs = [libdvdcss];
NIX_LDFLAGS = "-ldvdcss";
postInstall = ''
ln -s dvdread $out/include/libdvdread
'';
meta = {
homepage = http://dvdnav.mplayerhq.hu/;
description = "A library for reading DVDs";
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;
};
}