nixpkgs/pkgs/data/themes/adwaita-qt/default.nix

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

67 lines
1.3 KiB
Nix
Raw Normal View History

2022-10-23 13:46:02 +00:00
{ stdenv
2021-05-19 10:47:55 +00:00
, lib
, fetchFromGitHub
, nix-update-script
, cmake
, ninja
, qtbase
2022-10-23 13:46:02 +00:00
, qtwayland
2021-05-19 10:47:55 +00:00
, qt5
, xorg
2022-10-23 13:46:02 +00:00
, useQt6 ? false
2021-05-19 10:47:55 +00:00
}:
2018-09-25 02:14:37 +00:00
2022-10-23 13:46:02 +00:00
stdenv.mkDerivation rec {
2018-09-25 02:14:37 +00:00
pname = "adwaita-qt";
version = "1.4.2";
2018-09-25 02:14:37 +00:00
outputs = [ "out" "dev" ];
2018-09-25 02:14:37 +00:00
src = fetchFromGitHub {
owner = "FedoraQt";
repo = pname;
rev = version;
sha256 = "sha256-K/+SL52C+M2OC4NL+mhBnm/9BwH0KNNTGIDmPwuUwkM=";
2018-09-25 02:14:37 +00:00
};
nativeBuildInputs = [
cmake
ninja
];
buildInputs = [
qtbase
2021-05-19 10:47:55 +00:00
] ++ lib.optionals stdenv.isLinux [
xorg.libxcb
2022-10-23 13:46:02 +00:00
] ++ lib.optionals (!useQt6) [
qt5.qtx11extras
] ++ lib.optionals useQt6 [
qtwayland
];
# Qt setup hook complains about missing `wrapQtAppsHook` otherwise.
dontWrapQtApps = true;
cmakeFlags = lib.optionals useQt6 [
"-DUSE_QT6=true"
2018-09-25 02:14:37 +00:00
];
postPatch = ''
# Fix plugin dir
2021-05-19 10:47:55 +00:00
substituteInPlace src/style/CMakeLists.txt \
2018-09-25 02:14:37 +00:00
--replace "DESTINATION \"\''${QT_PLUGINS_DIR}/styles" "DESTINATION \"$qtPluginPrefix/styles"
'';
2019-12-22 23:19:30 +00:00
passthru = {
updateScript = nix-update-script { };
2019-12-22 23:19:30 +00:00
};
meta = with lib; {
2018-09-25 02:14:37 +00:00
description = "A style to bend Qt applications to look like they belong into GNOME Shell";
homepage = "https://github.com/FedoraQt/adwaita-qt";
2018-09-25 02:14:37 +00:00
license = licenses.gpl2Plus;
maintainers = teams.gnome.members ++ (with maintainers; [ ]);
2021-05-19 10:47:55 +00:00
platforms = platforms.all;
2018-09-25 02:14:37 +00:00
};
}