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

30 lines
586 B
Nix
Raw Normal View History

{stdenv, fetchurl, libdvdcss}:
stdenv.mkDerivation {
2014-04-04 18:04:26 +04:00
name = "libdvdread-4.2.1";
src = fetchurl {
2014-04-04 18:04:26 +04:00
url = http://dvdnav.mplayerhq.hu/releases/libdvdread-4.2.1.tar.xz;
sha256 = "af9b98f049580a6521d56c978b736d3d609562dd12955e11d50e26d97542dcd4";
};
buildInputs = [libdvdcss];
NIX_LDFLAGS = "-ldvdcss";
configureScript = "./configure2"; # wtf?
preConfigure = ''
mkdir -p $out
'';
postInstall = ''
ln -s dvdread $out/include/libdvdread
'';
meta = {
homepage = http://www.mplayerhq.hu/;
description = "A library for reading DVDs";
};
}