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";
|
2023-03-24 00:07:29 +00:00
|
|
|
version = "23.1";
|
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";
|
2023-03-24 00:07:29 +00:00
|
|
|
sha256 = "sha256-zNXA/HFUCTxKzeKde/XVK239dInnxkPBmxXrlicl1fI=";
|
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 ]
|
|
|
|
++ lib.optionals stdenv.isLinux [ alsa-lib ]
|
|
|
|
++ lib.optionals stdenv.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;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|