Merge #173775: libfreeaptx: avoid rebuilding on Linux for now

+4 -4
+4 -4
pkgs/development/libraries/libfreeaptx/default.nix
··· 11 11 sha256 = "sha256-eEUhOrKqb2hHWanY+knpY9FBEnjkkFTB+x6BZgMBpbo="; 12 12 }; 13 13 14 - postPatch = lib.optionalString stdenv.isDarwin '' 14 + postPatch = if stdenv.isDarwin then '' 15 15 substituteInPlace Makefile \ 16 16 --replace '-soname' '-install_name' \ 17 17 --replace 'lib$(NAME).so' 'lib$(NAME).dylib' 18 - ''; 18 + '' else null; 19 19 20 20 makeFlags = [ 21 21 "PREFIX=${placeholder "out"}" ··· 27 27 28 28 enableParallelBuilding = true; 29 29 30 - postInstall = lib.optionalString stdenv.isDarwin '' 30 + postInstall = if stdenv.isDarwin then '' 31 31 install_name_tool -change libfreeaptx.dylib.0 $out/lib/libfreeaptx.dylib.0 $out/bin/freeaptxdec 32 32 install_name_tool -change libfreeaptx.dylib.0 $out/lib/libfreeaptx.dylib.0 $out/bin/freeaptxenc 33 33 install_name_tool -id $out/lib/libfreeaptx.dylib $out/lib/libfreeaptx.dylib 34 34 install_name_tool -id $out/lib/libfreeaptx.dylib.0 $out/lib/libfreeaptx.dylib.0 35 - ''; 35 + '' else null; 36 36 37 37 meta = with lib; { 38 38 description = "Free Implementation of Audio Processing Technology codec (aptX)";