depot/third_party/nixpkgs/pkgs/applications/audio/osmid/default.nix
Default email 1ffc76754d Project import generated by Copybara.
GitOrigin-RevId: a5cc7d3197705f933d88e97c0c61849219ce76c1
2020-07-18 18:06:22 +02:00

37 lines
789 B
Nix

{ stdenv
, fetchFromGitHub
, cmake
, alsaLib
, libX11
}:
stdenv.mkDerivation rec {
pname = "osmid";
version = "0.8.0";
src = fetchFromGitHub {
owner = "llloret";
repo = "osmid";
rev = "v${version}";
sha256 = "1s1wsrp6g6wb0y61xzxvaj59mwycrgy52r4h456086zkz10ls6hw";
};
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;
};
}