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