2013-06-22 14:05:32 +01:00
|
|
|
{ stdenv, fetchurl, unzip }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "stm32flash-1.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = https://stm32flash.googlecode.com/files/stm32flash.tar.gz;
|
|
|
|
sha256 = "04k631g9lzvp9xr4sw51xpq1g542np61s1l8fpwx9rbsc8m5l0i6";
|
|
|
|
};
|
|
|
|
|
2016-08-12 06:08:32 +01:00
|
|
|
buildFlags = [ "CC=cc" ];
|
|
|
|
|
2013-06-22 14:05:32 +01:00
|
|
|
installPhase = ''
|
|
|
|
# Manually copy, make install copies to /usr/local/bin
|
|
|
|
mkdir -pv $out/bin/
|
|
|
|
cp stm32flash $out/bin/
|
|
|
|
'';
|
|
|
|
|
2013-09-26 20:37:49 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Open source flash program for the STM32 ARM processors using the ST bootloader";
|
2013-06-22 14:05:32 +01:00
|
|
|
homepage = https://code.google.com/p/stm32flash/;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2013-09-26 20:37:49 +01:00
|
|
|
platforms = platforms.all; # Should work on all platforms
|
|
|
|
maintainers = [ maintainers.the-kenny ];
|
2013-06-22 14:05:32 +01:00
|
|
|
};
|
|
|
|
}
|