summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/ff/ffts/package.nix
blob: 5e92443d3730bdf0fb26c4c4d469dd311f0526d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  stdenv,
  lib,
  cmake,
  fetchFromGitHub,
}:

stdenv.mkDerivation {
  pname = "ffts";
  version = "0-unstable-2019-03-19";

  src = fetchFromGitHub {
    owner = "linkotec";
    repo = "ffts";
    rev = "2c8da4877588e288ff4cd550f14bec2dc7bf668c";
    hash = "sha256-Cj0n7fwFAu6+3ojgczL0Unobdx/XzGNFvNVMXdyHXE4=";
  };

  nativeBuildInputs = [ cmake ];

  cmakeFlags = [ "-DENABLE_SHARED=ON" ];

  patches = [
    ./cmake4.patch
  ];

  meta = {
    description = "Fastest Fourier Transform in the South";
    homepage = "https://github.com/linkotec/ffts";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ bgamari ];
    platforms = lib.platforms.linux;
  };
}