opera: fix build
commit70bb55536898a20d81fa2a10ef9ac80e42d417ac
authorNikolay Amiantov <ab@fmap.me>
dateSat 10 Oct 2015, 14:24 (11 years ago)
parent4c7ef76
pkgs/applications/networking/browsers/opera/default.nix+2−1
@@ -50,8 +50,9 @@ stdenv.mkDerivation rec {
5050
5151 preFixup =
5252 ''
53+ rm $out/bin/uninstall-opera
5354 find $out/lib/opera -type f | while read f; do
54− type=$(readelf -h "$f" 2>/dev/null | grep 'Type:' | sed -e 's/ *Type: *\([A-Z]*\) (.*/\1/')
55+ type=$(readelf -h "$f" 2>/dev/null | sed -n 's/ *Type: *\([A-Z]*\).*/\1/p' || true)
5556 if [ -z "$type" ]; then
5657 :
5758 elif [ $type == "EXEC" ]; then