2021-07-14 22:03:04 +00:00
|
|
|
{ lib, fetchurl, appimageTools }:
|
|
|
|
let
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.7.1";
|
2021-07-14 22:03:04 +00:00
|
|
|
pname = "Vial";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/vial-kb/vial-gui/releases/download/v${version}/${pname}-v${version}-x86_64.AppImage";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-pOcrxZ6vbnbdE/H4Kxufxm/ZovaYBXjFpVpKZYV7f3c=";
|
2021-07-14 22:03:04 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
appimageContents = appimageTools.extractType2 { inherit pname version src; };
|
2021-07-14 22:03:04 +00:00
|
|
|
in
|
|
|
|
appimageTools.wrapType2 {
|
2024-05-15 15:35:15 +00:00
|
|
|
inherit pname version src;
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
meta = {
|
|
|
|
description = "An Open-source GUI and QMK fork for configuring your keyboard in real time";
|
2021-07-14 22:03:04 +00:00
|
|
|
homepage = "https://get.vial.today";
|
2023-10-09 19:29:22 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "Vial";
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with lib.maintainers; [ kranzes ];
|
2021-07-14 22:03:04 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2023-10-09 19:29:22 +00:00
|
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
2021-07-14 22:03:04 +00:00
|
|
|
};
|
|
|
|
}
|