nixpkgs/pkgs/desktops/deepin/library/dde-qt-dbus-factory/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
1.0 KiB
Nix
Raw Normal View History

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