2021-01-19 07:50:56 +01:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config
|
2021-06-10 04:57:09 +02:00
|
|
|
, alsa-lib, fftw, gsl, motif, xorg
|
2021-10-29 01:29:00 +02:00
|
|
|
, CoreServices, CoreMIDI
|
2014-01-09 08:24:11 +01:00
|
|
|
}:
|
2007-11-03 05:15:13 +01:00
|
|
|
|
2014-01-09 08:24:11 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2021-02-13 18:30:28 +01:00
|
|
|
pname = "snd";
|
2022-02-08 11:03:42 +01:00
|
|
|
version = "22.1";
|
2014-01-09 08:24:11 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-02-13 18:30:28 +01:00
|
|
|
url = "mirror://sourceforge/snd/snd-${version}.tar.gz";
|
2022-02-08 11:03:42 +01:00
|
|
|
sha256 = "sha256-jrH0XRvPj9ySd8FSrOKf6qP5T1YSKrYBNHl6fz5dhkI=";
|
2014-01-09 08:24:11 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2014-01-09 08:24:11 +01:00
|
|
|
|
2021-10-29 01:29:00 +02:00
|
|
|
buildInputs = [ fftw gsl motif ]
|
|
|
|
++ lib.optionals stdenv.isLinux [ alsa-lib ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ CoreServices CoreMIDI ]
|
2021-02-13 18:30:28 +01:00
|
|
|
++ (with xorg; [ libXext libXft libXpm libXt ]);
|
2014-09-21 20:40:17 +02:00
|
|
|
|
2021-02-13 18:30:28 +01:00
|
|
|
configureFlags = [ "--with-motif" ];
|
2014-09-21 20:40:17 +02:00
|
|
|
|
2021-02-13 18:30:28 +01:00
|
|
|
enableParallelBuilding = true;
|
2014-09-21 20:40:17 +02:00
|
|
|
|
2021-02-13 18:30:28 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Sound editor";
|
|
|
|
homepage = "https://ccrma.stanford.edu/software/snd/";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.free;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
2007-11-03 05:15:13 +01:00
|
|
|
}
|