forked from mirrors/nixpkgs
28 lines
787 B
Nix
28 lines
787 B
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "stm32flash";
|
|
version = "0.6";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
|
|
sha256 = "sha256-7ptA1NPlzSi5k+CK4qLDxVm2vqhzDNfh1Acn3tsd2gk=";
|
|
};
|
|
|
|
buildFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
|
|
|
|
installPhase = ''
|
|
# Manually copy, make install copies to /usr/local/bin
|
|
mkdir -pv $out/bin/
|
|
cp stm32flash $out/bin/
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Open source flash program for the STM32 ARM processors using the ST bootloader";
|
|
homepage = "https://sourceforge.net/projects/stm32flash/";
|
|
license = lib.licenses.gpl2;
|
|
platforms = platforms.all; # Should work on all platforms
|
|
maintainers = with maintainers; [ elitak ];
|
|
};
|
|
}
|