This commit is contained in:
Gaétan Lepage
2025-03-29 21:30:35 +01:00
committed by GitHub
3 changed files with 1 additions and 82 deletions
@@ -1,80 +0,0 @@
{
lib,
stdenv,
fetchurl,
qtbase,
qtx11extras,
ncurses5,
xorg,
zlib,
python27Packages,
}:
stdenv.mkDerivation {
pname = "fdr";
version = "4.2.7";
src = fetchurl {
url = "https://dl.cocotec.io/fdr/fdr-3814-linux-x86_64.tar.gz";
sha256 = "0cajz1gz4slq9nfhm8dqdgxl0kc950838n0lrf8jw4vl54gv6chh";
};
libPath = lib.makeLibraryPath [
stdenv.cc.cc
python27Packages.python
qtbase
qtx11extras
ncurses5
xorg.libX11
xorg.libXft
zlib
];
dontConfigure = true;
installPhase = ''
mkdir -p "$out"
# shipped Qt is buggy
rm lib/libQt*
rm -r lib/qt_plugins
cp -r * "$out"
ln -s ${ncurses5.out}/lib/libtinfo.so.5 $out/lib/libtinfo.so.5
ln -s ${qtbase.bin}/${qtbase.qtPluginPrefix} $out/lib/qt_plugins
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
'';
meta = with lib; {
homepage = "https://cocotec.io/fdr/";
description = "CSP refinement checker";
license = licenses.unfreeRedistributable;
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
platforms = platforms.linux;
maintainers = with maintainers; [ nickhu ];
};
}
+1
View File
@@ -471,6 +471,7 @@ mapAliases {
fastnlo = throw "'fastnlo' has been renamed to/replaced by 'fastnlo-toolkit'"; # Converted to throw 2024-10-17
fastnlo_toolkit = fastnlo-toolkit; # Added 2024-01-03
fcitx5-catppuccin = catppuccin-fcitx5; # Added 2024-06-19
fdr = throw "fdr has been removed, as it cannot be built from source and depends on Python 2.x"; # Added 2025-03-19
inherit (luaPackages) fennel; # Added 2022-09-24
ferdi = throw "'ferdi' has been removed, upstream does not exist anymore and the package is insecure"; # Added 2024-08-22
fetchFromGithub = throw "You meant fetchFromGitHub, with a capital H"; # preserve
-2
View File
@@ -12915,8 +12915,6 @@ with pkgs;
evolution = callPackage ../applications/networking/mailreaders/evolution/evolution { };
evolutionWithPlugins = callPackage ../applications/networking/mailreaders/evolution/evolution/wrapper.nix { plugins = [ evolution evolution-ews ]; };
fdr = libsForQt5.callPackage ../applications/science/programming/fdr { };
fetchmail = callPackage ../applications/misc/fetchmail { };
fetchmail_7 = callPackage ../applications/misc/fetchmail/v7.nix { };