14 # The firmware version is pulled from `git` so we stub it here to avoid pulling the whole program.
15 fakeGit = writeShellScriptBin "git" ''
16 echo "${version}.nitrokey"
22 pname = "nitrokey-pro-firmware";
24 src = fetchFromGitHub {
26 repo = "nitrokey-pro-firmware";
28 hash = "sha256-q+kbEOLA05xR6weAWDA1hx4fVsaN9UNKiOXGxPRfXuI=";
29 fetchSubmodules = true;
33 patchShebangs dapboot/libopencm3/scripts
45 install -D build/gcc/bootloader.hex $out/bootloader.hex
46 install -D build/gcc/nitrokey-pro-firmware.hex $out/firmware.hex
51 description = "Firmware for the Nitrokey Pro device";
52 homepage = "https://github.com/Nitrokey/nitrokey-pro-firmware";
53 license = lib.licenses.gpl3Plus;
54 maintainers = with lib.maintainers; [
59 platforms = lib.platforms.unix;