depot/third_party/nixpkgs/pkgs/development/tools/misc/stm32flash/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

26 lines
737 B
Nix

{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "stm32flash-0.5";
src = fetchurl {
url = "mirror://sourceforge/stm32flash/${name}.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 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 ];
};
}