2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2019-09-14 16:21:56 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2021-06-10 02:57:09 +00:00
|
|
|
, alsa-lib
|
2019-09-14 16:21:56 +00:00
|
|
|
, libX11
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "osmid";
|
2020-07-06 02:34:37 +00:00
|
|
|
version = "0.8.0";
|
2019-09-14 16:21:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "llloret";
|
|
|
|
repo = "osmid";
|
|
|
|
rev = "v${version}";
|
2020-07-06 02:34:37 +00:00
|
|
|
sha256 = "1s1wsrp6g6wb0y61xzxvaj59mwycrgy52r4h456086zkz10ls6hw";
|
2019-09-14 16:21:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2021-06-10 02:57:09 +00:00
|
|
|
buildInputs = [ alsa-lib libX11 ];
|
2019-09-14 16:21:56 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp {m2o,o2m} $out/bin/
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-09-14 16:21:56 +00:00
|
|
|
homepage = "https://github.com/llloret/osmid";
|
|
|
|
description = "A lightweight, portable, easy to use tool to convert MIDI to OSC and OSC to MIDI";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ c0deaddict ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|