2020-10-02 19:04:33 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, pkg-config, libusb1 }:
|
2019-11-23 11:56:57 +00:00
|
|
|
|
2020-10-02 19:04:33 +01:00
|
|
|
buildGoModule rec {
|
2019-11-23 11:56:57 +00:00
|
|
|
pname = "wally-cli";
|
2021-05-12 14:45:10 +01:00
|
|
|
version = "2.0.1";
|
2019-11-23 11:56:57 +00:00
|
|
|
|
2020-10-02 19:04:33 +01:00
|
|
|
subPackages = [ "." ];
|
2019-11-23 11:56:57 +00:00
|
|
|
|
2020-03-18 11:44:06 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ libusb1 ];
|
2019-11-23 11:56:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zsa";
|
2020-10-02 19:04:33 +01:00
|
|
|
repo = "wally-cli";
|
|
|
|
rev = "${version}-linux";
|
2021-05-12 14:45:10 +01:00
|
|
|
sha256 = "NuyQHEygy4LNqLtrpdwfCR+fNy3ZUxOClVdRen6AXMc=";
|
2019-11-23 11:56:57 +00:00
|
|
|
};
|
|
|
|
|
2021-05-12 14:45:10 +01:00
|
|
|
vendorSha256 = "AVYG+aLpAXohUOORV/uPw7vro+Kg98+AmSmYGHtOals=";
|
2020-10-02 19:04:33 +01:00
|
|
|
runVend = true;
|
2019-11-23 11:56:57 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A tool to flash firmware to mechanical keyboards";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://ergodox-ez.com/pages/wally-planck";
|
2020-11-06 05:10:30 +00:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2019-11-23 11:56:57 +00:00
|
|
|
license = licenses.mit;
|
2020-11-06 05:10:30 +00:00
|
|
|
maintainers = with maintainers; [ spacekookie r-burns ];
|
2019-11-23 11:56:57 +00:00
|
|
|
};
|
|
|
|
}
|