diff options
| author | Alejandro Soto <alejandro@34project.org> | 2026-03-27 15:55:40 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2026-03-27 17:02:23 -0600 |
| commit | b23ac78ed1d1da58ccf566416fd5b5e42185fac0 (patch) | |
| tree | 030520e1274281a2ec013180e7f11365eabb265e /trivionomicon/pkgs/intel-decimalfp/default.nix | |
| parent | f4441ec721b89ef7056b39db16f918ba8304b639 (diff) | |
trivionomicon: ibkr-tws-api: initial commit
Diffstat (limited to '')
| -rw-r--r-- | trivionomicon/pkgs/intel-decimalfp/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/trivionomicon/pkgs/intel-decimalfp/default.nix b/trivionomicon/pkgs/intel-decimalfp/default.nix new file mode 100644 index 0000000..9267b18 --- /dev/null +++ b/trivionomicon/pkgs/intel-decimalfp/default.nix @@ -0,0 +1,41 @@ +{ + fetchzip, + lib, + stdenv, +}: let + version = "20U3"; +in + stdenv.mkDerivation { + pname = "intel-decimalfp"; + inherit version; + + src = fetchzip { + url = "https://www.netlib.org/misc/intel/IntelRDFPMathLib${version}.tar.gz"; + hash = "sha256-m+Yp1IwVEEZIz+cMQXHhkQrrWeRDfIk9ey7nWvV+u44="; + stripRoot = false; + }; + + sourceRoot = "source/LIBRARY"; + + makeFlags = [ + "OBJ_DIR=$(out)/lib" + "LIB_DIR=$(out)/lib" + ]; + + preBuild = '' + mkdir -p $out/lib + touch $out/lib/.directory_exists + ''; + + postBuild = '' + rm $out/lib/.directory_exists + ''; + + installPhase = '' + runHook preInstall + + rm -f $out/lib/*.o + + runHook postInstall + ''; + } |
