2023-10-19 13:55:26 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, autoreconfHook
|
|
|
|
, gettext
|
|
|
|
, makeWrapper
|
|
|
|
, alsa-lib
|
|
|
|
, libjack2
|
|
|
|
, tk
|
|
|
|
, fftw
|
|
|
|
, portaudio
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "puredata";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.54-1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://msp.ucsd.edu/Software/pd-${version}.src.tar.gz";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-hcPUvTYgtAHntdWEeHoFIIKylMTE7us1g9dwnZP9BMI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook gettext makeWrapper ];
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
buildInputs = [
|
|
|
|
fftw
|
|
|
|
libjack2
|
2024-09-26 11:04:55 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isLinux [
|
2023-10-19 13:55:26 +00:00
|
|
|
alsa-lib
|
2024-09-26 11:04:55 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
2023-10-19 13:55:26 +00:00
|
|
|
portaudio
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
2023-10-19 13:55:26 +00:00
|
|
|
"--enable-universal"
|
2020-04-24 23:36:52 +00:00
|
|
|
"--enable-fftw"
|
2023-10-19 13:55:26 +00:00
|
|
|
"--enable-jack"
|
2024-09-26 11:04:55 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isLinux [
|
2023-10-19 13:55:26 +00:00
|
|
|
"--enable-alsa"
|
2024-09-26 11:04:55 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
2023-10-19 13:55:26 +00:00
|
|
|
"--enable-portaudio"
|
|
|
|
"--without-local-portaudio"
|
|
|
|
"--disable-jack-framework"
|
|
|
|
"--with-wish=${tk}/bin/wish8.6"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
2023-10-19 13:55:26 +00:00
|
|
|
wrapProgram $out/bin/pd --prefix PATH : ${lib.makeBinPath [ tk ]}
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = ''A real-time graphical programming environment for
|
|
|
|
audio, video, and graphical processing'';
|
|
|
|
homepage = "http://puredata.info";
|
|
|
|
license = licenses.bsd3;
|
2023-10-19 13:55:26 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2024-07-27 06:49:29 +00:00
|
|
|
maintainers = with maintainers; [ carlthome ];
|
2023-10-19 13:55:26 +00:00
|
|
|
mainProgram = "pd";
|
|
|
|
changelog = "https://msp.puredata.info/Pd_documentation/x5.htm#s1";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|