nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 44 lines 943 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 rustPlatform, 5 pkg-config, 6 libusb1, 7}: 8 9rustPlatform.buildRustPackage rec { 10 pname = "ecpdap"; 11 version = "0.3.0"; 12 13 src = fetchFromGitHub { 14 owner = "adamgreig"; 15 repo = "ecpdap"; 16 rev = "v${version}"; 17 sha256 = "sha256-8YmdwhRYNOSAAa0hTC9f5nm+TDg2GiMbML+qNxJP3lw="; 18 }; 19 20 cargoHash = "sha256-Qz5yc3skpItCdoK4ffLbcT99YcOkvGfm3A/+QZ6FbBw="; 21 22 nativeBuildInputs = [ pkg-config ]; 23 24 buildInputs = [ libusb1 ]; 25 26 doInstallCheck = true; 27 28 postInstall = '' 29 mkdir -p $out/etc/udev/rules.d 30 cp drivers/*.rules $out/etc/udev/rules.d 31 ''; 32 33 meta = { 34 description = "Tool to program ECP5 FPGAs"; 35 mainProgram = "ecpdap"; 36 longDescription = '' 37 ECPDAP allows you to program ECP5 FPGAs and attached SPI flash 38 using CMSIS-DAP probes in JTAG mode. 39 ''; 40 homepage = "https://github.com/adamgreig/ecpdap"; 41 license = lib.licenses.asl20; 42 maintainers = [ ]; 43 }; 44}