2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch
|
2019-09-25 09:25:47 +00:00
|
|
|
, audiofile, libvorbis, fltk, fftw, fftwFloat
|
2021-01-19 06:50:56 +00:00
|
|
|
, minixml, pkg-config, libmad, libjack2, portaudio, libsamplerate
|
2019-09-25 09:25:47 +00:00
|
|
|
}:
|
2019-03-13 16:24:34 +00:00
|
|
|
|
2019-03-23 23:59:09 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-03-13 16:24:34 +00:00
|
|
|
pname = "paulstretch";
|
|
|
|
version = "2.2-2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "paulnasca";
|
|
|
|
repo = "paulstretch_cpp";
|
|
|
|
rev = "7f5c3993abe420661ea0b808304b0e2b4b0048c5";
|
|
|
|
sha256 = "06dy03dbz1yznhsn0xvsnkpc5drzwrgxbxdx0hfpsjn2xcg0jrnc";
|
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2019-03-13 16:24:34 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
audiofile
|
|
|
|
libvorbis
|
|
|
|
fltk
|
|
|
|
fftw
|
|
|
|
fftwFloat
|
|
|
|
minixml
|
|
|
|
libmad
|
|
|
|
libjack2
|
|
|
|
portaudio
|
|
|
|
libsamplerate
|
|
|
|
];
|
|
|
|
|
2019-09-25 09:25:47 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/paulnasca/paulstretch_cpp/pull/12.patch";
|
|
|
|
sha256 = "0lx1rfrs53afkiz1drp456asqgj5yv6hx3lkc01165cv1jsbw6q4";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-03-13 16:24:34 +00:00
|
|
|
buildPhase = ''
|
|
|
|
bash compile_linux_fftw_jack.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm555 ./paulstretch $out/bin/paulstretch
|
|
|
|
'';
|
2019-03-23 23:59:09 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-03-23 23:59:09 +00:00
|
|
|
description = "Produces high quality extreme sound stretching";
|
|
|
|
longDescription = ''
|
|
|
|
This is a program for stretching the audio. It is suitable only for
|
|
|
|
extreme sound stretching of the audio (like 50x) and for applying
|
|
|
|
special effects by "spectral smoothing" the sounds.
|
|
|
|
It can transform any sound/music to a texture.
|
|
|
|
'';
|
2023-01-21 21:41:12 +00:00
|
|
|
homepage = "https://hypermammut.sourceforge.net/paulstretch/";
|
2019-03-23 23:59:09 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
2019-03-13 16:24:34 +00:00
|
|
|
}
|