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

37 lines
863 B
Nix
Raw Normal View History

{ mkDerivation, lib, fetchFromGitHub, cmake, ninja, qtbase }:
2018-09-25 03:14:37 +01:00
mkDerivation rec {
2018-09-25 03:14:37 +01:00
pname = "adwaita-qt";
version = "1.1.0";
2018-09-25 03:14:37 +01:00
src = fetchFromGitHub {
owner = "FedoraQt";
repo = pname;
rev = version;
sha256 = "1jlh4l3sxiwglgx6h4aqi364gr4xipmn09bk88cp997r9sm8jcp9";
2018-09-25 03:14:37 +01:00
};
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; {
2018-09-25 03:14:37 +01:00
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;
};
}