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

28 lines
679 B
Nix
Raw Normal View History

{stdenv, fetchurl, libdvdcss}:
stdenv.mkDerivation rec {
pname = "libdvdread";
2020-03-24 15:32:53 +00:00
version = "6.1.0";
src = fetchurl {
url = "http://get.videolan.org/libdvdread/${version}/${pname}-${version}.tar.bz2";
2020-03-24 15:32:53 +00:00
sha256 = "033mnhq3mx0qz3z85vw01rz5wzmx5ynadl7q1wm2spvx3ryvs6sh";
};
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/";
description = "A library for reading DVDs";
license = stdenv.lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.wmertens ];
2017-04-20 21:42:43 +00:00
platforms = with stdenv.lib.platforms; linux ++ darwin;
};
}