2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, fetchsvn, cmake, libusb-compat-0_1, libftdi }:
|
2013-10-26 07:38:31 +00:00
|
|
|
|
|
|
|
# The xc3sprog project doesn't seem to make proper releases, they only put out
|
|
|
|
# prebuilt binary subversion snapshots on sourceforge.
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-11-04 15:23:43 +00:00
|
|
|
version = "787";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "xc3sprog";
|
2013-10-26 07:38:31 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
src = fetchsvn {
|
2013-10-26 07:38:31 +00:00
|
|
|
url = "https://svn.code.sf.net/p/xc3sprog/code/trunk";
|
2016-11-04 15:23:43 +00:00
|
|
|
sha256 = "1rfhms3i7375kdlg0sdg5k52ix3xv5llj2dr30vamyg7pk74y8rx";
|
2019-09-08 23:38:31 +00:00
|
|
|
rev = version;
|
2013-10-26 07:38:31 +00:00
|
|
|
};
|
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ libusb-compat-0_1 libftdi ];
|
2013-10-26 07:38:31 +00:00
|
|
|
|
2022-07-12 15:20:45 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
# file RPATH_CHANGE could not write new RPATH
|
|
|
|
"-DCMAKE_SKIP_BUILD_RPATH=ON"
|
|
|
|
];
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2013-10-26 07:38:31 +00:00
|
|
|
description = "Command-line tools for programming FPGAs, microcontrollers and PROMs via JTAG";
|
2023-01-21 21:41:12 +00:00
|
|
|
homepage = "https://xc3sprog.sourceforge.net/";
|
2013-10-26 07:38:31 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|