mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
0734f54ef2
found with nixpkgs-lint
59 lines
1.2 KiB
Nix
59 lines
1.2 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";
|
|
|
|
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];
|
|
};
|
|
}
|