trivionomicon: ibkr-tws-api: initial commit
This commit is contained in:
parent
652871f78f
commit
64721389f6
3 changed files with 194 additions and 0 deletions
41
pkgs/intel-decimalfp/default.nix
Normal file
41
pkgs/intel-decimalfp/default.nix
Normal file
|
|
@ -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
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue