3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/wally-cli/default.nix

34 lines
880 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
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-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
};
}