aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/misc/msp430/mspdebug.nix
blob: 3c7ff00151a4d8ac35e1bf5de4dc9946a0f2ea37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, fetchFromGitHub, libusb-compat-0_1, readline ? null }:

let
  version = "0.25";
in stdenv.mkDerivation {
  pname = "mspdebug";
  inherit version;
  src = fetchFromGitHub {
    owner = "dlbeer";
    repo = "mspdebug";
    rev = "v${version}";
    sha256 = "0prgwb5vx6fd4bj12ss1bbb6axj2kjyriyjxqrzd58s5jyyy8d3c";
  };

  buildInputs = [ libusb-compat-0_1 readline ];
  makeFlags = [ "PREFIX=$(out)" "INSTALL=install" ] ++
    (if readline == null then [ "WITHOUT_READLINE=1" ] else []);

  meta = with stdenv.lib; {
    description = "A free programmer, debugger, and gdb proxy for MSP430 MCUs";
    homepage = "https://dlbeer.co.nz/mspdebug/";
    license = licenses.gpl2;
    platforms = platforms.all;
    maintainers = with maintainers; [ aerialx ];
  };
}