blob: ec55367474f5f23dd637d451f98aff46bf49418f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{ lib
, stdenv
, fetchFromGitHub
, gnumake
, gcc
, pkg-config
, lua5_4
, openssl
, jack1
, python3
, alsa-lib
, ncurses
, libevdev
}:
stdenv.mkDerivation {
pname = "midimonster";
version = "0.6.0";
nativeBuildInputs = [ pkg-config ];
buildInputs = [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];
};
}
|