2013-06-22 13:05:32 +00:00
|
|
|
{ stdenv, fetchurl, unzip }:
|
|
|
|
|
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";
|
2017-10-26 23:44:19 +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
|
2017-11-27 03:57:56 +00:00
|
|
|
maintainers = with maintainers; [ the-kenny elitak ];
|
2013-06-22 13:05:32 +00:00
|
|
|
};
|
|
|
|
}
|