19 stdenv.mkDerivation rec {
23 src = fetchFromGitLab {
26 # flopoco-4.1.3 is not tagged on GitLab
27 rev = "67598298207c9f3261c35679c8a5966480c4343c";
28 hash = "sha256-0jRjg4/qciqBcjsi6BTbKO4VJkcoEzpC98wFkUOIGbI=";
33 name = "fix-clang-error-sin-cos.patch";
34 url = "https://gitlab.com/flopoco/flopoco/-/commit/de3aa60ad19333952c176c2a2e51f12653ca736b.patch";
36 substituteInPlace $out \
37 --replace 'FixSinCosCORDIC.hpp' 'CordicSinCos.hpp'
39 sha256 = "sha256-BlamA/MZuuqqvGYto+jPeQPop6gwva0y394Odw8pdwg=";
42 name = "fix-clang-error-atan2.patch";
43 url = "https://gitlab.com/flopoco/flopoco/-/commit/a3ffe2436c1b59ee0809b3772b74f2d43c6edb99.patch";
44 sha256 = "sha256-dSYcufLHDL0p1V1ghmy6X6xse5f6mjUqckaVqLZnTaA=";
48 postPatch = lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) ''
49 sed -i "s/-pg//g" {,src/Apps/TaMaDi/}CMakeLists.txt
73 ./flopoco BuildAutocomplete
79 install -Dm755 flopoco $out/bin/flopoco
80 cp bin* fp* ieee* longacc* $out/bin/
81 installShellCompletion --bash flopoco_autocomplete
87 description = "FloPoCo arithmetic core generator";
88 homepage = "https://flopoco.org/";
89 license = licenses.unfree;
90 platforms = platforms.unix;
91 maintainers = with maintainers; [ wegank ];