nixpkgs/pkgs/tools/misc/qt5ct/default.nix

41 lines
1.0 KiB
Nix
Raw Normal View History

2019-07-29 05:04:36 +00:00
{ mkDerivation, lib, fetchurl, qtbase, qttools, qmake }:
2016-07-19 03:44:46 +00:00
2019-07-29 05:04:36 +00:00
let inherit (lib) getDev; in
2017-10-24 11:46:29 +00:00
2019-07-29 05:04:36 +00:00
mkDerivation rec {
pname = "qt5ct";
version = "0.39";
2016-07-19 03:44:46 +00:00
src = fetchurl {
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.bz2";
sha256 = "069y6c17gfics8rz3rdsn2x2hb39m4qka08ygwpxa8gqppffqs9p";
2016-07-19 03:44:46 +00:00
};
2017-11-26 22:30:21 +00:00
nativeBuildInputs = [ qmake qttools ];
2016-07-19 03:44:46 +00:00
2017-11-26 22:30:21 +00:00
buildInputs = [ qtbase ];
2017-05-26 12:23:47 +00:00
# Wayland needs to know the desktop file name in order to show the app name and icon.
# Patch has been upstreamed and can be removed in the future.
# See: https://sourceforge.net/p/qt5ct/code/549/
patches = [ ./wayland.patch ];
2017-11-26 22:30:21 +00:00
qmakeFlags = [
"LRELEASE_EXECUTABLE=${getDev qttools}/bin/lrelease"
];
2017-10-24 11:46:29 +00:00
2016-07-19 03:44:46 +00:00
preConfigure = ''
2017-11-26 22:30:21 +00:00
qmakeFlags+=" PLUGINDIR=$out/$qtPluginPrefix"
2016-07-19 03:44:46 +00:00
'';
2017-11-26 22:30:21 +00:00
enableParallelBuilding = true;
2019-07-29 05:04:36 +00:00
meta = with lib; {
2016-07-19 03:44:46 +00:00
description = "Qt5 Configuration Tool";
homepage = https://www.opendesktop.org/content/show.php?content=168066;
platforms = platforms.linux;
license = licenses.bsd2;
maintainers = with maintainers; [ ralith ];
};
}