nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 22.05 27 lines 787 B view raw
1{ lib, stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 pname = "stm32flash"; 5 version = "0.7"; 6 7 src = fetchurl { 8 url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz"; 9 sha256 = "sha256-xMnNi+x52mOxEdFXE+9cws2UfeykEdNdbjBl4ifcQUo="; 10 }; 11 12 buildFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ]; 13 14 installPhase = '' 15 # Manually copy, make install copies to /usr/local/bin 16 mkdir -pv $out/bin/ 17 cp stm32flash $out/bin/ 18 ''; 19 20 meta = with lib; { 21 description = "Open source flash program for the STM32 ARM processors using the ST bootloader"; 22 homepage = "https://sourceforge.net/projects/stm32flash/"; 23 license = lib.licenses.gpl2; 24 platforms = platforms.all; # Should work on all platforms 25 maintainers = with maintainers; [ elitak ]; 26 }; 27}