nixpkgs/pkgs/development/tools/misc/stm32flash/default.nix
Eric Litak 45e41b75f7 stm32flash: 1.0 -> 0.5
This version is newer. 1.0 was given as a placeholder, I presume,
because that sourcetree wasn't versioned.

[Bjørn: extend commit message.]
2017-11-27 08:01:15 +01:00

27 lines
762 B
Nix

{ stdenv, fetchurl, unzip }:
stdenv.mkDerivation {
name = "stm32flash-0.5";
src = fetchurl {
url = mirror://sourceforge/stm32flash/stm32flash-0.5.tar.gz;
sha256 = "01p396daqw3zh6nijffbfbwyqza33bi2k4q3m5yjzs02xwi99alp";
};
buildFlags = [ "CC=cc" ];
installPhase = ''
# Manually copy, make install copies to /usr/local/bin
mkdir -pv $out/bin/
cp stm32flash $out/bin/
'';
meta = with stdenv.lib; {
description = "Open source flash program for the STM32 ARM processors using the ST bootloader";
homepage = https://sourceforge.net/projects/stm32flash/;
license = stdenv.lib.licenses.gpl2;
platforms = platforms.all; # Should work on all platforms
maintainers = with maintainers; [ the-kenny elitak ];
};
}