Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
42 lines
934 B
Nix
42 lines
934 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
alsa-lib,
|
|
glib,
|
|
json-glib,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "aseq2json";
|
|
version = "0-unstable-2018-04-28";
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "midi-dump-tools";
|
|
rev = "8572e6313a0d7ec95492dcab04a46c5dd30ef33a";
|
|
hash = "sha256-LQ9LLVumi3GN6c9tuMSOd1Bs2pgrwrLLQbs5XF+NZeA=";
|
|
};
|
|
sourceRoot = "source/aseq2json";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [
|
|
alsa-lib
|
|
glib
|
|
json-glib
|
|
];
|
|
|
|
installPhase = ''
|
|
install -D --target-directory "$out/bin" aseq2json
|
|
'';
|
|
|
|
meta = {
|
|
description = "Listens for MIDI events on the Alsa sequencer and outputs as JSON to stdout";
|
|
mainProgram = "aseq2json";
|
|
homepage = "https://github.com/google/midi-dump-tools";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ queezle ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|