about summary refs log tree commit diff
path: root/pkgs/development/tools/misc/elfutils
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2018-07-24 20:11:51 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-08-02 15:10:03 -0400
commit9d23b95483a63fd93544059798d07f68035f2361 (patch)
tree890ff252d04abd4b0a4d88cf76d170c5da61b682 /pkgs/development/tools/misc/elfutils
parent34da7e2ce2ca92bdeb73d8257e2ca145a0fc45a5 (diff)
elfutils: Clean up with rebuild
Wrote contorted code before to avoid mass-rebuild
Diffstat (limited to 'pkgs/development/tools/misc/elfutils')
-rw-r--r--pkgs/development/tools/misc/elfutils/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/tools/misc/elfutils/default.nix b/pkgs/development/tools/misc/elfutils/default.nix
index af140bfb1d65b..e067c0a669bed 100644
--- a/pkgs/development/tools/misc/elfutils/default.nix
+++ b/pkgs/development/tools/misc/elfutils/default.nix
@@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
   #
   # I wrote this testing for the nanonote.
 
-  buildPhase = if stdenv.hostPlatform == stdenv.buildPlatform then null else ''
+  buildPhase = stdenv.lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
     pushd libebl
     make
     popd
@@ -50,7 +50,7 @@ stdenv.mkDerivation rec {
     popd
   '';
 
-  installPhase = if stdenv.hostPlatform == stdenv.buildPlatform then null else ''
+  installPhase = stdenv.lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
     pushd libelf
     make install
     popd