1 { lib, stdenv, fetchsvn, cmake, libusb-compat-0_1, libftdi }:
3 # The xc3sprog project doesn't seem to make proper releases, they only put out
4 # prebuilt binary subversion snapshots on sourceforge.
6 stdenv.mkDerivation rec {
11 url = "https://svn.code.sf.net/p/xc3sprog/code/trunk";
12 sha256 = "1rfhms3i7375kdlg0sdg5k52ix3xv5llj2dr30vamyg7pk74y8rx";
16 nativeBuildInputs = [ cmake ];
17 buildInputs = [ libusb-compat-0_1 libftdi ];
20 # file RPATH_CHANGE could not write new RPATH
21 "-DCMAKE_SKIP_BUILD_RPATH=ON"
22 # fix build with gcc 11+
23 "-DCMAKE_CXX_STANDARD=14"
27 description = "Command-line tools for programming FPGAs, microcontrollers and PROMs via JTAG";
28 homepage = "https://xc3sprog.sourceforge.net/";
29 license = licenses.gpl2Plus;
30 platforms = platforms.linux;
31 maintainers = [ maintainers.bjornfor ];