about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/audio/ladspa-plugins/default.nix
blob: d7e7dd7b69477fdc915ca4a52d1e35036166f881 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, automake
, fftw
, ladspaH
, libxml2
, pkg-config
, perlPackages
}:

stdenv.mkDerivation rec {
  pname = "swh-plugins";
  version = "0.4.17";

  src = fetchFromGitHub {
    owner = "swh";
    repo = "ladspa";
    rev = "v${version}";
    sha256 = "sha256-eOtIhNcuItREUShI8JRlBVKfMfovpdfIYu+m37v4KLE=";
  };

  nativeBuildInputs = [ autoreconfHook pkg-config ];
  buildInputs = [ fftw ladspaH libxml2 perlPackages.perl perlPackages.XMLParser ];

  patchPhase = ''
    patchShebangs .
    patchShebangs ./metadata/
    cp ${automake}/share/automake-*/mkinstalldirs .
  '';

  meta = with lib; {
    homepage = "http://plugin.org.uk/";
    description = "LADSPA format audio plugins";
    license = licenses.gpl2Only;
    maintainers = [ maintainers.magnetophon ];
    platforms = platforms.unix;
  };
}