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
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
gitUpdater,
|
|
libusb1,
|
|
pkg-config,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rpiboot";
|
|
version = "20250908-162618-bookworm";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "raspberrypi";
|
|
repo = "usbboot";
|
|
tag = version;
|
|
hash = "sha256-BJOm8VBEbrUasYwuV8NqwmsolJzmaqIaxYqj9EkU5hc=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
buildInputs = [ libusb1 ];
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
makeFlags = [ "INSTALL_PREFIX=$(out)" ];
|
|
|
|
preInstall = ''
|
|
mkdir -p $out/bin
|
|
'';
|
|
|
|
passthru.updateScript = gitUpdater { };
|
|
|
|
meta = {
|
|
homepage = "https://github.com/raspberrypi/usbboot";
|
|
changelog = "https://github.com/raspberrypi/usbboot/blob/${version}/debian/changelog";
|
|
description = "Utility to boot a Raspberry Pi CM/CM3/CM4/Zero over USB";
|
|
mainProgram = "rpiboot";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [
|
|
flokli
|
|
stv0g
|
|
];
|
|
platforms = [
|
|
"aarch64-linux"
|
|
"aarch64-darwin"
|
|
"armv7l-linux"
|
|
"armv6l-linux"
|
|
"x86_64-linux"
|
|
"x86_64-darwin"
|
|
];
|
|
};
|
|
}
|