netsurf: only wrap one time for GTK build
This commit is contained in:
parent
7fef224538
commit
d53399e1b3
@ -86,10 +86,17 @@ stdenv.mkDerivation rec {
|
||||
mkdir -p $out/bin $out/share/Netsurf/${uilib}
|
||||
cmd=$(case "${uilib}" in framebuffer) echo nsfb;; gtk) echo nsgtk;; esac)
|
||||
cp $cmd $out/bin/netsurf
|
||||
wrapProgram $out/bin/netsurf --set NETSURFRES $out/share/Netsurf/${uilib}/res
|
||||
tar -hcf - frontends/${uilib}/res | (cd $out/share/Netsurf/ && tar -xvpf -)
|
||||
'';
|
||||
|
||||
preFixup = ''
|
||||
gappsWrapperArgs+=(
|
||||
--set NETSURFRES $out/share/Netsurf/${uilib}/res
|
||||
)
|
||||
'' + stdenv.lib.optionalString (uilib != "gtk") ''
|
||||
wrapProgram $out/bin/netsurf "''${gappsWrapperArgs[@]}"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://www.netsurf-browser.org/;
|
||||
description = "Free opensource web browser";
|
||||
|
Loading…
Reference in New Issue
Block a user