commit
4610b8cf5e
|
@ -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" ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue