c10401fd38
Co-authored-by: Simon Bruder <simon@sbruder.de> Co-authored-by: Abdullah Imad <me@imad.nyc> Co-authored-by: Alberto Merino <amerinor01@gmail.com> Co-authored-by: Enric Morales <me@enric.me> Co-authored-by: Jack Leightcap <jack@leightcap.com> Co-authored-by: Roland Coeurjoly <rolandcoeurjoly@gmail.com>
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
pkgsCross,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "nitrokey-trng-rs232-firmware";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Nitrokey";
|
|
repo = "nitrokey-trng-rs232-firmware";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-vY/9KAGB6lTkkjW9zUiHA3wD2d35cEBVBTr12bHCy4k=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgsCross.avr.stdenv.cc ];
|
|
|
|
sourceRoot = "source/src";
|
|
|
|
makeFlags = [ "all" ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -D TRNGSerial.bin $out/TRNGSerial.bin
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Firmware for the Nitrokey TRNG RS232 device";
|
|
longDescription = ''
|
|
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`
|
|
'';
|
|
homepage = "https://github.com/Nitrokey/nitrokey-trng-rs232-firmware";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [
|
|
amerino
|
|
imadnyc
|
|
kiike
|
|
];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|