nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchFromGitHub, libusb, readline ? null }:
2
3let
4 version = "0.25";
5in stdenv.mkDerivation {
6 pname = "mspdebug";
7 inherit version;
8 src = fetchFromGitHub {
9 owner = "dlbeer";
10 repo = "mspdebug";
11 rev = "v${version}";
12 sha256 = "0prgwb5vx6fd4bj12ss1bbb6axj2kjyriyjxqrzd58s5jyyy8d3c";
13 };
14
15 buildInputs = [ libusb readline ];
16 makeFlags = [ "PREFIX=$(out)" "INSTALL=install" ] ++
17 (if readline == null then [ "WITHOUT_READLINE=1" ] else []);
18
19 meta = with stdenv.lib; {
20 description = "A free programmer, debugger, and gdb proxy for MSP430 MCUs";
21 homepage = https://dlbeer.co.nz/mspdebug/;
22 license = licenses.gpl2;
23 platforms = platforms.all;
24 maintainers = with maintainers; [ aerialx ];
25 };
26}