Add wally

This commit is contained in:
asonix 2023-10-31 17:26:22 -05:00
parent dcf4f09400
commit b59d7515e8
3 changed files with 36 additions and 0 deletions

View file

@ -24,6 +24,11 @@
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
overlays = [
(final: prev: {
keymapp = prev.callPackage ./wally-cli {};
})
];
};
in
{

View file

@ -33,6 +33,7 @@ in
htop
neofetch
topgrade
keymapp
amberol
carla

30
wally-cli/default.nix Normal file
View file

@ -0,0 +1,30 @@
{ lib, stdenv, requireFile, pkg-config, autoPatchelfHook, libusb1, webkitgtk }:
stdenv.mkDerivation rec {
pname = "keymapp";
version = "2.1.3";
src = requireFile {
url = "https://github.com/zsa/wally/releases/download/${version}-linux/wally";
sha256 = "owyXTC/VRJdeSPfyrJmiH5Nvo+CAOv7rEJaCanmv294=";
};
dontUnpack = true;
nativeBuildInputs = [ autoPatchelfHook ];
buildInputs = [ libusb1 webkitgtk ];
installPhase = ''
runHook preInstall
install -m755 -D $src $out/bin/wally
runHook postInstall
'';
meta = with lib; {
description = "A tool to flash firmware to mechanical keyboards";
homepage = "https://www.zsa.io/flash/";
platforms = with platforms; linux ++ darwin;
license = licenses.mit;
maintainers = with maintainers; [ spacekookie r-burns ];
};
}