Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 libdvdcss, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "libdvdread"; 10 version = "6.1.3"; 11 12 src = fetchurl { 13 url = "http://get.videolan.org/libdvdread/${version}/${pname}-${version}.tar.bz2"; 14 sha256 = "sha256-zjVFSZeiCMvlDpEjLw5z+xrDRxllgToTuHMKjxihU2k="; 15 }; 16 17 buildInputs = [ libdvdcss ]; 18 19 NIX_LDFLAGS = "-ldvdcss"; 20 21 postInstall = '' 22 ln -s dvdread $out/include/libdvdread 23 ''; 24 25 meta = { 26 homepage = "http://dvdnav.mplayerhq.hu/"; 27 description = "Library for reading DVDs"; 28 license = lib.licenses.gpl2; 29 maintainers = [ lib.maintainers.wmertens ]; 30 platforms = lib.platforms.unix; 31 }; 32}