mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
Merge pull request #264443 from otavio/imgtool
mcuboot-imgtool: init at 1.10.0
This commit is contained in:
commit
057e623fe3
1 changed files with 38 additions and 0 deletions
38
pkgs/by-name/mc/mcuboot-imgtool/package.nix
Normal file
38
pkgs/by-name/mc/mcuboot-imgtool/package.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ lib
|
||||
, fetchPypi
|
||||
, python3Packages
|
||||
, nix-update-script
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "mfgtool-imgtool";
|
||||
version = "1.10.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version;
|
||||
pname = "imgtool";
|
||||
hash = "sha256-A7NOdZNKw9lufEK2vK8Rzq9PRT98bybBfXJr0YMQS0A=";
|
||||
};
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
nativeBuildInputs = with python3Packages; [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
cbor2
|
||||
click
|
||||
cryptography
|
||||
intelhex
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "MCUboot's image signing and key management";
|
||||
homepage = "https://github.com/mcu-tools/mcuboot/tree/main/scripts";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ otavio ];
|
||||
mainProgram = "imgtool";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue