gammaray: 3.0.0 -> 3.1.0

This commit is contained in:
rewine 2024-07-29 20:53:56 +08:00
parent c4913a0ed9
commit cf5fe22408

View File

@ -1,11 +1,20 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, pkg-config
, qttools
, wrapQtAppsHook
, qtbase
, qtwayland
, qtsvg
, qt3d
, qtdeclarative
, qtconnectivity
, qtlocation
, qtscxml
, qtwebengine
, kdePackages
, wayland
, elfutils
, libbfd
@ -13,49 +22,43 @@
stdenv.mkDerivation rec {
pname = "gammaray";
version = "3.0.0";
version = "3.1.0";
src = fetchFromGitHub {
owner = "KDAB";
repo = pname;
rev = "v${version}";
hash = "sha256-C8bej0q4p8F27hiJUye9G+sZbkAYaV8hW1GKWZyHAis=";
hash = "sha256-mJw9yckbkFVYZlcakai/hH/gAD0xOQir5JqGMNnB/dE=";
};
patches = [
# Qt 6.7 temp fix, change to Qt needed to fully fix
# https://github.com/KDAB/GammaRay/pull/921
(fetchpatch {
url = "https://github.com/KDAB/GammaRay/commit/d76e73696800bbeda1273e04c6ec42d081fd55e4.patch";
hash = "sha256-BEbNVfP6TDX07RHD5wo1O6na0ku3E04Bzo2z2bUBvuc=";
})
# Fix build on 6.7 for after QDeferredDeleteEvent export reversion
# https://github.com/KDAB/GammaRay/pull/957
(fetchpatch {
url = "https://github.com/KDAB/GammaRay/commit/cf8f77f0d5e881368240a0647368757abdd6334e.patch";
hash = "sha256-qbaB9eTJiogpszj6KY1PgfZtp5leUaQemmKGGhLxZb4=";
})
# Fix Qt 6.6+ build
# https://github.com/KDAB/GammaRay/issues/827
(fetchpatch {
url = "https://github.com/KDAB/GammaRay/commit/9978a0a7c4f4d122477f4f14755e55196365d8ce.patch";
hash = "sha256-l7GsHNDcT2gAL5zCSLSuLD+Pkr72VnKtiC1WOvTlxqU=";
})
];
nativeBuildInputs = [
cmake
pkg-config
qttools
wrapQtAppsHook
];
buildInputs = [
qtbase
qtwayland
qtsvg
qt3d
qtdeclarative
qtconnectivity
qtlocation
qtscxml
qtwebengine
kdePackages.kcoreaddons
wayland
elfutils
libbfd
];
cmakeFlags = [
# FIXME: build failed when enable BUILD_DOCS with qtwayland in buildInputs
"-DGAMMARAY_BUILD_DOCS=OFF"
];
meta = with lib; {
description = "Software introspection tool for Qt applications developed by KDAB";
homepage = "https://github.com/KDAB/GammaRay";