Merge pull request #216281 from eonpatapon/sonixd-desktop

sonixd: package icon and desktop file
This commit is contained in:
Jonas Heinrich 2023-02-14 13:37:23 +00:00 committed by GitHub
commit b096dcbd08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,17 +3,25 @@
, appimageTools
}:
appimageTools.wrapType2 rec {
let
pname = "sonixd";
version = "0.15.3";
src = fetchurl {
url = "https://github.com/jeffvli/sonixd/releases/download/v${version}/Sonixd-${version}-linux-x86_64.AppImage";
sha256 = "sha256-+4L3XAuR7T/z5a58SXre6yUiVi7TvSAs8vPgEC7hcIw=";
};
appimageContents = appimageTools.extractType2 { inherit pname version src; };
in
appimageTools.wrapType2 rec {
inherit pname version src;
extraInstallCommands = ''
mv $out/bin/sonixd-${version} $out/bin/sonixd
mv $out/bin/${pname}-${version} $out/bin/${pname}
install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
install -m 444 -D ${appimageContents}/${pname}.png \
$out/share/icons/hicolor/1024x1024/apps/${pname}.png
'';
meta = with lib; {