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}
|
mkdir -p $out/bin $out/share/Netsurf/${uilib}
|
||||||
cmd=$(case "${uilib}" in framebuffer) echo nsfb;; gtk) echo nsgtk;; esac)
|
cmd=$(case "${uilib}" in framebuffer) echo nsfb;; gtk) echo nsgtk;; esac)
|
||||||
cp $cmd $out/bin/netsurf
|
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 -)
|
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; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://www.netsurf-browser.org/;
|
homepage = http://www.netsurf-browser.org/;
|
||||||
description = "Free opensource web browser";
|
description = "Free opensource web browser";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user