diff options
author | Pooya Moradi <pvonmoradi@gmail.com> | 2021-08-14 19:19:02 +0430 |
---|---|---|
committer | Pooya Moradi <pvonmoradi@gmail.com> | 2021-08-16 15:29:58 +0430 |
commit | 4c16ff4e4a09ab13cccecbe081e21822b250b835 (patch) | |
tree | ca1f523b1b81ed6d5543a1f3fcc1a5fa8c3fcbf0 /pkgs/development/embedded | |
parent | 5194c3580c22d3eb9ee9ed52cfc74db4b30edd5b (diff) |
stm32flash: move the directory to pkgs/development/embedded/stm32/
Diffstat (limited to 'pkgs/development/embedded')
-rw-r--r-- | pkgs/development/embedded/stm32/stm32flash/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/embedded/stm32/stm32flash/default.nix b/pkgs/development/embedded/stm32/stm32flash/default.nix new file mode 100644 index 0000000000000..bc33d417f8854 --- /dev/null +++ b/pkgs/development/embedded/stm32/stm32flash/default.nix @@ -0,0 +1,27 @@ +{ 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 ]; + }; +} |