mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 01:33:20 +00:00
elfutils: Clean up with rebuild
Wrote contorted code before to avoid mass-rebuild
This commit is contained in:
parent
34da7e2ce2
commit
9d23b95483
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user