@@ -0,0 +1,37 @@
1+{ stdenv
2+, fetchFromGitHub
3+, cmake
4+, alsaLib
5+, libX11
6+}:
7+
8+stdenv.mkDerivation rec {
9+ pname = "osmid";
10+ version = "0.6.8";
11+
12+ src = fetchFromGitHub {
13+ owner = "llloret";
14+ repo = "osmid";
15+ rev = "v${version}";
16+ sha256 = "1yl25abf343yvd49nfsgxsz7jf956zrsi5n4xyqb5ldlp2hifk15";
17+ };
18+
19+ nativeBuildInputs = [ cmake ];
20+
21+ buildInputs = [ alsaLib libX11 ];
22+
23+ installPhase = ''
24+ runHook preInstall
25+ mkdir -p $out/bin
26+ cp {m2o,o2m} $out/bin/
27+ runHook postInstall
28+ '';
29+
30+ meta = with stdenv.lib; {
31+ homepage = "https://github.com/llloret/osmid";
32+ description = "A lightweight, portable, easy to use tool to convert MIDI to OSC and OSC to MIDI";
33+ license = licenses.mit;
34+ maintainers = with maintainers; [ c0deaddict ];
35+ platforms = platforms.linux;
36+ };
37+}