mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
quba: fix appimageTools version
This commit is contained in:
parent
9f332351e6
commit
00b20dc667
@ -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}'
|
||||
|
Loading…
Reference in New Issue
Block a user