mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 04:02:10 +00:00
opera: fix build
This commit is contained in:
parent
4c7ef76862
commit
70bb555368
|
@ -50,8 +50,9 @@ stdenv.mkDerivation rec {
|
|||
|
||||
preFixup =
|
||||
''
|
||||
rm $out/bin/uninstall-opera
|
||||
find $out/lib/opera -type f | while read f; do
|
||||
type=$(readelf -h "$f" 2>/dev/null | grep 'Type:' | sed -e 's/ *Type: *\([A-Z]*\) (.*/\1/')
|
||||
type=$(readelf -h "$f" 2>/dev/null | sed -n 's/ *Type: *\([A-Z]*\).*/\1/p' || true)
|
||||
if [ -z "$type" ]; then
|
||||
:
|
||||
elif [ $type == "EXEC" ]; then
|
||||
|
|
Loading…
Reference in a new issue