mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 09:13:17 +00:00
7824143e5f
- add patch from upstream commmit fixing ffmpeg7 compatibility:
58a9d0c1f9
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, fftw
|
|
, zita-convolver
|
|
, fftwFloat
|
|
, libsndfile
|
|
, ffmpeg
|
|
, alsa-lib
|
|
, libao
|
|
, libmad
|
|
, ladspaH
|
|
, libtool
|
|
, libpulseaudio
|
|
, fetchpatch
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "dsp";
|
|
version = "1.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bmc0";
|
|
repo = "dsp";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-S1pzVQ/ceNsx0vGmzdDWw2TjPVLiRgzR4edFblWsekY=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
patches = [
|
|
# fix compatibility with ffmpeg7
|
|
# https://github.com/bmc0/dsp/commit/58a9d0c1f99f2d4c7fc51b6dbe563447ec60120f
|
|
(fetchpatch {
|
|
url = "https://github.com/bmc0/dsp/commit/58a9d0c1f99f2d4c7fc51b6dbe563447ec60120f.patch?full_index=1";
|
|
hash = "sha256-7WgJegDL9sVCRnRwm/f1ZZl2eiuRT5oAQaYoDLjEoqs=";
|
|
})
|
|
];
|
|
|
|
buildInputs = [
|
|
fftw
|
|
zita-convolver
|
|
fftwFloat
|
|
libsndfile
|
|
ffmpeg
|
|
alsa-lib
|
|
libao
|
|
libmad
|
|
ladspaH
|
|
libtool
|
|
libpulseaudio
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/bmc0/dsp";
|
|
description = "Audio processing program with an interactive mode";
|
|
license = licenses.isc;
|
|
maintainers = with maintainers; [ aaronjheng ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "dsp";
|
|
};
|
|
})
|