From e7a024abc4ff928ab56b059a36eba7da98579ad9 Mon Sep 17 00:00:00 2001 From: Andreas Wagner Date: Sat, 29 Aug 2015 13:27:52 -0400 Subject: [PATCH] urjtag: init at 0.10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [Bjørn: make the function argument lines occupy less vertical space.] --- lib/maintainers.nix | 1 + pkgs/tools/misc/urjtag/default.nix | 38 ++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 5 ++++ 3 files changed, 44 insertions(+) create mode 100644 pkgs/tools/misc/urjtag/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index 4ad066b75997..ccce0d2e60dc 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -152,6 +152,7 @@ linus = "Linus Arver "; lnl7 = "Daiderd Jordan "; lovek323 = "Jason O'Conal "; + lowfatcomputing = "Andreas Wagner "; lsix = "Lancelot SIX "; ludo = "Ludovic Courtès "; madjar = "Georges Dubus "; diff --git a/pkgs/tools/misc/urjtag/default.nix b/pkgs/tools/misc/urjtag/default.nix new file mode 100644 index 000000000000..589f7d9a94b7 --- /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 ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4b138b84e6a0..45fc09317d73 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3454,6 +3454,11 @@ let uptimed = callPackage ../tools/system/uptimed { }; + urjtag = callPackage ../tools/misc/urjtag { + jedecSupport = true; + pythonBindings = true; + }; + urlwatch = callPackage ../tools/networking/urlwatch { }; varnish = callPackage ../servers/varnish { };