1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/misc/msp430/mspdebug.nix

27 lines
745 B
Nix
Raw Normal View History

2019-03-26 18:19:09 +00:00
{ stdenv, fetchFromGitHub, libusb, readline ? null }:
let
version = "0.25";
in stdenv.mkDerivation {
2019-08-13 22:52:01 +01:00
pname = "mspdebug";
inherit version;
2019-03-26 18:19:09 +00:00
src = fetchFromGitHub {
owner = "dlbeer";
repo = "mspdebug";
rev = "v${version}";
sha256 = "0prgwb5vx6fd4bj12ss1bbb6axj2kjyriyjxqrzd58s5jyyy8d3c";
};
2019-03-27 05:50:05 +00:00
buildInputs = [ libusb readline ];
makeFlags = [ "PREFIX=$(out)" "INSTALL=install" ] ++
(if readline == null then [ "WITHOUT_READLINE=1" ] else []);
2019-03-26 18:19:09 +00:00
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 ];
};
}