depot/pkgs/desktops/deepin/library/dde-qt-dbus-factory/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

51 lines
1.1 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
libsForQt5,
python3,
dtkcore,
}:
stdenv.mkDerivation rec {
pname = "dde-qt-dbus-factory";
version = "6.0.1";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
hash = "sha256-B9SrApvjTIW2g9VayrmCsWXS9Gkg55Voi1kPP+KYp3s=";
};
nativeBuildInputs = [
libsForQt5.qmake
libsForQt5.wrapQtAppsHook
python3
];
buildInputs = [
libsForQt5.qtbase
dtkcore
];
qmakeFlags = [
"INSTALL_ROOT=${placeholder "out"}"
"LIB_INSTALL_DIR=${placeholder "out"}/lib"
];
postPatch = ''
substituteInPlace libdframeworkdbus/libdframeworkdbus.pro \
--replace-fail "/usr" ""
substituteInPlace libdframeworkdbus/DFrameworkdbusConfig.in \
--replace-fail "/usr/include" "$out/include"
'';
meta = {
description = "Repo of auto-generated D-Bus source code which DDE used";
homepage = "https://github.com/linuxdeepin/dde-qt-dbus-factory";
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
maintainers = lib.teams.deepin.members;
};
}