depot/third_party/nixpkgs/pkgs/applications/audio/midi-trigger/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03: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;
};
}