Unverified Commit 9c963825 authored by Wolfgang Walther's avatar Wolfgang Walther Committed by GitHub
Browse files

various: migrate applications/audio to by-name/ part 2 (#454032)

parents d4d15344 b420ad06
Loading
Loading
Loading
Loading
+10 −11
Original line number Diff line number Diff line
@@ -11,17 +11,16 @@
  libsndfile,
  pkg-config,
  python3Packages,
  libsForQt5,
  which,
  gtk3 ? null,
  qtbase ? null,
  withFrontend ? true,
  withGtk3 ? true,
  withQt ? true,
  wrapQtAppsHook ? null,
}:

assert withQt -> qtbase != null;
assert withQt -> wrapQtAppsHook != null;
assert withQt -> libsForQt5.qtbase != null;
assert withQt -> libsForQt5.wrapQtAppsHook != null;

stdenv.mkDerivation (finalAttrs: {
  pname = "carla";
@@ -30,7 +29,7 @@ stdenv.mkDerivation (finalAttrs: {
  src = fetchFromGitHub {
    owner = "falkTX";
    repo = "carla";
    rev = "v${finalAttrs.version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-21QaFCIjGjRTcJtf2nwC5RcVJF8JgcFPIbS8apvf9tw=";
  };

@@ -38,7 +37,7 @@ stdenv.mkDerivation (finalAttrs: {
    python3Packages.wrapPython
    pkg-config
    which
    wrapQtAppsHook
    libsForQt5.wrapQtAppsHook
  ];

  pythonPath =
@@ -58,7 +57,7 @@ stdenv.mkDerivation (finalAttrs: {
    libpulseaudio
    libsndfile
  ]
  ++ lib.optional withQt qtbase
  ++ lib.optional withQt libsForQt5.qtbase
  ++ lib.optional withGtk3 gtk3;

  propagatedBuildInputs = finalAttrs.pythonPath;
@@ -99,7 +98,7 @@ stdenv.mkDerivation (finalAttrs: {
    done
  '';

  meta = with lib; {
  meta = {
    homepage = "https://kx.studio/Applications:Carla";
    description = "Audio plugin host";
    longDescription = ''
@@ -108,8 +107,8 @@ stdenv.mkDerivation (finalAttrs: {
      It uses JACK as the default and preferred audio driver but also
      supports native drivers like ALSA, DirectSound or CoreAudio.
    '';
    license = licenses.gpl2Plus;
    maintainers = [ maintainers.minijackson ];
    platforms = platforms.linux;
    license = lib.licenses.gpl2Plus;
    maintainers = with lib.maintainers; [ minijackson ];
    platforms = lib.platforms.linux;
  };
})
+6 −8
Original line number Diff line number Diff line
@@ -62,18 +62,16 @@

let
  inherit (lib) optionals;

  version = "1.10.0";
in
clangStdenv.mkDerivation {
clangStdenv.mkDerivation (finalAttrs: {
  pname = "deadbeef";
  inherit version;
  version = "1.10.0";

  src = fetchFromGitHub {
    owner = "DeaDBeeF-Player";
    repo = "deadbeef";
    fetchSubmodules = true;
    rev = version;
    tag = finalAttrs.version;
    hash = "sha256-qa0ULmE15lV2vkyXPNW9kSISQZEANrjwJwykTiifk5Q=";
  };

@@ -155,16 +153,16 @@ clangStdenv.mkDerivation {

  enableParallelBuilding = true;

  meta = with lib; {
  meta = {
    description = "Ultimate Music Player for GNU/Linux";
    mainProgram = "deadbeef";
    homepage = "http://deadbeef.sourceforge.net/";
    downloadPage = "https://github.com/DeaDBeeF-Player/deadbeef";
    license = licenses.gpl2;
    license = lib.licenses.gpl2;
    platforms = [
      "x86_64-linux"
      "i686-linux"
    ];
    maintainers = [ ];
  };
}
})
+14 −13
Original line number Diff line number Diff line
{
  mkDerivation,
  stdenv,
  lib,
  fetchFromGitHub,
  fftw,
  libsndfile,
  qtbase,
  qtmultimedia,
  qmake,
  libsForQt5,
}:

let
@@ -36,13 +34,13 @@ let
  };

in
mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "dfasma";
  version = "1.4.5";

  src = fetchFromGitHub {
    sha256 = "09fcyjm0hg3y51fnjax88m93im39nbynxj79ffdknsazmqw9ac0h";
    rev = "v${version}";
    tag = "v${finalAttrs.version}";
    repo = "dfasma";
    owner = "gillesdegottex";
  };
@@ -50,11 +48,14 @@ mkDerivation rec {
  buildInputs = [
    fftw
    libsndfile
    qtbase
    qtmultimedia
    libsForQt5.qtbase
    libsForQt5.qtmultimedia
  ];

  nativeBuildInputs = [ qmake ];
  nativeBuildInputs = [
    libsForQt5.qmake
    libsForQt5.wrapQtAppsHook
  ];

  postPatch = ''
    cp -Rv "${reaperFork.src}"/* external/REAPER
@@ -62,7 +63,7 @@ mkDerivation rec {
    substituteInPlace dfasma.pro --replace "CONFIG += file_sdif" "";
  '';

  meta = with lib; {
  meta = {
    description = "Analyse and compare audio files in time and frequency";
    mainProgram = "dfasma";
    longDescription = ''
@@ -75,9 +76,9 @@ mkDerivation rec {
    '';
    homepage = "https://gillesdegottex.gitlab.io/dfasma-website/";
    license = [
      licenses.gpl3Plus
      lib.licenses.gpl3Plus
      reaperFork.meta.license
    ];
    platforms = platforms.linux;
    platforms = lib.platforms.linux;
  };
}
})
Loading