Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 40 lines 816 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 pkg-config, 6 lv2, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "midi-trigger"; 11 version = "0.0.4"; 12 13 src = fetchFromGitHub { 14 owner = "unclechu"; 15 repo = "MIDI-Trigger"; 16 rev = "v${version}"; 17 sha256 = "sha256-tMnN8mTd6Bm46ZIDy0JPSVe77xCZws2XwQLQexDWPgU="; 18 }; 19 20 nativeBuildInputs = [ pkg-config ]; 21 buildInputs = [ lv2 ]; 22 23 makeFlags = [ 24 "CXX=cc" 25 "BUILD_DIR=." 26 ]; 27 28 installPhase = '' 29 mkdir -p "$out/lib/lv2" 30 mv midi-trigger.lv2 "$out/lib/lv2" 31 ''; 32 33 meta = with lib; { 34 homepage = "https://github.com/unclechu/MIDI-Trigger"; 35 description = "LV2 plugin which generates MIDI notes by detected audio signal peaks"; 36 maintainers = with maintainers; [ unclechu ]; 37 license = licenses.gpl3Only; 38 platforms = platforms.unix; 39 }; 40}