furnace: 0.5.8 -> 0.6pre1

This commit is contained in:
OPNA2608 2022-06-30 20:18:06 +02:00 committed by superherointj
parent 3bd20fe6f7
commit 6496c250ce

View file

@ -7,8 +7,10 @@
, cmake , cmake
, pkg-config , pkg-config
, makeWrapper , makeWrapper
, fftw
, fmt_8 , fmt_8
, libsndfile , libsndfile
, rtmidi
, SDL2 , SDL2
, zlib , zlib
, withJACK ? stdenv.hostPlatform.isUnix , withJACK ? stdenv.hostPlatform.isUnix
@ -19,21 +21,16 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "furnace"; pname = "furnace";
version = "0.5.8"; version = "0.6pre1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tildearrow"; owner = "tildearrow";
repo = "furnace"; repo = "furnace";
rev = "v${version}"; rev = "v${version}";
fetchSubmodules = true; fetchSubmodules = true;
sha256 = "103ymd3wa1sfsr6qg15vpcs53j350i7zidv3azlf7cynk6k28xim"; sha256 = "sha256-7MrzSC8PYQ4X8fyX1hB8mOoSCtLpY+o1x42v9HLdoao=";
}; };
postPatch = ''
# rtmidi is not used yet
sed -i -e '/add_subdirectory(extern\/rtmidi/d' -e '/DEPENDENCIES_LIBRARIES rtmidi/d' CMakeLists.txt
'';
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake
pkg-config pkg-config
@ -42,8 +39,10 @@ stdenv.mkDerivation rec {
]; ];
buildInputs = [ buildInputs = [
fftw
fmt_8 fmt_8
libsndfile libsndfile
rtmidi
SDL2 SDL2
zlib zlib
] ++ lib.optionals withJACK [ ] ++ lib.optionals withJACK [
@ -54,10 +53,12 @@ stdenv.mkDerivation rec {
cmakeFlags = [ cmakeFlags = [
"-DBUILD_GUI=${if withGUI then "ON" else "OFF"}" "-DBUILD_GUI=${if withGUI then "ON" else "OFF"}"
"-DSYSTEM_FFTW=ON"
"-DSYSTEM_FMT=ON" "-DSYSTEM_FMT=ON"
"-DSYSTEM_LIBSNDFILE=ON" "-DSYSTEM_LIBSNDFILE=ON"
"-DSYSTEM_ZLIB=ON" "-DSYSTEM_RTMIDI=ON"
"-DSYSTEM_SDL2=ON" "-DSYSTEM_SDL2=ON"
"-DSYSTEM_ZLIB=ON"
"-DWITH_JACK=${if withJACK then "ON" else "OFF"}" "-DWITH_JACK=${if withJACK then "ON" else "OFF"}"
"-DWARNINGS_ARE_ERRORS=ON" "-DWARNINGS_ARE_ERRORS=ON"
]; ];
@ -85,8 +86,6 @@ stdenv.mkDerivation rec {
}; };
tests.version = testers.testVersion { tests.version = testers.testVersion {
package = furnace; package = furnace;
# The command always exits with code 1
command = "(furnace --version || [ $? -eq 1 ])";
}; };
}; };