4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
54 lines
1.5 KiB
Nix
54 lines
1.5 KiB
Nix
# TODO add plugins having various licenses, see http://www.vamp-plugins.org/download.html
|
|
|
|
{ lib, stdenv, fetchurl, alsaLib, bzip2, fftw, libjack2, libX11, liblo
|
|
, libmad, lrdf, librdf_raptor, librdf_rasqal, libsamplerate
|
|
, libsndfile, pkg-config, libpulseaudio, qtbase, qtsvg, redland
|
|
, rubberband, serd, sord, vamp-plugin-sdk, fftwFloat
|
|
, capnproto, liboggz, libfishsound, libid3tag, opusfile
|
|
, wrapQtAppsHook
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "sonic-visualiser";
|
|
version = "4.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://code.soundsoftware.ac.uk/attachments/download/2755/${pname}-${version}.tar.gz";
|
|
sha256 = "1wsvranhvdl21ksbinbgb55qvs3g2d4i57ssj1vx2aln6m01ms9q";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config wrapQtAppsHook ];
|
|
buildInputs =
|
|
[ libsndfile qtbase qtsvg fftw fftwFloat bzip2 lrdf rubberband
|
|
libsamplerate vamp-plugin-sdk alsaLib librdf_raptor librdf_rasqal redland
|
|
serd
|
|
sord
|
|
# optional
|
|
libjack2
|
|
# portaudio
|
|
libpulseaudio
|
|
libmad
|
|
libfishsound
|
|
liblo
|
|
libX11
|
|
capnproto
|
|
liboggz
|
|
libid3tag
|
|
opusfile
|
|
];
|
|
|
|
# comment out the tests
|
|
preConfigure = ''
|
|
sed -i 's/sub_test_svcore_/#sub_test_svcore_/' sonic-visualiser.pro
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
description = "View and analyse contents of music audio files";
|
|
homepage = "https://www.sonicvisualiser.org/";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = [ maintainers.goibhniu maintainers.marcweber ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|