0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

dbgate: add desktop entries (#359534)

This commit is contained in:
Colin 2024-12-02 23:19:52 +00:00 committed by GitHub
commit 6af89f2653
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -61,6 +61,9 @@ if stdenv.hostPlatform.isDarwin then
'';
}
else
let
appimageContents = appimageTools.extract { inherit pname src version; };
in
appimageTools.wrapType2 {
inherit
pname
@ -68,4 +71,9 @@ else
src
meta
;
extraInstallCommands = ''
install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
substituteInPlace $out/share/applications/${pname}.desktop --replace-warn "Exec=AppRun --no-sandbox" "Exec=$out/bin/${pname}"
cp -r ${appimageContents}/usr/share/icons $out/share
'';
}