-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ssb-patchwork: fix GTK file selection dialog #83410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| { appimageTools, symlinkJoin, lib, fetchurl, makeDesktopItem }: | ||
| { appimageTools, stdenvNoCC, lib, fetchurl, makeDesktopItem | ||
| , wrapGAppsHook, gsettings-desktop-schemas, gtk3 }: | ||
|
|
||
| let | ||
| pname = "ssb-patchwork"; | ||
|
|
@@ -29,16 +30,20 @@ let | |
| categories = "Network;"; | ||
| }; | ||
|
|
||
| in | ||
| symlinkJoin { | ||
| inherit name; | ||
| paths = [ binary ]; | ||
| in stdenvNoCC.mkDerivation { | ||
| inherit pname version; | ||
|
|
||
| postBuild = '' | ||
| mkdir -p $out/share/pixmaps/ $out/share/applications | ||
| cp ${appimage-contents}/ssb-patchwork.png $out/share/pixmaps | ||
| cp ${desktopItem}/share/applications/* $out/share/applications/ | ||
| ''; | ||
| nativeBuildInputs = [ wrapGAppsHook ]; | ||
|
|
||
| buildCommand = '' | ||
| makeWrapper "${binary}/bin/ssb-patchwork" "$out/bin/ssb-patchwork" \ | ||
| --prefix XDG_DATA_DIRS : "${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}" \ | ||
| --prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}" \ | ||
|
Comment on lines
+36
to
+41
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is an improper use of wrapGAppsHook. It also should automatically wrap everything at
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would prefer an automatic solution but it doesn't work here.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you explain why? If you can't you can just use the makeWrapper with the arguments wrapGAppsHook collects |
||
|
|
||
| mkdir -p $out/share/pixmaps/ $out/share/applications | ||
| cp ${appimage-contents}/ssb-patchwork.png $out/share/pixmaps | ||
| cp ${desktopItem}/share/applications/* $out/share/applications/ | ||
| ''; | ||
|
|
||
| meta = with lib; { | ||
| description = "A decentralized messaging and sharing app built on top of Secure Scuttlebutt (SSB)"; | ||
|
|
@@ -47,7 +52,12 @@ in | |
| ''; | ||
| homepage = "https://www.scuttlebutt.nz/"; | ||
| license = licenses.agpl3; | ||
| maintainers = with maintainers; [ asymmetric ninjatrappeur thedavidmeister ]; | ||
| maintainers = with maintainers; [ | ||
| asymmetric | ||
| ninjatrappeur | ||
| thedavidmeister | ||
| ehmry | ||
| ]; | ||
| platforms = [ "x86_64-linux" ]; | ||
| }; | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really get why we have to use the
NoCCversion here? It has little benefit.