This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from johnrichardrinehart/johnrichardrinehart/nix
Add Nix build files
- Loading branch information
Showing
3 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
}; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
inputs = { | ||
nixpkgs.url = "github:nixos/nixpkgs/release-20.09"; | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
}; | ||
|
||
|
||
outputs = inputs: | ||
let | ||
inherit (inputs.flake-utils.lib) eachDefaultSystem flattenTree mkApp; | ||
in | ||
eachDefaultSystem (system: | ||
let | ||
pkgs = inputs.nixpkgs.legacyPackages.${system}; | ||
lib = inputs.nixpkgs.lib; | ||
in | ||
rec { | ||
defaultPackage = (import ./default.nix) { | ||
inherit pkgs lib system; | ||
}; | ||
|
||
defaultApp = defaultPackage; | ||
} | ||
); | ||
} |