2022-03-30 09:31:56 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, alsa-lib, libX11, libXi, libXtst, xorgproto }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-03-30 09:31:56 +00:00
|
|
|
pname = "mid2key";
|
|
|
|
version = "1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dnschneid";
|
|
|
|
repo = "mid2key";
|
2022-08-21 13:32:41 +00:00
|
|
|
rev = "r${version}";
|
|
|
|
sha256 = "Zo0mqdBJ1JKD9ZCA8te3f5opyYslFncYcx9iuXq2B9g=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
buildInputs = [ alsa-lib libX11 libXi libXtst xorgproto ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPhase = "make";
|
|
|
|
|
|
|
|
installPhase = "mkdir -p $out/bin && mv mid2key $out/bin";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://code.google.com/p/mid2key/";
|
|
|
|
description = "A simple tool which maps midi notes to simulated keystrokes";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
platforms = platforms.linux;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "mid2key";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|