From 792988c35e6609940909042d2d32ef6ceb6e3149 Mon Sep 17 00:00:00 2001 From: Dylan Green <67574902+cidkidnix@users.noreply.github.com> Date: Thu, 29 Sep 2022 08:49:22 -0500 Subject: [PATCH] libelf: prevent massive re-build Co-authored-by: John Ericson --- pkgs/development/libraries/libelf/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libelf/default.nix b/pkgs/development/libraries/libelf/default.nix index 65c34b854f8e..07873f4197e3 100644 --- a/pkgs/development/libraries/libelf/default.nix +++ b/pkgs/development/libraries/libelf/default.nix @@ -27,7 +27,7 @@ stdenv.mkDerivation rec { doCheck = true; - preConfigure = lib.optionalString (stdenv.hostPlatform.useAndroidPrebuilt) '' + preConfigure = if !stdenv.hostPlatform.useAndroidPrebuilt then null else '' sed -i 's|DISTSUBDIRS = lib po|DISTSUBDIRS = lib|g' Makefile.in sed -i 's|SUBDIRS = lib @POSUB@|SUBDIRS = lib|g' Makefile.in '';