rambox: fix for binary dropping version suffix

fixes https://github.com/NixOS/nixpkgs/issues/307545
This commit is contained in:
Krzysztof Nazarewski 2024-04-29 09:55:50 +02:00
parent 9516f3c963
commit debfa14c11
No known key found for this signature in database
GPG key ID: 985C1ACE088CC9F4

View file

@ -17,7 +17,7 @@ let
categories = [ "Network" ];
});
appimageContents = appimageTools.extractType2 {
appimageContents = appimageTools.extract {
inherit pname version src;
};
in
@ -26,7 +26,6 @@ appimageTools.wrapType2 {
extraInstallCommands = ''
mkdir -p $out/share/applications $out/share/icons/hicolor/256x256/apps
ln -sf rambox-${version} $out/bin/${pname}
install -Dm644 ${appimageContents}/usr/share/icons/hicolor/256x256/apps/rambox*.png $out/share/icons/hicolor/256x256/apps/${pname}.png
install -Dm644 ${desktopItem}/share/applications/* $out/share/applications
'';