From dad6db2461d76f0c2d0c2bb6e88cfa0c49aefcba Mon Sep 17 00:00:00 2001 From: Ryan Artecona Date: Fri, 8 Apr 2016 08:47:50 -0400 Subject: [PATCH] libdvdcss: add darwin support --- pkgs/development/libraries/libdvdcss/default.nix | 6 ++++-- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) 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 {