Merge pull request #187283 from K900/update-via

via: 1.3.1 -> 2.0.5
This commit is contained in:
K900 2022-08-19 09:12:14 +03:00 committed by GitHub
commit 4610b8cf5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,13 +2,12 @@
let
pname = "via";
version = "1.3.1";
version = "2.0.5";
name = "${pname}-${version}";
nameExecutable = pname;
src = fetchurl {
url = "https://github.com/the-via/releases/releases/download/v${version}/via-${version}-linux.AppImage";
name = "via-${version}-linux.AppImage";
sha256 = "d2cd73d280a265149fedb24161ec7c575523596c4d30898ad6b5875e09b3f34a";
sha256 = "sha256-APNtzfeV6z8IF20bomcgMq7mwcK1fbDdFF77Xr0UPOs=";
};
appimageContents = appimageTools.extractType2 { inherit name src; };
in appimageTools.wrapType2 {
@ -22,8 +21,8 @@ in appimageTools.wrapType2 {
extraInstallCommands = ''
mv $out/bin/${name} $out/bin/${pname}
install -m 444 -D ${appimageContents}/via.desktop -t $out/share/applications
substituteInPlace $out/share/applications/via.desktop \
install -m 444 -D ${appimageContents}/via-nativia.desktop -t $out/share/applications
substituteInPlace $out/share/applications/via-nativia.desktop \
--replace 'Exec=AppRun' 'Exec=${pname}'
cp -r ${appimageContents}/usr/share/icons $out/share
@ -34,7 +33,7 @@ in appimageTools.wrapType2 {
meta = with lib; {
description = "Yet another keyboard configurator";
homepage = "https://caniusevia.com/";
license = licenses.unfree;
license = licenses.gpl3;
maintainers = with maintainers; [ emilytrau ];
platforms = [ "x86_64-linux" ];
};