Files
mackb 2772a883a9 dfu-programmer: 0.7.2 -> 1.1.0
Fixes migration to GCC 15 and the gnu23 reserved words errors
https://github.com/NixOS/nixpkgs/issues/475479
2026-01-03 16:28:21 -08:00

52 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
libusb1,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "dfu-programmer";
version = "1.1.0";
src = fetchFromGitHub {
owner = "dfu-programmer";
repo = "dfu-programmer";
rev = "v${finalAttrs.version}";
hash = "sha256-YhiBD8rpzEVVaP3Rdfq74lhZ0Mu7OEbrMsM3fBL1Kvk";
};
buildInputs = [
libusb1
];
nativeBuildInputs = [
autoreconfHook
];
# No build configured in source, automake requires ChangeLog to exist
preAutoreconf = ''
touch ChangeLog
'';
postPatch = ''
patchShebangs --build bootstrap.sh
patchShebangs --build update-bash-completion.sh
'';
passthru.updateScript = nix-update-script { };
meta = {
license = lib.licenses.gpl2;
description = "Device Firmware Update based USB programmer for Atmel chips with a USB bootloader";
mainProgram = "dfu-programmer";
homepage = "https://github.com/dfu-programmer/dfu-programmer";
maintainers = with lib.maintainers; [
mbinns
cybardev
];
platforms = lib.platforms.unix;
};
})