libdvdcss: add darwin support

This commit is contained in:
Ryan Artecona 2016-04-08 08:47:50 -04:00
parent a387a5d870
commit dad6db2461
2 changed files with 7 additions and 3 deletions

View File

@ -1,9 +1,11 @@
{ stdenv, fetchurl }:
{stdenv, fetchurl, IOKit}:
stdenv.mkDerivation rec {
name = "libdvdcss-${version}";
version = "1.4.0";
buildInputs = stdenv.lib.optional stdenv.isDarwin IOKit;
src = fetchurl {
url = "http://get.videolan.org/libdvdcss/${version}/${name}.tar.bz2";
sha256 = "0nl45ifc4xcb196snv9d6hinfw614cqpzcqp92dg43c0hickg290";
@ -13,6 +15,6 @@ stdenv.mkDerivation rec {
homepage = http://www.videolan.org/developers/libdvdcss.html;
description = "A library for decrypting DVDs";
license = licenses.gpl2;
platforms = platforms.linux;
platforms = with platforms; linux ++ darwin;
};
}

View File

@ -7545,7 +7545,9 @@ in
libdwg = callPackage ../development/libraries/libdwg { };
libdvdcss = callPackage ../development/libraries/libdvdcss { };
libdvdcss = callPackage ../development/libraries/libdvdcss {
inherit (darwin) IOKit;
};
libdvdnav = callPackage ../development/libraries/libdvdnav { };
libdvdnav_4_2_1 = callPackage ../development/libraries/libdvdnav/4.2.1.nix {