2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "kissfft";
|
|
|
|
version = "131";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mborgerding";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-06-18 07:06:33 +00:00
|
|
|
sha256 = "0axmqav2rclw02mix55cch9xl5py540ac15xbmq7xq6n3k492ng2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Allow installation into our prefix
|
|
|
|
# Fix installation on Darwin
|
|
|
|
# Create necessary directories
|
|
|
|
# Make datatype configurable
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/mborgerding/kissfft/pull/38.patch";
|
2020-06-18 07:06:33 +00:00
|
|
|
sha256 = "0cp1awl7lr2vqmcwm9lfjs4b4dv9da8mg4hfd821r5ryadpyijj6";
|
2020-04-24 23:36:52 +00:00
|
|
|
})
|
|
|
|
# Install headers as well
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/mborgerding/kissfft/commit/71df949992d2dbbe15ce707cf56c3fa1e43b1080.patch";
|
2020-06-18 07:06:33 +00:00
|
|
|
sha256 = "13h4kzsj388mxxv6napp4gx2ymavz9xk646mnyp1i852dijpmapm";
|
2020-04-24 23:36:52 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=${placeholder "out"}"
|
|
|
|
"DATATYPE=double"
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A mixed-radix Fast Fourier Transform based up on the KISS principle";
|
|
|
|
homepage = "https://github.com/mborgerding/kissfft";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|