mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
28 lines
663 B
Nix
28 lines
663 B
Nix
{lib, stdenv, fetchurl, libdvdcss}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libdvdread";
|
|
version = "6.1.1";
|
|
|
|
src = fetchurl {
|
|
url = "http://get.videolan.org/libdvdread/${version}/${pname}-${version}.tar.bz2";
|
|
sha256 = "15hpwbw3nm84y432l0j61w0zmqxplsyymfc52dry6nvwl44p6d9y";
|
|
};
|
|
|
|
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 = lib.licenses.gpl2;
|
|
maintainers = [ lib.maintainers.wmertens ];
|
|
platforms = with lib.platforms; linux ++ darwin;
|
|
};
|
|
}
|