8 stdenv.mkDerivation (finalAttrs: {
9 pname = "nitrokey-trng-rs232-firmware";
12 src = fetchFromGitHub {
14 repo = "nitrokey-trng-rs232-firmware";
15 rev = "v${finalAttrs.version}";
16 hash = "sha256-vY/9KAGB6lTkkjW9zUiHA3wD2d35cEBVBTr12bHCy4k=";
19 nativeBuildInputs = [ pkgsCross.avr.stdenv.cc ];
21 sourceRoot = "source/src";
23 makeFlags = [ "all" ];
27 install -D TRNGSerial.bin $out/TRNGSerial.bin
32 description = "Firmware for the Nitrokey TRNG RS232 device";
34 This package does not provide an executable. It should be built using `nix-build -A nitrokey-trng-rs232-firmware` or `nix build nixpkgs#nitrokey-trng-rs232-firmware` and flashed using `libnitrokey`
36 homepage = "https://github.com/Nitrokey/nitrokey-trng-rs232-firmware";
37 license = lib.licenses.gpl3Plus;
38 maintainers = with lib.maintainers; [
43 platforms = lib.platforms.linux;