waydroid: fix icon, shell and iptables
This commit is contained in:
parent
a3c24f9535
commit
9156d02e92
1 changed files with 11 additions and 3 deletions
|
@ -9,11 +9,12 @@
|
||||||
, kmod
|
, kmod
|
||||||
, lxc
|
, lxc
|
||||||
, iproute2
|
, iproute2
|
||||||
, nftables
|
, iptables
|
||||||
, util-linux
|
, util-linux
|
||||||
, which
|
, which
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
, xclip
|
, xclip
|
||||||
|
, runtimeShell
|
||||||
}:
|
}:
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
|
@ -50,14 +51,15 @@ python3Packages.buildPythonApplication rec {
|
||||||
dontWrapGApps = true;
|
dontWrapGApps = true;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
make install PREFIX=$out USE_SYSTEMD=0 USE_NFTABLES=1
|
make install PREFIX=$out USE_SYSTEMD=0
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
||||||
|
|
||||||
|
patchShebangs --host $out/lib/waydroid/data/scripts
|
||||||
wrapProgram $out/lib/waydroid/data/scripts/waydroid-net.sh \
|
wrapProgram $out/lib/waydroid/data/scripts/waydroid-net.sh \
|
||||||
--prefix PATH ":" ${lib.makeBinPath [ dnsmasq getent iproute2 nftables ]}
|
--prefix PATH ":" ${lib.makeBinPath [ dnsmasq getent iproute2 iptables ]}
|
||||||
|
|
||||||
wrapPythonProgramsIn $out/lib/waydroid/ "${lib.concatStringsSep " " [
|
wrapPythonProgramsIn $out/lib/waydroid/ "${lib.concatStringsSep " " [
|
||||||
"$out"
|
"$out"
|
||||||
|
@ -71,6 +73,12 @@ python3Packages.buildPythonApplication rec {
|
||||||
which
|
which
|
||||||
xclip
|
xclip
|
||||||
]}"
|
]}"
|
||||||
|
|
||||||
|
substituteInPlace $out/lib/waydroid/tools/helpers/*.py \
|
||||||
|
--replace '"sh"' '"${runtimeShell}"'
|
||||||
|
|
||||||
|
substituteInPlace $out/share/applications/*.desktop \
|
||||||
|
--replace "/usr" "$out"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue