quba: fix appimageTools version

This commit is contained in:
Felix Buehler 2024-11-28 20:23:06 +01:00
parent 9f332351e6
commit 00b20dc667

View File

@ -7,20 +7,18 @@
let
version = "1.4.0";
pname = "quba";
name = "${pname}-${version}";
src = fetchurl {
url = "https://github.com/ZUGFeRD/quba-viewer/releases/download/v${version}/Quba-${version}.AppImage";
hash = "sha256-EsTF7W1np5qbQQh3pdqsFe32olvGK3AowGWjqHPEfoM=";
};
appimageContents = appimageTools.extractType1 { inherit name src; };
appimageContents = appimageTools.extractType1 { inherit pname version src; };
in
appimageTools.wrapType1 {
inherit name src;
inherit pname version src;
extraInstallCommands = ''
mv $out/bin/${name} $out/bin/${pname}
install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
substituteInPlace $out/share/applications/${pname}.desktop \
--replace-fail 'Exec=AppRun' 'Exec=${pname}'