diff --git a/pkgs/tools/cd-dvd/cdrkit/default.nix b/pkgs/tools/cd-dvd/cdrkit/default.nix index 7fd51d5d254f5..7aa400e51f07d 100644 --- a/pkgs/tools/cd-dvd/cdrkit/default.nix +++ b/pkgs/tools/cd-dvd/cdrkit/default.nix @@ -1,4 +1,4 @@ -{lib, stdenv, fetchurl, cmake, libcap, zlib, bzip2, perl, iconv, darwin}: +{lib, stdenv, fetchurl, cmake, libcap, zlib, bzip2, perl}: stdenv.mkDerivation rec { pname = "cdrkit"; @@ -11,8 +11,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake ]; buildInputs = [ zlib bzip2 perl ] ++ - lib.optionals stdenv.hostPlatform.isLinux [ libcap ] ++ - lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [ Carbon IOKit iconv ]); + lib.optionals stdenv.hostPlatform.isLinux [ libcap ]; hardeningDisable = [ "format" ]; env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.hostPlatform.isMusl [ @@ -44,10 +43,8 @@ stdenv.mkDerivation rec { ''; postConfigure = lib.optionalString stdenv.hostPlatform.isDarwin '' - for f in */CMakeFiles/*.dir/link.txt ; do - substituteInPlace "$f" \ - --replace "-lrt" "-framework IOKit" - done + substituteInPlace */CMakeFiles/*.dir/link.txt \ + --replace-warn "-lrt" "-framework IOKit -framework CoreFoundation" ''; postInstall = ''