2018-07-21 00:44:44 +00:00
|
|
|
{ stdenv, fetchurl }:
|
2013-06-22 13:05:32 +00:00
|
|
|
|
2017-11-27 07:02:01 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2017-11-27 03:57:56 +00:00
|
|
|
name = "stm32flash-0.5";
|
2013-06-22 13:05:32 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-11-27 07:02:01 +00:00
|
|
|
url = "mirror://sourceforge/stm32flash/${name}.tar.gz";
|
2017-11-27 03:57:56 +00:00
|
|
|
sha256 = "01p396daqw3zh6nijffbfbwyqza33bi2k4q3m5yjzs02xwi99alp";
|
2013-06-22 13:05:32 +00:00
|
|
|
};
|
|
|
|
|
2016-08-12 05:08:32 +00:00
|
|
|
buildFlags = [ "CC=cc" ];
|
|
|
|
|
2013-06-22 13:05:32 +00:00
|
|
|
installPhase = ''
|
|
|
|
# Manually copy, make install copies to /usr/local/bin
|
|
|
|
mkdir -pv $out/bin/
|
|
|
|
cp stm32flash $out/bin/
|
|
|
|
'';
|
|
|
|
|
2013-09-26 19:37:49 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Open source flash program for the STM32 ARM processors using the ST bootloader";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://sourceforge.net/projects/stm32flash/";
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2013-09-26 19:37:49 +00:00
|
|
|
platforms = platforms.all; # Should work on all platforms
|
2020-05-09 09:25:07 +00:00
|
|
|
maintainers = with maintainers; [ elitak ];
|
2013-06-22 13:05:32 +00:00
|
|
|
};
|
|
|
|
}
|