depot/third_party/nixpkgs/pkgs/development/tools/misc/stm32flash/default.nix
Default email 5b567aa208 Project import generated by Copybara.
GitOrigin-RevId: 16105403bdd843540cbef9c63fc0f16c1c6eaa70
2021-07-21 09:28:18 +02:00

27 lines
788 B
Nix

{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "stm32flash";
version = "0.5";
src = fetchurl {
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
sha256 = "01p396daqw3zh6nijffbfbwyqza33bi2k4q3m5yjzs02xwi99alp";
};
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 ];
};
}