2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchsvn, cmake, libusb-compat-0_1, libftdi }:
|
2020-04-24 23:36:52 +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 {
|
|
|
|
version = "787";
|
|
|
|
pname = "xc3sprog";
|
|
|
|
|
|
|
|
src = fetchsvn {
|
|
|
|
url = "https://svn.code.sf.net/p/xc3sprog/code/trunk";
|
|
|
|
sha256 = "1rfhms3i7375kdlg0sdg5k52ix3xv5llj2dr30vamyg7pk74y8rx";
|
|
|
|
rev = version;
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ libusb-compat-0_1 libftdi ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
# file RPATH_CHANGE could not write new RPATH
|
|
|
|
"-DCMAKE_SKIP_BUILD_RPATH=ON"
|
2024-01-02 11:29:13 +00:00
|
|
|
# fix build with gcc 11+
|
|
|
|
"-DCMAKE_CXX_STANDARD=14"
|
2022-08-12 12:06:08 +00:00
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Command-line tools for programming FPGAs, microcontrollers and PROMs via JTAG";
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://xc3sprog.sourceforge.net/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|