2021-01-23 12:26:19 +00:00
|
|
|
{ lib, 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/
|
|
|
|
'';
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2013-09-26 20:37:49 +01:00
|
|
|
description = "Open source flash program for the STM32 ARM processors using the ST bootloader";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://sourceforge.net/projects/stm32flash/";
|
2021-01-23 12:26:19 +00:00
|
|
|
license = lib.licenses.gpl2;
|
2013-09-26 20:37:49 +01:00
|
|
|
platforms = platforms.all; # Should work on all platforms
|
2020-05-09 10:25:07 +01:00
|
|
|
maintainers = with maintainers; [ elitak ];
|
2013-06-22 14:05:32 +01:00
|
|
|
};
|
|
|
|
}
|