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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{ stdenv, autoconf, automake, pkgconfig, gettext, libtool, bison
, flex, which, subversion, fetchsvn, makeWrapper, libftdi, libusb, readline
, python3
, svfSupport ? false
, bsdlSupport ? false
, staplSupport ? false
, jedecSupport ? false
}:
stdenv.mkDerivation rec {
version = "0.10";
name = "urjtag-${version}";
src = fetchsvn {
url = "svn://svn.code.sf.net/p/urjtag/svn/trunk/urjtag";
rev = "2051";
sha256 = "0pyl0y27136nr8mmjdml7zjnfnpbjmgqzkjk99j3hvj38k10wq7f";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gettext autoconf automake libtool bison flex which
subversion makeWrapper readline libftdi libusb python3 ];
configureFlags = ''
${if svfSupport then "--enable-svf" else "--disable-svf"}
${if bsdlSupport then "--enable-bsdl" else "--disable-bsdl"}
${if staplSupport then "--enable-stapl" else "--disable-stapl"}
${if jedecSupport then "--enable-jedec-exp" else "--disable-jedec-exp"}
'';
preConfigure = "./autogen.sh";
meta = {
description = "Enhanced, modern tool for communicating over JTAG with flash chips, CPUs,and many more";
homepage = http://urjtag.org/;
license = with stdenv.lib.licenses; [ gpl2Plus lgpl21Plus ];
platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux; # arbitrary choice
maintainers = with stdenv.lib.maintainers; [ lowfatcomputing ];
};
}
|