Merge pull request #292448 from SuperSandro2000/onionshare

onionshare-gui: fix triple wrapping, fix meta.mainProgram
This commit is contained in:
Weijia Wang 2024-03-01 09:38:52 +01:00 committed by GitHub
commit 4c768c8351
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,7 +59,6 @@ let
license = licenses.gpl3Plus;
maintainers = with maintainers; [ bbjubjub ];
mainProgram = "onionshare-cli";
};
# TODO: package meek https://support.torproject.org/glossary/meek/
@ -69,7 +68,7 @@ in
rec {
onionshare = buildPythonApplication {
pname = "onionshare-cli";
inherit version meta;
inherit version;
src = "${src}/cli";
patches = [
# hardcode store paths of dependencies
@ -122,11 +121,15 @@ rec {
# to fake
"test_receive_mode_webhook"
];
meta = meta // {
mainProgram = "onionshare-cli";
};
};
onionshare-gui = buildPythonApplication {
pname = "onionshare";
inherit version meta;
inherit version;
src = "${src}/desktop";
patches = [
# hardcode store paths of dependencies
@ -155,12 +158,18 @@ rec {
cp $src/org.onionshare.OnionShare.appdata.xml $out/share/appdata
'';
dontWrapQtApps = true;
preFixup = ''
wrapQtApp $out/bin/onionshare
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
'';
doCheck = false;
pythonImportsCheck = [ "onionshare" ];
meta = meta // {
mainProgram = "onionshare";
};
};
}