Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
45 lines
949 B
Nix
45 lines
949 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
pkg-config,
|
|
libusb1,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "ecpdap";
|
|
version = "0.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "adamgreig";
|
|
repo = "ecpdap";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-pgQqDRdewBSCm1/9/r8E9DBzwSKAaons3e6OLNv5gHM=";
|
|
};
|
|
|
|
cargoHash = "sha256-o+qm4MFZt+BzqhQsaI5EU9lZz4LI9D75eL+VKIKbIyI=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ libusb1 ];
|
|
|
|
doInstallCheck = true;
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/etc/udev/rules.d
|
|
cp drivers/*.rules $out/etc/udev/rules.d
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Tool to program ECP5 FPGAs";
|
|
mainProgram = "ecpdap";
|
|
longDescription = ''
|
|
ECPDAP allows you to program ECP5 FPGAs and attached SPI flash
|
|
using CMSIS-DAP probes in JTAG mode.
|
|
'';
|
|
homepage = "https://github.com/adamgreig/ecpdap";
|
|
license = licenses.asl20;
|
|
maintainers = [ ];
|
|
};
|
|
}
|