wally-cli: bump to 2.0.0

This commit is contained in:
Stefan Junker 2020-10-02 20:04:33 +02:00
parent 3eb1f8a446
commit aba8b0799e
2 changed files with 13 additions and 78 deletions

View File

@ -1,11 +1,11 @@
{ lib, buildGoPackage, fetchFromGitHub, pkg-config, libusb1 }:
{ lib, buildGoModule, fetchFromGitHub, pkg-config, libusb1 }:
buildGoPackage rec {
buildGoModule rec {
pname = "wally-cli";
version = "1.1.1";
version = "2.0.0";
goPackagePath = "github.com/zsa/wally";
subPackages = [ "cli" ];
goPackagePath = "github.com/zsa/wally-cli";
subPackages = [ "." ];
nativeBuildInputs = [ pkg-config ];
@ -13,20 +13,21 @@ buildGoPackage rec {
src = fetchFromGitHub {
owner = "zsa";
repo = "wally";
rev = "68960e452ee0f6c7142f5008d4b1cdc6284d3de7";
sha256 = "122m5v7s5wqlshyk2salmd848lqs4rrz54d2ap11ay61kijm0bs2";
repo = "wally-cli";
rev = "${version}-linux";
sha256 = "0xz3z18bbnf736ngjj6jhnp3p2j55m5jhnb2xl6l5hybracfyhm7";
};
postInstall = ''
mv $out/bin/cli $out/bin/wally
'';
vendorSha256 = "0jqx38x5qvir6zc5yq9p2adafwqhy4hil1k5g81rr1fvbn06k3a6";
runVend = true;
goDeps = ./deps.nix;
# Can be removed when https://github.com/zsa/wally-cli/pull/1 is merged.
doCheck = false;
meta = with lib; {
description = "A tool to flash firmware to mechanical keyboards";
homepage = "https://ergodox-ez.com/pages/wally-planck";
platforms = platforms.linux;
license = licenses.mit;
maintainers = [ maintainers.spacekookie ];
};

View File

@ -1,66 +0,0 @@
# This file was generated by https://github.com/kamilchm/go2nix v1.3.0
[
{
goPackagePath = "github.com/caarlos0/spin";
fetch = {
type = "git";
url = "https://github.com/caarlos0/spin";
rev = "950231d3237faf48da965375e65a00c224bcb4dc";
sha256 = "1yz987f86qwx2avyp1bmi5y35h8bbfgp3z1fipqpjlvfq8m7lf8w";
};
}
{
goPackagePath = "github.com/google/gousb";
fetch = {
type = "git";
url = "https://github.com/google/gousb";
rev = "18f4c1d8a750878c4f86ac3d7319b8aa462a79f9";
sha256 = "1i7ffkq395x0v1186j9bhfgy67wlq6s840xkyx8wn87w55yd05rh";
};
}
{
goPackagePath = "github.com/logrusorgru/aurora";
fetch = {
type = "git";
url = "https://github.com/logrusorgru/aurora";
rev = "66b7ad493a23a2523bac50571522bbfe5b90a835";
sha256 = "06allslr29qdapv5j3fpyw9xklmb9fmya5jzybmakz9mwczm76nq";
};
}
{
goPackagePath = "github.com/marcinbor85/gohex";
fetch = {
type = "git";
url = "https://github.com/marcinbor85/gohex";
rev = "7a43cd876e46e0f6ddc553f10f91731a78e6e949";
sha256 = "1nzy1hk7blawq4skycj330ac3kfwh0xr6xd7s3y09hsxfzcv4p9v";
};
}
{
goPackagePath = "github.com/mattn/go-runewidth";
fetch = {
type = "git";
url = "https://github.com/mattn/go-runewidth";
rev = "f93a0d58d5fd95e53f82782d07bb0c79d23e1290";
sha256 = "1sq97q71vgwnbg1fphsmqrzkbfn6mjal6d8a3qgwv4nbgppwaz25";
};
}
{
goPackagePath = "golang.org/x/sys";
fetch = {
type = "git";
url = "https://go.googlesource.com/sys";
rev = "f068ffe820e46336f56dfca7777430582d6e507b";
sha256 = "14qvaq9wcrm7mgyra4h9jl8ssfcxyygi1hraq3cmf118961m90zn";
};
}
{
goPackagePath = "gopkg.in/cheggaaa/pb.v1";
fetch = {
type = "git";
url = "https://gopkg.in/cheggaaa/pb.v1";
rev = "f907f6f5dd81f77c2bbc1cde92e4c5a04720cb11";
sha256 = "13a66cqbpdif804qj12z9ad8r24va9q41gfk71qbc4zg1wsxs3rh";
};
}
]