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