b5f92a349c
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
61 lines
1.4 KiB
Nix
61 lines
1.4 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, autoreconfHook
|
|
, gettext
|
|
, makeWrapper
|
|
, alsa-lib
|
|
, libjack2
|
|
, tk
|
|
, fftw
|
|
, portaudio
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "puredata";
|
|
version = "0.54-0";
|
|
|
|
src = fetchurl {
|
|
url = "http://msp.ucsd.edu/Software/pd-${version}.src.tar.gz";
|
|
hash = "sha256-6MFKfYV5CWxuOsm1V4LaYChIRIlx0Qcwah5SbtBFZIU=";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook gettext makeWrapper ];
|
|
|
|
buildInputs = [
|
|
fftw
|
|
libjack2
|
|
] ++ lib.optionals stdenv.isLinux [
|
|
alsa-lib
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
portaudio
|
|
];
|
|
|
|
configureFlags = [
|
|
"--enable-universal"
|
|
"--enable-fftw"
|
|
"--enable-jack"
|
|
] ++ lib.optionals stdenv.isLinux [
|
|
"--enable-alsa"
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
"--enable-portaudio"
|
|
"--without-local-portaudio"
|
|
"--disable-jack-framework"
|
|
"--with-wish=${tk}/bin/wish8.6"
|
|
];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/pd --prefix PATH : ${lib.makeBinPath [ tk ]}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = ''A real-time graphical programming environment for
|
|
audio, video, and graphical processing'';
|
|
homepage = "http://puredata.info";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
maintainers = with maintainers; [ goibhniu carlthome ];
|
|
mainProgram = "pd";
|
|
changelog = "https://msp.puredata.info/Pd_documentation/x5.htm#s1";
|
|
};
|
|
}
|