2020-04-25 18:01:05 +01:00
|
|
|
{ lib
|
2021-05-17 20:21:50 +01:00
|
|
|
, stdenv
|
2020-04-25 18:01:05 +01:00
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2021-01-17 02:21:50 +00:00
|
|
|
, pkg-config
|
2020-04-25 18:01:05 +01:00
|
|
|
, pcre
|
|
|
|
, qtbase
|
|
|
|
, glib
|
2021-04-16 21:32:41 +01:00
|
|
|
, perl
|
2020-04-26 15:53:59 +01:00
|
|
|
, lxqtUpdateScript
|
2020-04-25 18:01:05 +01:00
|
|
|
}:
|
2017-02-19 10:45:37 +00:00
|
|
|
|
2019-07-27 22:05:17 +01:00
|
|
|
mkDerivation rec {
|
2019-02-05 23:13:17 +00:00
|
|
|
pname = "lxqt-build-tools";
|
2021-11-05 17:35:00 +00:00
|
|
|
version = "0.10.0";
|
2017-02-19 10:45:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-05-22 02:24:38 +01:00
|
|
|
owner = "lxqt";
|
2019-02-05 23:13:17 +00:00
|
|
|
repo = pname;
|
2017-02-19 10:45:37 +00:00
|
|
|
rev = version;
|
2021-11-05 17:35:00 +00:00
|
|
|
sha256 = "1hb04zgpalxv6da3myf1dxsbjix15dczzfq8a24g5dg2zfhwpx21";
|
2017-02-19 10:45:37 +00:00
|
|
|
};
|
|
|
|
|
2021-05-17 20:21:50 +01:00
|
|
|
# Nix clang on darwin identifies as 'Clang', not 'AppleClang'
|
|
|
|
# Without this, dependants fail to link.
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace cmake/modules/LXQtCompilerSettings.cmake \
|
|
|
|
--replace AppleClang Clang
|
|
|
|
'';
|
|
|
|
|
2020-04-25 18:01:05 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2020-04-25 18:01:05 +01:00
|
|
|
setupHook
|
|
|
|
];
|
2018-06-20 22:49:24 +01:00
|
|
|
|
2020-04-25 18:01:05 +01:00
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
glib
|
|
|
|
pcre
|
|
|
|
];
|
2017-11-02 01:52:41 +00:00
|
|
|
|
2021-04-16 21:32:41 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
perl # needed by LXQtTranslateDesktop.cmake
|
|
|
|
];
|
|
|
|
|
2019-08-22 05:42:28 +01:00
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
|
|
|
|
# We're dependent on this macro doing add_definitions in most places
|
|
|
|
# But we have the setup-hook to set the values.
|
|
|
|
postInstall = ''
|
|
|
|
rm $out/share/cmake/lxqt-build-tools/modules/LXQtConfigVars.cmake
|
|
|
|
cp ${./LXQtConfigVars.cmake} $out/share/cmake/lxqt-build-tools/modules/LXQtConfigVars.cmake
|
|
|
|
'';
|
2017-02-19 10:45:37 +00:00
|
|
|
|
2020-04-26 15:53:59 +01:00
|
|
|
passthru.updateScript = lxqtUpdateScript { inherit pname version src; };
|
|
|
|
|
2019-07-27 22:05:17 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/lxqt/lxqt-build-tools";
|
2021-02-08 14:41:52 +00:00
|
|
|
description = "Various packaging tools and scripts for LXQt applications";
|
|
|
|
license = licenses.lgpl21Plus;
|
2017-02-19 10:45:37 +00:00
|
|
|
platforms = with platforms; unix;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|