lol

Merge pull request #230569 from carlthome/puredata-darwin

puredata: upgrade to 0.54-0 and enable darwin

authored by

Weijia Wang and committed by
GitHub
30e8b683 6f5cccb9

+54 -29
+7 -7
pkgs/applications/audio/pd-plugins/cyclone/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "cyclone"; 5 - version = "0.3beta-2"; 5 + version = "unstable-2023-09-12"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "porres"; 9 9 repo = "pd-cyclone"; 10 - rev = "cyclone${version}"; 11 - sha256 = "192jrq3bdsv626js1ymq10gwp9wwcszjs63ys6ap9ig8xdkbhr3q"; 10 + rev = "7c470fb03db66057a2198843b635ac3f1abde84d"; 11 + hash = "sha256-ixfnmeoRzV0qEOOIxCV1361t3d59fwxjHWhz9uXQ2ps="; 12 12 }; 13 13 14 14 buildInputs = [ puredata ]; ··· 23 23 rm -rf $out/lib 24 24 ''; 25 25 26 - meta = { 26 + meta = with lib; { 27 27 description = "A library of PureData classes, bringing some level of compatibility between Max/MSP and Pd environments"; 28 28 homepage = "http://puredata.info/downloads/cyclone"; 29 - license = lib.licenses.tcltk; 30 - maintainers = [ lib.maintainers.magnetophon ]; 31 - platforms = lib.platforms.linux; 29 + license = licenses.tcltk; 30 + maintainers = with maintainers; [ magnetophon carlthome ]; 31 + platforms = platforms.linux; 32 32 }; 33 33 }
+11 -9
pkgs/applications/audio/pd-plugins/gem/default.nix
··· 1 - { lib, stdenv 1 + { lib 2 + , stdenv 2 3 , fetchFromGitHub 3 4 , autoreconfHook 4 5 , pkg-config ··· 10 11 , libv4l 11 12 , libX11 12 13 , file 13 - }: 14 + }: 14 15 15 16 stdenv.mkDerivation rec { 16 17 pname = "gem-unstable"; 17 - version = "2020-09-22"; 18 + version = "2023-07-28"; 18 19 19 20 src = fetchFromGitHub { 21 + 20 22 owner = "umlaeute"; 21 23 repo = "Gem"; 22 - rev = "2edfde4f0587e72ef325e7f53681936dcc19655b"; 23 - sha256 = "0k5sq128wxi2qhaidspkw310pdgysxs47agv09pkjgvch2n4d5dq"; 24 + rev = "4ec12eef8716822c68f7c02a5a94668d2427037d"; 25 + hash = "sha256-Y/Z7oJdKGd7+aSk8eAN9qu4ss+BOvzaXWpWGjfJqGJ8="; 24 26 }; 25 27 26 28 nativeBuildInputs = [ ··· 39 41 libX11 40 42 ]; 41 43 42 - meta = { 44 + meta = with lib; { 43 45 description = "Graphics Environment for Multimedia"; 44 46 homepage = "http://puredata.info/downloads/gem"; 45 - license = lib.licenses.gpl2Plus; 46 - maintainers = [ lib.maintainers.raboof ]; 47 - platforms = lib.platforms.linux; 47 + license = licenses.gpl2Plus; 48 + maintainers = with maintainers; [ raboof carlthome ]; 49 + platforms = platforms.linux; 48 50 }; 49 51 }
+36 -13
pkgs/applications/audio/puredata/default.nix
··· 1 - { lib, stdenv, fetchurl, autoreconfHook, gettext, makeWrapper 2 - , alsa-lib, libjack2, tk, fftw 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , autoreconfHook 5 + , gettext 6 + , makeWrapper 7 + , alsa-lib 8 + , libjack2 9 + , tk 10 + , fftw 11 + , portaudio 3 12 }: 4 13 5 - stdenv.mkDerivation rec { 14 + stdenv.mkDerivation rec { 6 15 pname = "puredata"; 7 - version = "0.50-2"; 16 + version = "0.54-0"; 8 17 9 18 src = fetchurl { 10 19 url = "http://msp.ucsd.edu/Software/pd-${version}.src.tar.gz"; 11 - sha256 = "0dz6r6jy0zfs1xy1xspnrxxks8kddi9c7pxz4vpg2ygwv83ghpg5"; 20 + hash = "sha256-6MFKfYV5CWxuOsm1V4LaYChIRIlx0Qcwah5SbtBFZIU="; 12 21 }; 13 22 14 23 nativeBuildInputs = [ autoreconfHook gettext makeWrapper ]; 15 24 16 - buildInputs = [ alsa-lib libjack2 fftw ]; 25 + buildInputs = [ 26 + fftw 27 + libjack2 28 + ] ++ lib.optionals stdenv.isLinux [ 29 + alsa-lib 30 + ] ++ lib.optionals stdenv.isDarwin [ 31 + portaudio 32 + ]; 17 33 18 34 configureFlags = [ 19 - "--enable-alsa" 20 - "--enable-jack" 35 + "--enable-universal" 21 36 "--enable-fftw" 22 - "--disable-portaudio" 23 - "--disable-oss" 37 + "--enable-jack" 38 + ] ++ lib.optionals stdenv.isLinux [ 39 + "--enable-alsa" 40 + ] ++ lib.optionals stdenv.isDarwin [ 41 + "--enable-portaudio" 42 + "--without-local-portaudio" 43 + "--disable-jack-framework" 44 + "--with-wish=${tk}/bin/wish8.6" 24 45 ]; 25 46 26 47 postInstall = '' 27 - wrapProgram $out/bin/pd --prefix PATH : ${tk}/bin 48 + wrapProgram $out/bin/pd --prefix PATH : ${lib.makeBinPath [ tk ]} 28 49 ''; 29 50 30 51 meta = with lib; { ··· 32 53 audio, video, and graphical processing''; 33 54 homepage = "http://puredata.info"; 34 55 license = licenses.bsd3; 35 - platforms = platforms.linux; 36 - maintainers = [ maintainers.goibhniu ]; 56 + platforms = platforms.linux ++ platforms.darwin; 57 + maintainers = with maintainers; [ goibhniu carlthome ]; 58 + mainProgram = "pd"; 59 + changelog = "https://msp.puredata.info/Pd_documentation/x5.htm#s1"; 37 60 }; 38 61 }