Merge pull request #186284 from helsinki-systems/upd/flexoptix-app

This commit is contained in:
Martin Weinelt 2022-08-13 23:27:07 +02:00 committed by GitHub
commit 1fc66678fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,12 +1,11 @@
{ lib, appimageTools, fetchurl, nodePackages }: let
pname = "flexoptix-app";
version = "5.11.0";
name = "${pname}-${version}";
version = "5.12.1";
src = fetchurl {
name = "${name}.AppImage";
name = "${pname}-${version}.AppImage";
url = "https://flexbox.reconfigure.me/download/electron/linux/x64/FLEXOPTIX%20App.${version}.AppImage";
hash = "sha256-Nj6S53b4w84qppkGB7lMpJhJlxifaD4acPryuZxY7cM=";
hash = "sha256-ugnJcSFgEEPJ9qxqmRGgW1fraE4E/HbbxpK/00TXPmw=";
};
udevRules = fetchurl {
@ -14,7 +13,7 @@
hash = "sha256-OZe5dV50xq99olImbo7JQxPjRd7hGyBIVwFvtR9cIVc=";
};
appimageContents = (appimageTools.extract { inherit name src; }).overrideAttrs (oA: {
appimageContents = (appimageTools.extract { inherit pname version src; }).overrideAttrs (oA: {
buildCommand = ''
${oA.buildCommand}
@ -26,7 +25,7 @@
});
in appimageTools.wrapAppImage {
inherit name;
inherit pname version;
src = appimageContents;
multiPkgs = null; # no 32bit needed
@ -36,7 +35,7 @@ in appimageTools.wrapAppImage {
extraInstallCommands = ''
# Add desktop convencience stuff
mv $out/bin/{${name},${pname}}
mv $out/bin/{${pname}-*,${pname}}
install -Dm444 ${appimageContents}/flexoptix-app.desktop -t $out/share/applications
install -Dm444 ${appimageContents}/flexoptix-app.png -t $out/share/pixmaps
substituteInPlace $out/share/applications/flexoptix-app.desktop \