lol
1{ lib, stdenv, fetchurl, pkg-config
2, alsa-lib, fftw, gsl, motif, xorg
3, CoreServices, CoreMIDI
4}:
5
6stdenv.mkDerivation rec {
7 pname = "snd";
8 version = "21.8";
9
10 src = fetchurl {
11 url = "mirror://sourceforge/snd/snd-${version}.tar.gz";
12 sha256 = "sha256-sI2xa37eSBDr/ucQ7RF3YfsszKfWcmOCoAJENALSlTo=";
13 };
14
15 nativeBuildInputs = [ pkg-config ];
16
17 buildInputs = [ fftw gsl motif ]
18 ++ lib.optionals stdenv.isLinux [ alsa-lib ]
19 ++ lib.optionals stdenv.isDarwin [ CoreServices CoreMIDI ]
20 ++ (with xorg; [ libXext libXft libXpm libXt ]);
21
22 configureFlags = [ "--with-motif" ];
23
24 enableParallelBuilding = true;
25
26 meta = with lib; {
27 description = "Sound editor";
28 homepage = "https://ccrma.stanford.edu/software/snd/";
29 platforms = platforms.unix;
30 license = licenses.free;
31 maintainers = with maintainers; [ ];
32 };
33}