Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 39 lines 800 B view raw
1{ 2 lib, 3 python3, 4 fetchFromGitHub, 5}: 6 7python3.pkgs.buildPythonApplication rec { 8 pname = "cp210x-program"; 9 version = "0.4.1"; 10 format = "pyproject"; 11 12 src = fetchFromGitHub { 13 owner = "VCTLabs"; 14 repo = "cp210x-program"; 15 tag = version; 16 sha256 = "sha256-IjKshP12WfFly9cPm6svD4qZW6cT8C7lOVrGenSqbfY="; 17 }; 18 19 build-system = with python3.pkgs; [ 20 setuptools 21 ]; 22 23 dependencies = with python3.pkgs; [ 24 hexdump 25 pyusb 26 ]; 27 28 postInstall = '' 29 ln -s $out/bin/cp210x-program{.py,} 30 ''; 31 32 meta = with lib; { 33 description = "EEPROM tool for Silabs CP210x USB-Serial adapter"; 34 homepage = "https://github.com/VCTLabs/cp210x-program"; 35 license = licenses.lgpl21Only; # plus/only status unclear 36 maintainers = [ ]; 37 mainProgram = "cp210x-program"; 38 }; 39}