diff --git a/pkgs/development/libraries/libdvdcss/default.nix b/pkgs/development/libraries/libdvdcss/default.nix index ae3ae407a923..63978cfd740f 100644 --- a/pkgs/development/libraries/libdvdcss/default.nix +++ b/pkgs/development/libraries/libdvdcss/default.nix @@ -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; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9a6fcab08d2f..4ace5b7dd717 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 {