2021-07-08 14:52:33 +02:00
|
|
|
{ lib, fetchurl, appimageTools }:
|
|
|
|
let
|
|
|
|
name = "vial-${version}";
|
2021-12-30 12:52:39 +01:00
|
|
|
version = "0.4.2";
|
2021-07-08 14:52:33 +02:00
|
|
|
pname = "Vial";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/vial-kb/vial-gui/releases/download/v${version}/${pname}-v${version}-x86_64.AppImage";
|
2021-12-30 12:52:39 +01:00
|
|
|
sha256 = "sha256-T3aSwv/qTJHR/Fa6qU1fWbp3duvny4lC+9jBwQzpw2w=";
|
2021-07-08 14:52:33 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
appimageContents = appimageTools.extractType2 { inherit name src; };
|
|
|
|
in
|
|
|
|
appimageTools.wrapType2 {
|
|
|
|
inherit name src;
|
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
mv $out/bin/${name} $out/bin/${pname}
|
|
|
|
install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
|
|
|
|
cp -r ${appimageContents}/usr/share/icons $out/share
|
|
|
|
|
|
|
|
mkdir -p $out/etc/udev/rules.d/ # https://get.vial.today/getting-started/linux-udev.html
|
|
|
|
echo 'KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0666", TAG+="uaccess", TAG+="udev-acl"' > $out/etc/udev/rules.d/92-viia.rules
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2021-12-30 12:52:39 +01:00
|
|
|
description = "An Open-source QMK GUI fork for configuring your keyboard in real time";
|
2021-07-08 14:52:33 +02:00
|
|
|
homepage = "https://get.vial.today";
|
2021-07-30 10:58:42 +02:00
|
|
|
license = licenses.gpl2Plus;
|
2021-07-08 14:52:33 +02:00
|
|
|
maintainers = with maintainers; [ kranzes ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|