1 { lib, stdenv, fetchzip, glib, zlib, libglvnd, python3, autoPatchelfHook }:
3 stdenv.mkDerivation rec {
8 url = "https://ww1.microchip.com/downloads/en/DeviceDoc/sam-ba_${version}-linux_x86_64.tar.gz";
9 sha256 = "1k0nbgyc98z94nphm2q7s82b274clfnayf4a2kv93l5594rzdbp1";
17 (python3.withPackages (ps: [ps.pyserial]))
20 nativeBuildInputs = [ autoPatchelfHook ];
25 mkdir -p "$out/bin/" \
27 cp -a . "$out/opt/sam-ba/"
28 ln -sr "$out/opt/sam-ba/sam-ba" "$out/bin/"
29 ln -sr "$out/opt/sam-ba/multi_sam-ba.py" "$out/bin/"
35 description = "Programming tools for Atmel SAM3/7/9 ARM-based microcontrollers";
37 Atmel SAM-BA software provides an open set of tools for programming the
38 Atmel SAM3, SAM7 and SAM9 ARM-based microcontrollers.
40 # Alternatively: https://www.microchip.com/en-us/development-tool/SAM-BA-In-system-Programmer
41 homepage = "http://www.at91.com/linux4sam/bin/view/Linux4SAM/SoftwareTools";
42 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
43 license = lib.licenses.gpl2Only;
44 platforms = [ "x86_64-linux" ];
45 maintainers = [ maintainers.bjornfor ];