1{ stdenv, fetchurl, pkgconfig, pure, lv2 }:
2
3stdenv.mkDerivation rec {
4 baseName = "lv2";
5 version = "0.2";
6 name = "pure-${baseName}-${version}";
7
8 src = fetchurl {
9 url = "https://bitbucket.org/purelang/pure-lang/downloads/${name}.tar.gz";
10 sha256 = "721cacd831781d8309e7ecabb0ee7c01da17e75c5642a5627cf158bfb36093e1";
11 };
12
13 buildInputs = [ pkgconfig ];
14 propagatedBuildInputs = [ pure lv2 ];
15 makeFlags = "libdir=$(out)/lib prefix=$(out)/";
16 setupHook = ../generic-setup-hook.sh;
17
18 meta = {
19 description = "A generic LV2 plugin wrapper for Pure which can be linked with batch-compiled Pure scripts to obtain LV2 plugin modules";
20 homepage = http://puredocs.bitbucket.org/pure-lv2.html;
21 license = stdenv.lib.licenses.bsd3;
22 platforms = stdenv.lib.platforms.linux;
23 maintainers = with stdenv.lib.maintainers; [ asppsa ];
24 };
25}