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
43 lines
831 B
Nix
43 lines
831 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromSourcehut,
|
|
pkg-config,
|
|
libusb1,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "wch-isp";
|
|
version = "0.4.1";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~jmaselbas";
|
|
repo = "wch-isp";
|
|
rev = "v${version}";
|
|
hash = "sha256-JB7cvZPzRhYJ8T3QJkguHOzZFrLOft5rRz0F0sVav/k=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ libusb1 ];
|
|
|
|
installFlags = [
|
|
"DESTDIR=$(out)"
|
|
"PREFIX="
|
|
];
|
|
installTargets = [
|
|
"install"
|
|
"install-rules"
|
|
];
|
|
|
|
doInstallCheck = true;
|
|
|
|
meta = {
|
|
description = "Firmware programmer for WCH microcontrollers over USB";
|
|
mainProgram = "wch-isp";
|
|
license = lib.licenses.gpl2Only;
|
|
homepage = "https://git.sr.ht/~jmaselbas/wch-isp";
|
|
maintainers = with lib.maintainers; [ lesuisse ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|