1
0
Fork 1
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:
Nikolay Amiantov 2015-10-10 14:24:05 +03:00
parent 4c7ef76862
commit 70bb555368

View file

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