depot/third_party/nixpkgs/pkgs/applications/audio/osmid/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

37 lines
789 B
Nix

{ stdenv
, fetchFromGitHub
, cmake
, alsaLib
, libX11
}:
stdenv.mkDerivation rec {
pname = "osmid";
version = "0.6.8";
src = fetchFromGitHub {
owner = "llloret";
repo = "osmid";
rev = "v${version}";
sha256 = "1yl25abf343yvd49nfsgxsz7jf956zrsi5n4xyqb5ldlp2hifk15";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ alsaLib libX11 ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp {m2o,o2m} $out/bin/
runHook postInstall
'';
meta = with stdenv.lib; {
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;
};
}