diff options
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..a76bcc2 --- /dev/null +++ b/default.nix @@ -0,0 +1,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; + }; +} |