Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 41 lines 1.1 kB view raw
1# set VAMP_PATH ? 2# plugins available on sourceforge and http://www.vamp-plugins.org/download.html (various licenses) 3 4{ 5 lib, 6 stdenv, 7 fetchFromGitHub, 8 pkg-config, 9 libsndfile, 10}: 11 12stdenv.mkDerivation rec { 13 pname = "vamp-plugin-sdk"; 14 version = "2.10"; 15 16 src = fetchFromGitHub { 17 owner = "vamp-plugins"; 18 repo = "vamp-plugin-sdk"; 19 rev = "vamp-plugin-sdk-v${version}"; 20 hash = "sha256-5jNA6WmeIOVjkEMZXB5ijxyfJT88alVndBif6dnUFdI="; 21 }; 22 23 nativeBuildInputs = [ pkg-config ]; 24 buildInputs = [ libsndfile ]; 25 26 # build is susceptible to race conditions: https://github.com/vamp-plugins/vamp-plugin-sdk/issues/12 27 enableParallelBuilding = false; 28 makeFlags = [ 29 "AR:=$(AR)" 30 "RANLIB:=$(RANLIB)" 31 ] 32 ++ lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "-o test"; 33 34 meta = with lib; { 35 description = "Audio processing plugin system for plugins that extract descriptive information from audio data"; 36 homepage = "https://vamp-plugins.org/"; 37 license = licenses.bsd3; 38 maintainers = [ maintainers.marcweber ]; 39 platforms = platforms.unix; 40 }; 41}