Revert "libfreeaptx: avoid rebuilding on Linux for now"

This reverts commit 39f9c2dcfe.
Here on staging we can clean up and use nicer nix code.
This commit is contained in:
Vladimír Čunát 2022-05-20 20:56:56 +02:00
parent 380384cb5c
commit 8abf3eaa38
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -11,11 +11,11 @@ stdenv.mkDerivation rec {
sha256 = "sha256-eEUhOrKqb2hHWanY+knpY9FBEnjkkFTB+x6BZgMBpbo="; sha256 = "sha256-eEUhOrKqb2hHWanY+knpY9FBEnjkkFTB+x6BZgMBpbo=";
}; };
postPatch = if stdenv.isDarwin then '' postPatch = lib.optionalString stdenv.isDarwin ''
substituteInPlace Makefile \ substituteInPlace Makefile \
--replace '-soname' '-install_name' \ --replace '-soname' '-install_name' \
--replace 'lib$(NAME).so' 'lib$(NAME).dylib' --replace 'lib$(NAME).so' 'lib$(NAME).dylib'
'' else null; '';
makeFlags = [ makeFlags = [
"PREFIX=${placeholder "out"}" "PREFIX=${placeholder "out"}"
@ -27,12 +27,12 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
postInstall = if stdenv.isDarwin then '' postInstall = lib.optionalString stdenv.isDarwin ''
install_name_tool -change libfreeaptx.dylib.0 $out/lib/libfreeaptx.dylib.0 $out/bin/freeaptxdec install_name_tool -change libfreeaptx.dylib.0 $out/lib/libfreeaptx.dylib.0 $out/bin/freeaptxdec
install_name_tool -change libfreeaptx.dylib.0 $out/lib/libfreeaptx.dylib.0 $out/bin/freeaptxenc install_name_tool -change libfreeaptx.dylib.0 $out/lib/libfreeaptx.dylib.0 $out/bin/freeaptxenc
install_name_tool -id $out/lib/libfreeaptx.dylib $out/lib/libfreeaptx.dylib install_name_tool -id $out/lib/libfreeaptx.dylib $out/lib/libfreeaptx.dylib
install_name_tool -id $out/lib/libfreeaptx.dylib.0 $out/lib/libfreeaptx.dylib.0 install_name_tool -id $out/lib/libfreeaptx.dylib.0 $out/lib/libfreeaptx.dylib.0
'' else null; '';
meta = with lib; { meta = with lib; {
description = "Free Implementation of Audio Processing Technology codec (aptX)"; description = "Free Implementation of Audio Processing Technology codec (aptX)";