about summary refs log tree commit diff
path: root/pkgs/applications/audio/plugin-torture/default.nix
blob: e4fb83439e0d523f6085f513ac0746960f9c851f (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
{ stdenv, fetchFromGitHub, boost, ladspaH, lilv, lv2, pkgconfig, serd, sord, sratom }:

stdenv.mkDerivation rec {
  name = "plugin-torture-${version}";
  version = "5";

  src = fetchFromGitHub {
    owner = "cth103";
    repo = "plugin-torture";
    rev = "v${version}";
    sha256 = "1mlgxjsyaz86wm4k32ll2w5nghjffnsdqlm6kjv02a4dpb2bfrih";
  };

  buildInputs = [ boost ladspaH lilv lv2 pkgconfig serd sord sratom ];

  installPhase = ''
    mkdir -p $out/bin
    cp plugin-torture $out/bin/
    cp find-safe-plugins $out/bin/
  '';

  meta = with stdenv.lib; {
    homepage = https://github.com/cth103/plugin-torture;
    description = "A tool to test LADSPA and LV2 plugins";
    license = licenses.gpl2;
    maintainers = [ maintainers.magnetophon ];
    platforms = platforms.linux;
  };
}