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:
commit
6af89f2653
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue