From 37507ecea3277a99e60c7bb077c6cd406bb80ddb Mon Sep 17 00:00:00 2001 From: Nathan Ringo Date: Sat, 5 Oct 2024 13:44:15 -0500 Subject: Start of the CH559 code, adds a NixOS module for udev rules for the boards. Starter code from https://github.com/MatzElectronics/CH559sdccUSBHost --- nix/wchisp.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 nix/wchisp.nix (limited to 'nix/wchisp.nix') diff --git a/nix/wchisp.nix b/nix/wchisp.nix new file mode 100644 index 0000000..6d6b4eb --- /dev/null +++ b/nix/wchisp.nix @@ -0,0 +1,26 @@ +{ + fetchFromGitHub, + lib, + rustPlatform, +}: + +rustPlatform.buildRustPackage { + pname = "wchisp"; + version = "0.3.0"; + + src = fetchFromGitHub { + owner = "ch32-rs"; + repo = "wchisp"; + rev = "v0.3.0"; + hash = "sha256-CCZA+VegdNq9yYqN2ZI2vmI1OOtCcsYeKK6+VdvW2FE="; + }; + + cargoHash = "sha256-5kJ0MK0rUzyJvLZH/3nje+gTAM6et0mNE3sxVoK1L5s="; + + meta = { + description = "WCH ISP Tool in Rust"; + homepage = "https://github.com/ch32-rs/wchisp"; + license = lib.licenses.gpl2Only; + maintainers = [ lib.maintainers.remexre ]; + }; +} -- cgit v1.2.3