Unverified Commit ba74d072 authored by Jörg Thalheim's avatar Jörg Thalheim Committed by GitHub
Browse files

treewide: remove a bunch of unmaintained and old packages (#341837)

parents 039b72d0 19808ce7
Loading
Loading
Loading
Loading
+0 −49
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchurl
, fetchpatch
, gettext
, ncurses
, gtkGUI ? false
, pkg-config
, gtk2
}:

stdenv.mkDerivation rec {
  pname = "aumix";
  version = "2.9.1";

  src = fetchurl {
    url = "http://www.jpj.net/~trevor/aumix/releases/aumix-${version}.tar.bz2";
    sha256 = "0a8fwyxnc5qdxff8sl2sfsbnvgh6pkij4yafiln0fxgg6bal7knj";
  };

  patches = [
    # Pull Gentoo fix for -fno-common toolchains. Upstream does not
    # seem to have the contacts
    (fetchpatch {
      name = "fno-common.patch";
      url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-sound/aumix/files/aumix-2.9.1-fno-common.patch?id=496c9ec7355f06f6d1d19be780a6981503e6df1f";
      sha256 = "0qwylhx1hawsmx1pc7ykrjq9phksc73dq9rss6ggq15n3ggnc95y";
    })
  ];

  nativeBuildInputs = lib.optionals gtkGUI [ pkg-config ];

  buildInputs = [ gettext ncurses ]
    ++ lib.optionals gtkGUI [ gtk2 ];

  configureFlags = lib.optionals (!gtkGUI) ["--without-gtk"];

  meta = with lib; {
    description = "Audio mixer for X and the console";
    longDescription = ''
      Aumix adjusts an audio mixer from X, the console, a terminal,
      the command line or a script.
    '';
    homepage = "http://www.jpj.net/~trevor/aumix.html";
    license = licenses.gpl2Plus;
    maintainers = [ ];
    platforms = platforms.linux;
  };
}
+0 −67
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchurl
, libtool
, intltool
, pkg-config
, glib
, gtk2
, curl
, libmpdclient
, libsoup
, gob2
, vala
, libunique
, libSM
, libICE
, sqlite
, hicolor-icon-theme
, wrapGAppsHook3
}:

stdenv.mkDerivation rec {
  pname = "gmpc";
  version = "11.8.16";

  libmpd = stdenv.mkDerivation {
    pname = "libmpd";
    version = "11.8.17";
    src = fetchurl {
      url = "https://download.sarine.nl/Programs/gmpc/${lib.versions.majorMinor version}/libmpd-${version}.tar.gz";
      sha256 = "10vspwsgr8pwf3qp2bviw6b2l8prgdiswgv7qiqiyr0h1mmk487y";
    };
    patches = [ ./libmpd-11.8.17-remove-strndup.patch ];

    nativeBuildInputs = [ pkg-config ];
    buildInputs = [ glib ];
  };

  src = fetchurl {
    url = "http://download.sarine.nl/Programs/gmpc/11.8/gmpc-11.8.16.tar.gz";
    sha256 = "0b3bnxf98i5lhjyljvgxgx9xmb6p46cn3a9cccrng14nagri9556";
  };

  nativeBuildInputs = [ pkg-config libtool intltool gob2 vala wrapGAppsHook3 ];
  buildInputs = [
    glib
    gtk2
    curl
    libmpdclient
    libsoup
    libunique
    libmpd
    libSM
    libICE
    sqlite
    hicolor-icon-theme
  ];

  meta = with lib; {
    homepage = "https://gmpclient.org";
    description = "GTK2 frontend for Music Player Daemon";
    license = licenses.gpl2;
    maintainers = [ ];
    platforms = platforms.linux;
  };
}
# TODO: what is this libmpd derivation embedded above?
+0 −15
Original line number Diff line number Diff line
diff --git a/src/libmpd-internal.h b/src/libmpd-internal.h
index c84c3a4..51be441 100644
--- a/src/libmpd-internal.h
+++ b/src/libmpd-internal.h
@@ -206,10 +206,6 @@ int mpd_unlock_conn(MpdObj *mi);
 MpdData * mpd_misc_sort_tag_list(MpdData *data);
 
 
-#ifndef HAVE_STRNDUP
-char * 		strndup					(const char *s, size_t n);
-#endif
-
 int mpd_server_get_allowed_commands(MpdObj *mi);
 typedef enum _MpdSearchType {
 	MPD_SEARCH_TYPE_NONE,
+0 −40
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, makeWrapper, SDL, alsa-lib, autoreconfHook, gtk2, libjack2, ladspaH
, ladspaPlugins, libsamplerate, libsndfile, pkg-config, libpulseaudio, lame
, vorbis-tools }:

stdenv.mkDerivation rec {
  pname = "mhwaveedit";
  version = "1.4.24";

  src = fetchFromGitHub {
    owner = "magnush";
    repo = "mhwaveedit";
    rev = "v${version}";
    sha256 = "037pbq23kh8hsih994x2sv483imglwcrqrx6m8visq9c46fi0j1y";
  };

  nativeBuildInputs = [ autoreconfHook makeWrapper pkg-config ];

  preAutoreconf = "(cd docgen && sh gendocs.sh)";

  buildInputs = [
    SDL alsa-lib gtk2 libjack2 ladspaH libsamplerate libsndfile libpulseaudio
  ];

  configureFlags = [ "--with-default-ladspa-path=${ladspaPlugins}/lib/ladspa" ];

  postInstall = ''
    wrapProgram $out/bin/mhwaveedit \
      --prefix PATH : ${lame}/bin/ \
      --prefix PATH : ${vorbis-tools}/bin/
  '';

  meta = with lib; {
    description = "Graphical program for editing, playing and recording sound files";
    mainProgram = "mhwaveedit";
    homepage = "https://github.com/magnush/mhwaveedit";
    license = licenses.gpl2Plus;
    platforms = platforms.linux;
    maintainers = [ ];
  };
}
+0 −46
Original line number Diff line number Diff line
{ fetchurl, lib, stdenv, ncurses, pkg-config, gtk2 }:

stdenv.mkDerivation rec {
  pname = "mp3info";
  version = "0.8.5a";

  src = fetchurl {
    url = "ftp://ftp.ibiblio.org/pub/linux/apps/sound/mp3-utils/${pname}/${pname}-${version}.tgz";
    sha256 = "042f1czcs9n2sbqvg4rsvfwlqib2gk976mfa2kxlfjghx5laqf04";
  };

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ ncurses gtk2 ];

  hardeningDisable = [ "format" ];

  configurePhase =
    '' sed -i Makefile \
           -e "s|^prefix=.*$|prefix=$out|g ;
               s|/bin/rm|rm|g ;
               s|/usr/bin/install|install|g"
    '';

  preInstall =
    '' mkdir -p "$out/bin"
       mkdir -p "$out/man/man1"
    '';

  meta = {
    description = "MP3 technical info viewer and ID3 1.x tag editor";

    longDescription =
      '' MP3Info is a little utility used to read and modify the ID3 tags of
         MP3 files.  MP3Info can also display various techincal aspects of an
         MP3 file including playing time, bit-rate, sampling frequency and
         other attributes in a pre-defined or user-specifiable output format.
      '';

    homepage = "http://www.ibiblio.org/mp3info/";

    license = lib.licenses.gpl2Plus;

    maintainers = [ ];
    platforms = lib.platforms.linux;
  };
}
Loading