Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

A Nix package of Ergodox keyboard flashing utility

License

Notifications You must be signed in to change notification settings

positron-solutions/wally-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nix Package for ErgoDox Wally CLI

This package provides the CLI component for the Ergodox keyboard flashing tool, Wally-CLI. If you you have Nix installed on your system, you can build the CLI tool for your machine without bootstrapping any Go dependencies. The GUI tools are not included in the output and as a result the dependencies are very simple.

Home Manager builds no top of Nix package management to give you deterministic dependency resolution (and software distribution) regardless of the user’s host Linux (or other OS) environment.

Installation & Usage

Just download the repository or import it with src_nix{fetchGit} etc (a relative path is shown below) and then add it to your home.nix or configuration.nix as a package.

{ pkgs, ...}:

let
  wally-cli = pkgs.callPackage ./wally-cli {};
in {
  home.packages = with pkgs; [
    wally-cli
    ...
    other
    packages
  ];
}

Udev Rules

On NixOS, you can import the provided example ergodox-udev.nix in your root configuration.nix. It’s a module, so you just add it to your modules the same was as hardward-configuration.nix typically is set up. If you are only using Nix to provide the wally-cli binary, consult your host OS’s documentation for where to add udev rules.

Usage

wally-cli <SomeHexFile.hex>

Development

vgo2nix can convert ZSA’s provided go.mod to the deps.nix file understood by nixpkgs buildGoPackage function. Just nix run nixpkgs.vgo2nix -c vgo2nix in a clone of the Wally-CLI source to get a deps.nix file.

You can test your results via the following statement:

nix-build -E 'with import <nixpkgs> {}; callPackage ./default.nix {}'

This just provides the arguments to the package as if it was being included via home manager or NixOS etc.

License

This packaging is provided as-is, free of any warranty, independently of ErgoDox, ZSA etc. See the included MIT license.

About

A Nix package of Ergodox keyboard flashing utility

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages