tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
opera: fix build
Nikolay Amiantov
10 years ago
70bb5553
4c7ef768
+2
-1
1 changed file
expand all
collapse all
unified
split
pkgs
applications
networking
browsers
opera
default.nix
+2
-1
pkgs/applications/networking/browsers/opera/default.nix
···
50
50
51
51
preFixup =
52
52
''
53
53
+
rm $out/bin/uninstall-opera
53
54
find $out/lib/opera -type f | while read f; do
54
54
-
type=$(readelf -h "$f" 2>/dev/null | grep 'Type:' | sed -e 's/ *Type: *\([A-Z]*\) (.*/\1/')
55
55
+
type=$(readelf -h "$f" 2>/dev/null | sed -n 's/ *Type: *\([A-Z]*\).*/\1/p' || true)
55
56
if [ -z "$type" ]; then
56
57
:
57
58
elif [ $type == "EXEC" ]; then