forked from mirrors/nixpkgs
Add stm32flash, flash program for stm32 bootloader.
Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
This commit is contained in:
parent
a30c06de83
commit
30f54585d5
26
pkgs/development/tools/misc/stm32flash/default.nix
Normal file
26
pkgs/development/tools/misc/stm32flash/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ stdenv, fetchurl, unzip }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "stm32flash-1.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = https://stm32flash.googlecode.com/files/stm32flash.tar.gz;
|
||||
sha256 = "04k631g9lzvp9xr4sw51xpq1g542np61s1l8fpwx9rbsc8m5l0i6";
|
||||
};
|
||||
|
||||
buildInputs = [];
|
||||
|
||||
installPhase = ''
|
||||
# Manually copy, make install copies to /usr/local/bin
|
||||
mkdir -pv $out/bin/
|
||||
cp stm32flash $out/bin/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Open source flash program for the STM32 ARM processors using the ST bootloader.";
|
||||
homepage = https://code.google.com/p/stm32flash/;
|
||||
license = "GPLv2";
|
||||
platforms = stdenv.lib.platforms.all; # Should work on all platforms
|
||||
maintainers = [ stdenv.lib.maintainers.the-kenny ];
|
||||
};
|
||||
}
|
|
@ -3589,6 +3589,8 @@ let
|
|||
|
||||
splint = callPackage ../development/tools/analysis/splint { };
|
||||
|
||||
stm32flash = callPackage ../development/tools/misc/stm32flash { };
|
||||
|
||||
strace = callPackage ../development/tools/misc/strace { };
|
||||
|
||||
swig = callPackage ../development/tools/misc/swig { };
|
||||
|
|
Loading…
Reference in a new issue