nixpkgs/pkgs/tools/misc/urjtag/default.nix

58 lines
1.1 KiB
Nix
Raw Normal View History

2021-03-28 21:46:30 +00:00
{ lib
, stdenv
, fetchurl
, autoconf
, automake
, autoreconfHook
, gettext
, libftdi1
, libtool
, libusb-compat-0_1
, makeWrapper
, pkg-config
, readline
, which
2019-02-03 15:30:30 +00:00
, bsdlSupport ? true
, jedecSupport ? true
2021-03-28 21:46:30 +00:00
, staplSupport ? true
, svfSupport ? true
}:
2020-06-10 19:15:41 +00:00
stdenv.mkDerivation rec {
pname = "urjtag";
2021-03-28 21:46:30 +00:00
version = "2021.03";
2020-06-10 19:15:41 +00:00
src = fetchurl {
2021-03-28 21:46:30 +00:00
url = "mirror://sourceforge/project/${pname}/${pname}/${version}/${pname}-${version}.tar.xz";
hash = "sha256-sKLqokVROvCW3E13AQmDIzXGlMbBKqXpL++uhoVBbxw=";
};
2021-03-28 21:46:30 +00:00
nativeBuildInputs = [
autoreconfHook
pkg-config
which
gettext
];
buildInputs = [
libftdi1
libtool
libusb-compat-0_1
readline
];
configureFlags = [
2021-01-15 09:19:50 +00:00
(lib.enableFeature bsdlSupport "bsdl")
(lib.enableFeature jedecSupport "jedec-exp")
2021-03-28 21:46:30 +00:00
(lib.enableFeature staplSupport "stapl")
(lib.enableFeature svfSupport "svf")
];
2021-03-28 21:46:30 +00:00
meta = with lib; {
homepage = "http://urjtag.org/";
2021-03-28 21:46:30 +00:00
description = "Universal JTAG library, server and tools";
license = with licenses; [ gpl2Plus lgpl21Plus ];
maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.linux;
};
}