1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/audio/osmid/default.nix

38 lines
789 B
Nix
Raw Normal View History

2019-09-14 17:21:56 +01:00
{ stdenv
, fetchFromGitHub
, cmake
, alsaLib
, libX11
}:
stdenv.mkDerivation rec {
pname = "osmid";
2020-07-06 03:34:37 +01:00
version = "0.8.0";
2019-09-14 17:21:56 +01:00
src = fetchFromGitHub {
owner = "llloret";
repo = "osmid";
rev = "v${version}";
2020-07-06 03:34:37 +01:00
sha256 = "1s1wsrp6g6wb0y61xzxvaj59mwycrgy52r4h456086zkz10ls6hw";
2019-09-14 17:21:56 +01:00
};
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;
};
}