nixpkgs/pkgs/data/themes/qtcurve/default.nix

63 lines
1.8 KiB
Nix
Raw Normal View History

2020-02-15 10:49:17 +00:00
{ stdenv, fetchFromGitHub, cmake, extra-cmake-modules, pkgconfig, mkDerivation
2018-10-28 19:18:57 +00:00
, gtk2, qtbase, qtsvg, qtx11extras # Toolkit dependencies
, karchive, kconfig, kconfigwidgets, kio, frameworkintegration
, kguiaddons, ki18n, kwindowsystem, kdelibs4support, kiconthemes
, libpthreadstubs, pcre, libXdmcp, libX11, libXau # X11 dependencies
, fetchpatch
2018-10-28 19:18:57 +00:00
}:
let
2020-02-15 10:49:17 +00:00
version = "1.9.1";
2019-08-13 16:43:57 +00:00
in mkDerivation {
2019-08-13 21:52:01 +00:00
pname = "qtcurve";
inherit version;
2020-02-15 10:49:17 +00:00
src = fetchFromGitHub {
owner = "KDE";
repo = "qtcurve";
rev = version;
sha256 = "0sm1fza68mwl9cvid4h2lsyxq5svia86l5v9wqk268lmx16mbzsw";
2018-10-28 19:18:57 +00:00
};
patches = [
(fetchpatch {
url = "https://github.com/KDE/qtcurve/commit/ee2228ea2f18ac5da9b434ee6089381df815aa94.patch";
sha256 = "1vz5frsrsps93awn84gk8d7injrqfcyhc1rji6s0gsgsp5z9sl34";
})
];
2018-10-28 19:18:57 +00:00
enableParallelBuilding = true;
nativeBuildInputs = [ cmake extra-cmake-modules pkgconfig ];
buildInputs = [
gtk2
qtbase qtsvg qtx11extras
karchive kconfig kconfigwidgets kio kiconthemes kguiaddons ki18n
kwindowsystem kdelibs4support frameworkintegration
libpthreadstubs
pcre
libXdmcp libX11 libXau
];
preConfigure = ''
for i in qt5/CMakeLists.txt qt5/config/CMakeLists.txt
do
substituteInPlace $i \
--replace "{_Qt5_PLUGIN_INSTALL_DIR}" "{KDE_INSTALL_QTPLUGINDIR}"
done
substituteInPlace CMakeLists.txt \
--replace \$\{GTK2_PREFIX\} $out
substituteInPlace gtk2/style/CMakeLists.txt \
--replace \$\{GTK2_LIBDIR\} $out/lib
patchShebangs tools/gen-version.sh
'';
meta = with stdenv.lib; {
homepage = "https://github.com/QtCurve/qtcurve";
2018-10-28 19:18:57 +00:00
description = "Widget styles for Qt5/Plasma 5 and gtk2";
platforms = platforms.linux;
license = licenses.lgpl21Plus;
maintainers = [ maintainers.gnidorah ];
};
}