2019-11-23 11:56:57 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub, pkg-config, libusb1 }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "wally-cli";
|
|
|
|
version = "1.1.1";
|
|
|
|
|
|
|
|
goPackagePath = "github.com/zsa/wally";
|
|
|
|
subPackages = [ "cli" ];
|
|
|
|
|
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";
|
|
|
|
repo = "wally";
|
|
|
|
rev = "68960e452ee0f6c7142f5008d4b1cdc6284d3de7";
|
|
|
|
sha256 = "122m5v7s5wqlshyk2salmd848lqs4rrz54d2ap11ay61kijm0bs2";
|
|
|
|
};
|
|
|
|
|
|
|
|
postInstall = ''
|
2020-04-28 01:50:57 +00:00
|
|
|
mv $out/bin/cli $out/bin/wally
|
2019-11-23 11:56:57 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A tool to flash firmware to mechanical keyboards";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://ergodox-ez.com/pages/wally-planck";
|
2019-11-23 11:56:57 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.spacekookie ];
|
|
|
|
};
|
|
|
|
}
|