bambootracker-qt6: init at 0.6.1
This commit is contained in:
parent
610af7778b
commit
f1db792d8a
|
@ -3,6 +3,7 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, qmake
|
, qmake
|
||||||
|
, qt5compat ? null
|
||||||
, qtbase
|
, qtbase
|
||||||
, qttools
|
, qttools
|
||||||
, rtaudio
|
, rtaudio
|
||||||
|
@ -10,6 +11,8 @@
|
||||||
, wrapQtAppsHook
|
, wrapQtAppsHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
assert lib.versionAtLeast qtbase.version "6.0" -> qt5compat != null;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "bambootracker";
|
pname = "bambootracker";
|
||||||
version = "0.6.1";
|
version = "0.6.1";
|
||||||
|
@ -22,6 +25,13 @@ stdenv.mkDerivation rec {
|
||||||
hash = "sha256-Ymi1tjJCgStF0Rtseelq/YuTtBs2PrbF898TlbjyYUw=";
|
hash = "sha256-Ymi1tjJCgStF0Rtseelq/YuTtBs2PrbF898TlbjyYUw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = lib.optionalString (lib.versionAtLeast qtbase.version "6.0") ''
|
||||||
|
# Work around lrelease finding in qmake being broken by using pre-Qt5.12 code path
|
||||||
|
# https://github.com/NixOS/nixpkgs/issues/214765
|
||||||
|
substituteInPlace BambooTracker/lang/lang.pri \
|
||||||
|
--replace 'equals(QT_MAJOR_VERSION, 5):lessThan(QT_MINOR_VERSION, 12)' 'if(true)'
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkg-config
|
pkg-config
|
||||||
qmake
|
qmake
|
||||||
|
@ -33,6 +43,8 @@ stdenv.mkDerivation rec {
|
||||||
qtbase
|
qtbase
|
||||||
rtaudio
|
rtaudio
|
||||||
rtmidi
|
rtmidi
|
||||||
|
] ++ lib.optionals (lib.versionAtLeast qtbase.version "6.0") [
|
||||||
|
qt5compat
|
||||||
];
|
];
|
||||||
|
|
||||||
qmakeFlags = [
|
qmakeFlags = [
|
||||||
|
|
|
@ -28238,6 +28238,12 @@ with pkgs;
|
||||||
else
|
else
|
||||||
stdenv;
|
stdenv;
|
||||||
};
|
};
|
||||||
|
bambootracker-qt6 = qt6Packages.callPackage ../applications/audio/bambootracker {
|
||||||
|
stdenv = if stdenv.hostPlatform.isDarwin then
|
||||||
|
darwin.apple_sdk_11_0.stdenv
|
||||||
|
else
|
||||||
|
stdenv;
|
||||||
|
};
|
||||||
|
|
||||||
blocky = callPackage ../applications/networking/blocky { };
|
blocky = callPackage ../applications/networking/blocky { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue