summary refs log tree commit diff
path: root/pkgs/development/tools/misc/stm32flash/default.nix
blob: 496288285c7b78dd4ed6d1ab0053088e28af8dff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, fetchurl, unzip }:

stdenv.mkDerivation {
  name = "stm32flash-1.0";

  src = fetchurl {
    url = https://stm32flash.googlecode.com/files/stm32flash.tar.gz;
    sha256 = "04k631g9lzvp9xr4sw51xpq1g542np61s1l8fpwx9rbsc8m5l0i6";
  };

  buildInputs = [];

  installPhase = ''
    # Manually copy, make install copies to /usr/local/bin
    mkdir -pv $out/bin/
    cp stm32flash $out/bin/
  '';

  meta = { 
    description = "Open source flash program for the STM32 ARM processors using the ST bootloader.";
    homepage = https://code.google.com/p/stm32flash/;
    license = "GPLv2";
    platforms = stdenv.lib.platforms.all; # Should work on all platforms
    maintainers = [ stdenv.lib.maintainers.the-kenny ];
  };
}