summaryrefslogtreecommitdiff
path: root/default.nix
blob: 3cf413771e9b51c5adf5245b32ae00ca9d02cc3e (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;
  };
}