31 lines
817 B
Nix
31 lines
817 B
Nix
|
{ 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 ];
|
||
|
};
|
||
|
}
|