diff options
author | Vladimír Čunát <v@cunat.cz> | 2022-05-20 16:26:46 +0200 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2022-05-20 16:26:46 +0200 |
commit | 39f9c2dcfebcf1dc7607e8dcf8ce620ab76c6899 (patch) | |
tree | 6fd0b19eb7d0cc9310ed724e16e01e7df244d391 /pkgs/development/libraries/libfreeaptx | |
parent | 7ee64873f3d58ec84bedf25a1b05a6c8e0907fe3 (diff) |
libfreeaptx: avoid rebuilding on Linux for now
Commit 152765ca8b caused thousands of rebuilds; let's save doing that work on nixpkgs master.
Diffstat (limited to 'pkgs/development/libraries/libfreeaptx')
-rw-r--r-- | pkgs/development/libraries/libfreeaptx/default.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/development/libraries/libfreeaptx/default.nix b/pkgs/development/libraries/libfreeaptx/default.nix index 648b6fac0dfc2..618b74258a4f6 100644 --- a/pkgs/development/libraries/libfreeaptx/default.nix +++ b/pkgs/development/libraries/libfreeaptx/default.nix @@ -11,11 +11,11 @@ stdenv.mkDerivation rec { sha256 = "sha256-eEUhOrKqb2hHWanY+knpY9FBEnjkkFTB+x6BZgMBpbo="; }; - postPatch = lib.optionalString stdenv.isDarwin '' + postPatch = if stdenv.isDarwin then '' substituteInPlace Makefile \ --replace '-soname' '-install_name' \ --replace 'lib$(NAME).so' 'lib$(NAME).dylib' - ''; + '' else null; makeFlags = [ "PREFIX=${placeholder "out"}" @@ -27,12 +27,12 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - postInstall = lib.optionalString stdenv.isDarwin '' + postInstall = if stdenv.isDarwin then '' 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 -id $out/lib/libfreeaptx.dylib $out/lib/libfreeaptx.dylib install_name_tool -id $out/lib/libfreeaptx.dylib.0 $out/lib/libfreeaptx.dylib.0 - ''; + '' else null; meta = with lib; { description = "Free Implementation of Audio Processing Technology codec (aptX)"; |