mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
nitrokey-start-firmware: init at 13 (#337956)
This commit is contained in:
commit
e1be01cd06
59
pkgs/by-name/ni/nitrokey-start-firmware/package.nix
Normal file
59
pkgs/by-name/ni/nitrokey-start-firmware/package.nix
Normal file
@ -0,0 +1,59 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
gcc-arm-embedded,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "nitrokey-start-firmware";
|
||||
version = "13";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Nitrokey";
|
||||
repo = "nitrokey-start-firmware";
|
||||
rev = "RTM.${finalAttrs.version}";
|
||||
hash = "sha256-POW1d/fgOyYa7127FSTCtHGyMWYzKW0qqA1WUyvNc3w=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
sourceRoot = "source/src";
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs configure
|
||||
'';
|
||||
|
||||
# Avoid additional arguments are added to configureFlags
|
||||
configurePlatforms = [ ];
|
||||
|
||||
# from release/Makefile
|
||||
configureFlags = [
|
||||
"--target=NITROKEY_START-g"
|
||||
"--vidpid=20a0:4211"
|
||||
"--enable-factory-reset"
|
||||
"--enable-certdo"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ gcc-arm-embedded ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir $out
|
||||
cp build/gnuk.{bin,hex} $out/
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Firmware for the Nitrokey Start device";
|
||||
homepage = "https://github.com/Nitrokey/nitrokey-start-firmware";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
maintainers = with lib.maintainers; [
|
||||
amerino
|
||||
imadnyc
|
||||
kiike
|
||||
];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user