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

31 lines
769 B
Nix
Raw Normal View History

2020-10-02 18:04:33 +00:00
{ lib, buildGoModule, fetchFromGitHub, pkg-config, libusb1 }:
2019-11-23 11:56:57 +00:00
2020-10-02 18:04:33 +00:00
buildGoModule rec {
2019-11-23 11:56:57 +00:00
pname = "wally-cli";
version = "2.0.1";
2019-11-23 11:56:57 +00:00
2020-10-02 18:04:33 +00: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 18:04:33 +00:00
repo = "wally-cli";
rev = "${version}-linux";
sha256 = "NuyQHEygy4LNqLtrpdwfCR+fNy3ZUxOClVdRen6AXMc=";
2019-11-23 11:56:57 +00:00
};
vendorSha256 = "AVYG+aLpAXohUOORV/uPw7vro+Kg98+AmSmYGHtOals=";
2020-10-02 18:04:33 +00:00
runVend = true;
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
};
}