nixpkgs-suyu/pkgs/development/misc/msp430/mspdebug.nix

27 lines
769 B
Nix
Raw Normal View History

2020-04-28 05:29:39 +02:00
{ stdenv, fetchFromGitHub, libusb-compat-0_1, readline ? null }:
2019-03-26 19:19:09 +01:00
let
version = "0.25";
in stdenv.mkDerivation {
2019-08-13 23:52:01 +02:00
pname = "mspdebug";
inherit version;
2019-03-26 19:19:09 +01:00
src = fetchFromGitHub {
owner = "dlbeer";
repo = "mspdebug";
rev = "v${version}";
sha256 = "0prgwb5vx6fd4bj12ss1bbb6axj2kjyriyjxqrzd58s5jyyy8d3c";
};
2020-04-28 05:29:39 +02:00
buildInputs = [ libusb-compat-0_1 readline ];
2019-03-27 06:50:05 +01:00
makeFlags = [ "PREFIX=$(out)" "INSTALL=install" ] ++
(if readline == null then [ "WITHOUT_READLINE=1" ] else []);
2019-03-26 19:19:09 +01:00
meta = with stdenv.lib; {
description = "A free programmer, debugger, and gdb proxy for MSP430 MCUs";
homepage = "https://dlbeer.co.nz/mspdebug/";
2019-03-26 19:19:09 +01:00
license = licenses.gpl2;
platforms = platforms.all;
maintainers = with maintainers; [ aerialx ];
};
}