2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config
|
2021-06-28 23:13:55 +00:00
|
|
|
, alsa-lib, fftw, gsl, motif, xorg
|
2021-12-06 16:07:01 +00:00
|
|
|
, CoreServices, CoreMIDI
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-04-12 18:23:04 +00:00
|
|
|
pname = "snd";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "24.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-04-12 18:23:04 +00:00
|
|
|
url = "mirror://sourceforge/snd/snd-${version}.tar.gz";
|
2024-07-27 06:49:29 +00:00
|
|
|
sha256 = "sha256-Y497KAlUXtWhkrCd1QrqJkvWGwnzZfYRKaALiEo/7EI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
buildInputs = [ fftw gsl motif ]
|
2024-09-26 11:04:55 +00:00
|
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [ alsa-lib ]
|
|
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices CoreMIDI ]
|
2021-04-12 18:23:04 +00:00
|
|
|
++ (with xorg; [ libXext libXft libXpm libXt ]);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
configureFlags = [ "--with-motif" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
enableParallelBuilding = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Sound editor";
|
|
|
|
homepage = "https://ccrma.stanford.edu/software/snd/";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.free;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "snd";
|
2021-04-12 18:23:04 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|