8 stdenv.mkDerivation (finalAttrs: {
9 pname = "nitrokey-start-firmware";
12 src = fetchFromGitHub {
14 repo = "nitrokey-start-firmware";
15 rev = "RTM.${finalAttrs.version}";
16 hash = "sha256-POW1d/fgOyYa7127FSTCtHGyMWYzKW0qqA1WUyvNc3w=";
17 fetchSubmodules = true;
20 sourceRoot = "source/src";
23 patchShebangs configure
26 # Avoid additional arguments are added to configureFlags
27 configurePlatforms = [ ];
29 # from release/Makefile
31 "--target=NITROKEY_START-g"
33 "--enable-factory-reset"
37 nativeBuildInputs = [ gcc-arm-embedded ];
39 enableParallelBuilding = true;
44 cp build/gnuk.{bin,hex} $out/
49 description = "Firmware for the Nitrokey Start device";
50 homepage = "https://github.com/Nitrokey/nitrokey-start-firmware";
51 license = lib.licenses.gpl3Plus;
52 maintainers = with lib.maintainers; [
57 platforms = lib.platforms.unix;