1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

elfutils: Clean up with rebuild

Wrote contorted code before to avoid mass-rebuild
This commit is contained in:
John Ericson 2018-07-24 20:11:51 -04:00
parent 34da7e2ce2
commit 9d23b95483

View file

@ -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