8e65f7f0cc
GitOrigin-RevId: 062a0c5437b68f950b081bbfc8a699d57a4ee026
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, zlib
|
|
, fetchFromGitHub
|
|
, gnumake
|
|
, gcc
|
|
, pkg-config
|
|
, lua5_4
|
|
, openssl
|
|
, jack1
|
|
, python3
|
|
, alsa-lib
|
|
, ncurses
|
|
, libevdev
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "midimonster";
|
|
version = "0.6.0";
|
|
|
|
buildInputs = [pkg-config gnumake gcc lua5_4 openssl jack1 python3 alsa-lib ncurses libevdev];
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "midimonster";
|
|
owner = "cbdevnet";
|
|
rev = "f16f7db86662fcdbf45b6373257c90c824b0b4b0";
|
|
sha256 = "131zs4j9asq9xl72cbyi463xpkj064ca1s7i77q5jrwqysgy52sp";
|
|
};
|
|
|
|
doCheck = true;
|
|
enableParallelBuilding = true;
|
|
|
|
outputs = ["out" "man"];
|
|
|
|
buildPhase = ''
|
|
PLUGINS=$out/lib/midimonster make all
|
|
'';
|
|
|
|
installPhase = ''
|
|
PREFIX=$out make install
|
|
|
|
mkdir -p "$man/share/man/man1"
|
|
cp assets/midimonster.1 "$man/share/man/man1"
|
|
|
|
mkdir -p "$out/share/icons/hicolor/scalable/apps"
|
|
cp assets/MIDIMonster.svg "$out/share/icons/hicolor/scalable/apps/"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://midimonster.net";
|
|
description = "Multi-protocol translation tool";
|
|
license = licenses.bsd2;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [keldu];
|
|
};
|
|
}
|