567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
49 lines
845 B
Nix
49 lines
845 B
Nix
{
|
|
mkDerivation,
|
|
lib,
|
|
fetchurl,
|
|
qtbase,
|
|
qtsvg,
|
|
qttools,
|
|
qmake,
|
|
}:
|
|
|
|
let
|
|
inherit (lib) getDev;
|
|
in
|
|
|
|
mkDerivation rec {
|
|
pname = "qt5ct";
|
|
version = "1.9";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/qt5ct/qt5ct-${version}.tar.bz2";
|
|
sha256 = "sha256-3BDmk51CO5JZgc5n/rsaAVtvYcAiqcx+bIte/qRYi/8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
qmake
|
|
qttools
|
|
];
|
|
|
|
buildInputs = [
|
|
qtbase
|
|
qtsvg
|
|
];
|
|
|
|
qmakeFlags = [
|
|
"LRELEASE_EXECUTABLE=${getDev qttools}/bin/lrelease"
|
|
"PLUGINDIR=${placeholder "out"}/${qtbase.qtPluginPrefix}"
|
|
"LIBDIR=${placeholder "out"}/lib"
|
|
];
|
|
|
|
meta = {
|
|
description = "Qt5 Configuration Tool";
|
|
homepage = "https://sourceforge.net/projects/qt5ct/";
|
|
platforms = lib.platforms.linux;
|
|
license = lib.licenses.bsd2;
|
|
maintainers = [ ];
|
|
mainProgram = "qt5ct";
|
|
};
|
|
}
|