2021-06-06 16:01:45 +00:00
|
|
|
{ lib, stdenv, fetchurl, qtbase, qtx11extras, ncurses5, xorg, zlib, python27Packages }:
|
2017-02-13 23:39:29 +00:00
|
|
|
stdenv.mkDerivation {
|
2021-06-06 16:01:45 +00:00
|
|
|
pname = "fdr";
|
|
|
|
version = "4.2.7";
|
2017-02-13 23:39:29 +00:00
|
|
|
src = fetchurl {
|
2021-06-06 16:01:45 +00:00
|
|
|
url = "https://dl.cocotec.io/fdr/fdr-3814-linux-x86_64.tar.gz";
|
|
|
|
sha256 = "0cajz1gz4slq9nfhm8dqdgxl0kc950838n0lrf8jw4vl54gv6chh";
|
2017-02-13 23:39:29 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
libPath = lib.makeLibraryPath [
|
2017-02-13 23:39:29 +00:00
|
|
|
stdenv.cc.cc
|
|
|
|
python27Packages.python
|
|
|
|
qtbase
|
|
|
|
qtx11extras
|
2019-09-18 17:57:20 +00:00
|
|
|
ncurses5
|
2017-02-13 23:39:29 +00:00
|
|
|
xorg.libX11
|
|
|
|
xorg.libXft
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
2021-07-14 14:42:23 +00:00
|
|
|
dontConfigure = true;
|
2017-02-13 23:39:29 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out"
|
|
|
|
|
|
|
|
# shipped Qt is buggy
|
|
|
|
rm lib/libQt*
|
|
|
|
rm -r lib/qt_plugins
|
|
|
|
|
|
|
|
cp -r * "$out"
|
2019-09-18 17:57:20 +00:00
|
|
|
ln -s ${ncurses5.out}/lib/libtinfo.so.5 $out/lib/libtinfo.so.5
|
2017-12-28 14:58:18 +00:00
|
|
|
ln -s ${qtbase.bin}/${qtbase.qtPluginPrefix} $out/lib/qt_plugins
|
2017-02-13 23:39:29 +00:00
|
|
|
ln -s ${zlib.out}/lib/libz.so.1 $out/lib/libz.so.1
|
|
|
|
|
|
|
|
for b in fdr4 _fdr4 refines _refines cspmprofiler cspmexplorerprof
|
|
|
|
do
|
|
|
|
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
|
|
|
--set-rpath "$libPath:$out/lib" \
|
|
|
|
"$out/bin/$b"
|
|
|
|
done
|
|
|
|
|
|
|
|
for l in corei7/librefines.so \
|
|
|
|
libcspm_process_compiler.so \
|
|
|
|
libcsp_operators.so \
|
|
|
|
_fdr.so \
|
|
|
|
libfdr.so \
|
|
|
|
libfdr_java.so \
|
|
|
|
libprocess_compiler.so \
|
|
|
|
librefines_gui.so \
|
|
|
|
librefines_licensing.so \
|
|
|
|
libboost_date_time.so.1.60.0 \
|
|
|
|
libboost_filesystem.so.1.60.0 \
|
|
|
|
libboost_iostreams.so.1.60.0 \
|
|
|
|
libboost_program_options.so.1.60.0 \
|
|
|
|
libboost_serialization.so.1.60.0 \
|
|
|
|
libboost_system.so.1.60.0
|
|
|
|
do
|
|
|
|
patchelf --set-rpath "$libPath:$out/lib" \
|
|
|
|
"$out/lib/$l"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-06-06 16:01:45 +00:00
|
|
|
homepage = "https://cocotec.io/fdr/";
|
2017-02-13 23:39:29 +00:00
|
|
|
description = "The CSP refinement checker";
|
|
|
|
license = licenses.unfreeRedistributable;
|
2022-06-04 22:19:25 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2017-02-13 23:39:29 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ nickhu ];
|
|
|
|
};
|
|
|
|
}
|