From c6612e92f888cc8abf0126fc3082a9d2738adf42 Mon Sep 17 00:00:00 2001 From: K900 Date: Thu, 18 Aug 2022 16:21:56 +0300 Subject: [PATCH] via: 1.3.1 -> 2.0.5 Upstream also relicensed as GPLv3 --- pkgs/tools/misc/via/default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/misc/via/default.nix b/pkgs/tools/misc/via/default.nix index 4e5641e304ce..3a7d51f4c7c3 100644 --- a/pkgs/tools/misc/via/default.nix +++ b/pkgs/tools/misc/via/default.nix @@ -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" ]; };