Added makeWrapper suggestion
This commit is contained in:
parent
db3a1d8adb
commit
fd121cdd88
@ -1,4 +1,4 @@
|
|||||||
{stdenv, fetchurl, unzip, runtimeShell, makeDesktopItem, nwjs, wrapGAppsHook, gsettings-desktop-schemas, gtk3 }:
|
{stdenv, fetchurl, unzip, runtimeShell, makeDesktopItem, makeWrapper, nwjs, wrapGAppsHook, gsettings-desktop-schemas, gtk3 }:
|
||||||
|
|
||||||
let
|
let
|
||||||
strippedName = "betaflight-configurator";
|
strippedName = "betaflight-configurator";
|
||||||
@ -32,12 +32,7 @@ stdenv.mkDerivation rec {
|
|||||||
cp icon/*_icon_128.png $out/share/icons/${strippedName}-icon.png
|
cp icon/*_icon_128.png $out/share/icons/${strippedName}-icon.png
|
||||||
cp -r ${desktopItem}/share/applications $out/share/
|
cp -r ${desktopItem}/share/applications $out/share/
|
||||||
|
|
||||||
cat >$out/bin/${strippedName}<<EOL
|
makeWrapper ${nwjs}/bin/nw $out/bin/${strippedName} --add-flags $out/opt/${strippedName}
|
||||||
#!${runtimeShell}
|
|
||||||
|
|
||||||
${nwjs}/bin/nw $out/opt/${strippedName}
|
|
||||||
EOL
|
|
||||||
chmod +x $out/bin/${strippedName}
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user