uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
38
pkgs/applications/audio/munt/libmt32emu.nix
Normal file
38
pkgs/applications/audio/munt/libmt32emu.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libmt32emu";
|
||||
version = "2.6.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "munt";
|
||||
repo = "munt";
|
||||
rev = "${pname}_${lib.replaceChars [ "." ] [ "_" ] version}";
|
||||
sha256 = "0ncy55fj9l2s750clxjpv102hrgcndz4qba9w2sf8lwzgy6d1xmp";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
];
|
||||
|
||||
dontFixCmake = true;
|
||||
|
||||
cmakeFlags = [
|
||||
"-Dmunt_WITH_MT32EMU_SMF2WAV=OFF"
|
||||
"-Dmunt_WITH_MT32EMU_QT=OFF"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://munt.sourceforge.net/";
|
||||
description = "A library to emulate Roland MT-32, CM-32L, CM-64 and LAPC-I devices";
|
||||
license = with licenses; [ lgpl21Plus ];
|
||||
maintainers = with maintainers; [ OPNA2608 ];
|
||||
platforms = platforms.unix; # Not tested on ReactOS yet :)
|
||||
};
|
||||
}
|
||||
77
pkgs/applications/audio/munt/mt32emu-qt.nix
Normal file
77
pkgs/applications/audio/munt/mt32emu-qt.nix
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, mkDerivation
|
||||
, fetchFromGitHub
|
||||
, alsa-lib
|
||||
, cmake
|
||||
, libpulseaudio
|
||||
, libmt32emu
|
||||
, pkg-config
|
||||
, portaudio
|
||||
, qtbase
|
||||
, qtmultimedia
|
||||
, withJack ? stdenv.hostPlatform.isUnix, libjack2
|
||||
}:
|
||||
|
||||
let
|
||||
char2underscore = char: str: lib.replaceChars [ char ] [ "_" ] str;
|
||||
in
|
||||
mkDerivation rec {
|
||||
pname = "mt32emu-qt";
|
||||
version = "1.10.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "munt";
|
||||
repo = "munt";
|
||||
rev = "${char2underscore "-" pname}_${char2underscore "." version}";
|
||||
sha256 = "1dh5xpnsgx367ch45mm5c2p26vnxf3shax2afg2cd2lrbrlii7l9";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i -e '/add_subdirectory(mt32emu)/d' CMakeLists.txt
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libmt32emu
|
||||
portaudio
|
||||
qtbase
|
||||
qtmultimedia
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isLinux [
|
||||
alsa-lib
|
||||
libpulseaudio
|
||||
]
|
||||
++ lib.optional withJack libjack2;
|
||||
|
||||
dontFixCmake = true;
|
||||
|
||||
cmakeFlags = [
|
||||
"-Dmt32emu-qt_USE_PULSEAUDIO_DYNAMIC_LOADING=OFF"
|
||||
"-Dmunt_WITH_MT32EMU_QT=ON"
|
||||
"-Dmunt_WITH_MT32EMU_SMF2WAV=OFF"
|
||||
];
|
||||
|
||||
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||
mkdir $out/Applications
|
||||
mv $out/bin/${pname}.app $out/Applications/
|
||||
ln -s $out/{Applications/${pname}.app/Contents/MacOS,bin}/${pname}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://munt.sourceforge.net/";
|
||||
description = "A synthesizer application built on Qt and libmt32emu";
|
||||
longDescription = ''
|
||||
mt32emu-qt is a synthesiser application that facilitates both realtime
|
||||
synthesis and conversion of pre-recorded SMF files to WAVE making use of
|
||||
the mt32emu library and the Qt framework.
|
||||
'';
|
||||
license = with licenses; [ gpl3Plus ];
|
||||
maintainers = with maintainers; [ OPNA2608 ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
52
pkgs/applications/audio/munt/mt32emu-smf2wav.nix
Normal file
52
pkgs/applications/audio/munt/mt32emu-smf2wav.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, glib
|
||||
, libmt32emu
|
||||
, pkg-config
|
||||
}:
|
||||
|
||||
let
|
||||
char2underscore = char: str: lib.replaceChars [ char ] [ "_" ] str;
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mt32emu-smf2wav";
|
||||
version = "1.8.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "munt";
|
||||
repo = "munt";
|
||||
rev = "${char2underscore "-" pname}_${char2underscore "." version}";
|
||||
sha256 = "1dh5xpnsgx367ch45mm5c2p26vnxf3shax2afg2cd2lrbrlii7l9";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i -e '/add_subdirectory(mt32emu)/d' CMakeLists.txt
|
||||
'';
|
||||
|
||||
dontFixCmake = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libmt32emu
|
||||
glib
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-Dmunt_WITH_MT32EMU_QT=OFF"
|
||||
"-Dmunt_WITH_MT32EMU_SMF2WAV=ON"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://munt.sourceforge.net/";
|
||||
description = "Produces a WAVE file from a Standard MIDI file (SMF)";
|
||||
license = with licenses; [ gpl3Plus ];
|
||||
maintainers = with maintainers; [ OPNA2608 ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue