summary refs log tree commit diff
path: root/pkgs/tools/misc/urjtag/default.nix
blob: 67b25eaca82f78dfb41dc2c7664c35a6d8cda195 (plain) (blame)
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 ? true
, bsdlSupport ? true
, staplSupport ? true
, jedecSupport ? true
}:

stdenv.mkDerivation {
  version = "0.10";
  pname = "urjtag";

  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 = [
    (stdenv.lib.enableFeature svfSupport   "svf")
    (stdenv.lib.enableFeature bsdlSupport  "bsdl")
    (stdenv.lib.enableFeature staplSupport "stapl")
    (stdenv.lib.enableFeature jedecSupport "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 ];
  };
}