nixpkgs/pkgs/development/tools/wally-cli/default.nix

35 lines
896 B
Nix
Raw Normal View History

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";
2020-10-02 19:04:33 +01:00
version = "2.0.0";
2019-11-23 11:56:57 +00:00
2020-10-02 19:04:33 +01:00
goPackagePath = "github.com/zsa/wally-cli";
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";
sha256 = "0xz3z18bbnf736ngjj6jhnp3p2j55m5jhnb2xl6l5hybracfyhm7";
2019-11-23 11:56:57 +00:00
};
2020-10-02 19:04:33 +01:00
vendorSha256 = "0jqx38x5qvir6zc5yq9p2adafwqhy4hil1k5g81rr1fvbn06k3a6";
runVend = true;
2019-11-23 11:56:57 +00:00
2020-10-02 19:04:33 +01:00
# Can be removed when https://github.com/zsa/wally-cli/pull/1 is merged.
doCheck = false;
2019-11-23 11:56:57 +00:00
meta = with lib; {
description = "A tool to flash firmware to mechanical keyboards";
homepage = "https://ergodox-ez.com/pages/wally-planck";
2020-10-02 19:04:33 +01:00
platforms = platforms.linux;
2019-11-23 11:56:57 +00:00
license = licenses.mit;
maintainers = [ maintainers.spacekookie ];
};
}