2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, fetchurl }:
|
2013-06-22 14:05:32 +01: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 14:05:32 +01: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 14:05:32 +01:00
|
|
|
};
|
|
|
|
|
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";
|
2017-10-27 00:44:19 +01:00
|
|
|
homepage = https://sourceforge.net/projects/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
|
2017-11-27 03:57:56 +00:00
|
|
|
maintainers = with maintainers; [ the-kenny elitak ];
|
2013-06-22 14:05:32 +01:00
|
|
|
};
|
|
|
|
}
|