summaryrefslogtreecommitdiff
path: root/default.nix
blob: a76bcc2c89b6ff930f7ec7afd20fa4a2ee884d1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ pkgs ? (import <nixpkgs> { }), lib ? (import <nixpkgs/lib>), system ? builtins.currentSystem }:

assert lib.versionAtLeast pkgs.go.version "1.14";

pkgs.buildGoModule rec {
  name = "wally-cli";
  version = "v2.0.0";

  src = ./.;

  vendorSha256 = "HffgkuKmaOjTYi+jQ6vBlC50JqqbYiikURT6TCqL7e0=";

  subPackages = [ "." ];

  buildInputs = with pkgs; [ libusb1 ];
  nativeBuildInputs = with pkgs; [ pkg-config ];

  meta = with lib; {
    description = "Flash your ZSA Keyboard the EZ way.";
    homepage = "https://github.com/zsa/wally-cli";
    license = licenses.mit;
    maintainers = [ johnrichardrinehart ];
    platforms = platforms.linux ++ platforms.darwin;
  };
}