via: 1.3.1 -> 2.0.5

Upstream also relicensed as GPLv3
This commit is contained in:
K900 2022-08-18 16:21:56 +03:00
parent 30ad2e1c12
commit c6612e92f8

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" ];
};