3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/misc/themes/adwaita-qt/default.nix
worldofpeace e62be3ebf0 adwaita-qt: 1.0 -> 1.1.0
Adds support for the new refreshed Adwaita theme.

https://github.com/FedoraQt/adwaita-qt/releases/tag/1.1.0
2019-08-05 12:26:27 -04:00

37 lines
863 B
Nix

{ mkDerivation, lib, fetchFromGitHub, cmake, ninja, qtbase }:
mkDerivation rec {
pname = "adwaita-qt";
version = "1.1.0";
src = fetchFromGitHub {
owner = "FedoraQt";
repo = pname;
rev = version;
sha256 = "1jlh4l3sxiwglgx6h4aqi364gr4xipmn09bk88cp997r9sm8jcp9";
};
nativeBuildInputs = [
cmake
ninja
];
buildInputs = [
qtbase
];
postPatch = ''
# Fix plugin dir
substituteInPlace style/CMakeLists.txt \
--replace "DESTINATION \"\''${QT_PLUGINS_DIR}/styles" "DESTINATION \"$qtPluginPrefix/styles"
'';
meta = with lib; {
description = "A style to bend Qt applications to look like they belong into GNOME Shell";
homepage = https://github.com/FedoraQt/adwaita-qt;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ worldofpeace ];
platforms = platforms.linux;
};
}