nixpkgs/pkgs/applications/audio/midi-trigger/default.nix
Viacheslav Lotsmanov 930628f022
midi-trigger: init at 0.0.4 (#182015)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-07-25 15:06:51 +02:00

34 lines
805 B
Nix

{ lib, stdenv, fetchFromGitHub, pkg-config, lv2 }:
stdenv.mkDerivation rec {
pname = "midi-trigger";
version = "0.0.4";
src = fetchFromGitHub {
owner = "unclechu";
repo = "MIDI-Trigger";
rev = "v${version}";
sha256 = "sha256-tMnN8mTd6Bm46ZIDy0JPSVe77xCZws2XwQLQexDWPgU=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ lv2 ];
makeFlags = [
"CXX=cc"
"BUILD_DIR=."
];
installPhase = ''
mkdir -p "$out/lib/lv2"
mv midi-trigger.lv2 "$out/lib/lv2"
'';
meta = with lib; {
homepage = "https://github.com/unclechu/MIDI-Trigger";
description = "LV2 plugin which generates MIDI notes by detected audio signal peaks";
maintainers = with maintainers; [ unclechu ];
license = licenses.gpl3Only;
platforms = platforms.unix;
};
}