diff --git a/pkgs/applications/audio/snd/default.nix b/pkgs/applications/audio/snd/default.nix deleted file mode 100644 index 1e6cec992960..000000000000 --- a/pkgs/applications/audio/snd/default.nix +++ /dev/null @@ -1,34 +0,0 @@ -{ lib, stdenv, fetchurl, pkg-config -, alsa-lib, fftw, gsl, motif, xorg -, CoreServices, CoreMIDI -}: - -stdenv.mkDerivation rec { - pname = "snd"; - version = "24.9"; - - src = fetchurl { - url = "mirror://sourceforge/snd/snd-${version}.tar.gz"; - sha256 = "sha256-3ETeqOOX9ao7FJIaex0A9WPRYO+yaZ+o8Gkjmxo9bK0="; - }; - - nativeBuildInputs = [ pkg-config ]; - - buildInputs = [ fftw gsl motif ] - ++ lib.optionals stdenv.hostPlatform.isLinux [ alsa-lib ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices CoreMIDI ] - ++ (with xorg; [ libXext libXft libXpm libXt ]); - - configureFlags = [ "--with-motif" ]; - - enableParallelBuilding = true; - - meta = with lib; { - description = "Sound editor"; - homepage = "https://ccrma.stanford.edu/software/snd/"; - platforms = platforms.unix; - license = licenses.free; - maintainers = [ ]; - mainProgram = "snd"; - }; -} diff --git a/pkgs/by-name/sn/snd/package.nix b/pkgs/by-name/sn/snd/package.nix new file mode 100644 index 000000000000..3859ee06543d --- /dev/null +++ b/pkgs/by-name/sn/snd/package.nix @@ -0,0 +1,56 @@ +{ + lib, + stdenv, + fetchurl, + pkg-config, + alsa-lib, + fftw, + gsl, + motif, + xorg, +}: + +stdenv.mkDerivation rec { + pname = "snd"; + version = "25.0"; + + src = fetchurl { + url = "mirror://sourceforge/snd/snd-${version}.tar.gz"; + hash = "sha256-WJ5/XBqwV19ZoJufz2gMCMsmJfuKEPgwX/YveYp7j4s="; + }; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = + [ + fftw + gsl + motif + ] + ++ lib.optionals stdenv.hostPlatform.isLinux [ + alsa-lib + ] + ++ (with xorg; [ + libXext + libXft + libXpm + libXt + ]); + + configureFlags = [ + "--with-motif" + ]; + + enableParallelBuilding = true; + + meta = with lib; { + description = "Sound editor"; + homepage = "https://ccrma.stanford.edu/software/snd/"; + platforms = platforms.unix; + license = licenses.free; + maintainers = [ ]; + mainProgram = "snd"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3f5af7921c58..1c6121cac14c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15303,10 +15303,6 @@ with pkgs; smartdeblur = libsForQt5.callPackage ../applications/graphics/smartdeblur { }; - snd = darwin.apple_sdk_11_0.callPackage ../applications/audio/snd { - inherit (darwin.apple_sdk_11_0.frameworks) CoreServices CoreMIDI; - }; - soci = callPackage ../development/libraries/soci { }; socialscan = with python3.pkgs; toPythonApplication socialscan;