567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
73 lines
1.3 KiB
Nix
73 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
pkg-config,
|
|
qttools,
|
|
wrapQtAppsHook,
|
|
qtbase,
|
|
qtwayland,
|
|
qtsvg,
|
|
qt3d,
|
|
qtdeclarative,
|
|
qtconnectivity,
|
|
qtlocation,
|
|
qtscxml,
|
|
qtwebengine,
|
|
kdePackages,
|
|
wayland,
|
|
elfutils,
|
|
libbfd,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gammaray";
|
|
version = "3.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "KDAB";
|
|
repo = pname;
|
|
tag = "v${version}";
|
|
hash = "sha256-CJKb7H77PjPwCGW4fqLSJw1mhSweuFYlDE/7RyVDcT0=";
|
|
};
|
|
|
|
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 = {
|
|
description = "Software introspection tool for Qt applications developed by KDAB";
|
|
homepage = "https://github.com/KDAB/GammaRay";
|
|
changelog = "https://github.com/KDAB/GammaRay/releases/tag/${src.tag}";
|
|
license = lib.licenses.gpl2Plus;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = with lib.maintainers; [ wineee ];
|
|
mainProgram = "gammaray";
|
|
};
|
|
}
|