diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2023-07-19 00:34:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-19 00:34:56 +0200 |
commit | a96ec79e3427a1d8c06e15cbb2b82f8e1ee2a81a (patch) | |
tree | d90c4dabb46f9b2a8cf16cd395c51549426c56d6 /pkgs/tools | |
parent | 3ed1e730ae8a3fc34eae794b703c58a3347119d6 (diff) | |
parent | caa1c5799330bc085efc9c676b5421474fd05eda (diff) |
Merge pull request #234881 from ckiee/init-cp210x
cp210x-program: init at 0.4.1
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/misc/cp210x-program/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/tools/misc/cp210x-program/default.nix b/pkgs/tools/misc/cp210x-program/default.nix new file mode 100644 index 0000000000000..b734008fad2a9 --- /dev/null +++ b/pkgs/tools/misc/cp210x-program/default.nix @@ -0,0 +1,33 @@ +{ lib +, python3 +, fetchFromGitHub +}: + +python3.pkgs.buildPythonApplication rec { + pname = "cp210x-program"; + version = "0.4.1"; + + src = fetchFromGitHub { + owner = "VCTLabs"; + repo = "cp210x-program"; + rev = "refs/tags/${version}"; + sha256 = "sha256-IjKshP12WfFly9cPm6svD4qZW6cT8C7lOVrGenSqbfY="; + }; + + propagatedBuildInputs = with python3.pkgs; [ + hexdump + pyusb + ]; + + postInstall = '' + ln -s $out/bin/cp210x-program{.py,} + ''; + + meta = with lib; { + description = "EEPROM tool for Silabs CP210x USB-Serial adapter"; + homepage = "https://github.com/VCTLabs/cp210x-program"; + license = licenses.lgpl21Only; # plus/only status unclear + maintainers = with maintainers; [ ckie ]; + mainProgram = "cp210x-program"; + }; +} |