summary refs log tree commit diff
path: root/pkgs/tools/misc/urjtag
diff options
context:
space:
mode:
authorAndreas Wagner <andreas.wagner@lowfatcomputing.org>2015-08-29 13:27:52 -0400
committerBjørn Forsman <bjorn.forsman@gmail.com>2015-08-30 20:47:24 +0200
commite7a024abc4ff928ab56b059a36eba7da98579ad9 (patch)
treecfce04dcbd05ae38a5b7e1b87249713155664e40 /pkgs/tools/misc/urjtag
parentba8b70bd548cc5dd3c8cccda2de1872bca6f5b4c (diff)
downloadnixpkgs-e7a024abc4ff928ab56b059a36eba7da98579ad9.tar
nixpkgs-e7a024abc4ff928ab56b059a36eba7da98579ad9.tar.gz
nixpkgs-e7a024abc4ff928ab56b059a36eba7da98579ad9.tar.bz2
nixpkgs-e7a024abc4ff928ab56b059a36eba7da98579ad9.tar.lz
nixpkgs-e7a024abc4ff928ab56b059a36eba7da98579ad9.tar.xz
nixpkgs-e7a024abc4ff928ab56b059a36eba7da98579ad9.tar.zst
nixpkgs-e7a024abc4ff928ab56b059a36eba7da98579ad9.zip
urjtag: init at 0.10
[Bjørn: make the function argument lines occupy less vertical space.]
Diffstat (limited to 'pkgs/tools/misc/urjtag')
-rw-r--r--pkgs/tools/misc/urjtag/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/tools/misc/urjtag/default.nix b/pkgs/tools/misc/urjtag/default.nix
new file mode 100644
index 00000000000..589f7d9a94b
--- /dev/null
+++ b/pkgs/tools/misc/urjtag/default.nix
@@ -0,0 +1,38 @@
+{ stdenv, autoconf, automake, pkgconfig, gettext, intltool, libtool, bison
+, flex, fetchgit, makeWrapper
+, jedecSupport ? false
+, pythonBindings ? false
+, python3 ? null
+}:
+
+stdenv.mkDerivation rec {
+  version = "0.10";
+  name = "urjtag-${version}";
+
+  src = fetchgit {
+    url = "git://git.code.sf.net/p/urjtag/git";
+    rev = "7ba12da7845af7601e014a2a107670edc5d6997d";
+    sha256 = "834401d851728c48f1c055d24dc83b6173c701bf352d3a964ec7ff1aff3abf6a";
+  };
+
+  buildInputs = [ gettext pkgconfig autoconf automake libtool makeWrapper ]
+    ++ stdenv.lib.optional pythonBindings python3;
+
+  configureFlags = ''
+    --prefix=/
+    ${if jedecSupport then "--enable-jedec-exp" else "--disable-jedec-exp"}
+    ${if pythonBindings then "--enable-python" else "--disable-python"}
+  '';
+  preConfigure = "cd urjtag; ./autogen.sh";
+
+  makeFlags = [ "DESTDIR=$(out)" ];
+
+  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;  # arbitrary choice
+    maintainers = with stdenv.lib.maintainers; [ lowfatcomputing ];
+  };
+}
+