2020-04-25 19:01:05 +02:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2021-01-17 03:21:50 +01:00
|
|
|
, pkg-config
|
2020-04-25 19:01:05 +02:00
|
|
|
, pcre
|
|
|
|
, qtbase
|
|
|
|
, glib
|
2021-04-16 22:32:41 +02:00
|
|
|
, perl
|
2020-04-26 16:53:59 +02:00
|
|
|
, lxqtUpdateScript
|
2020-04-25 19:01:05 +02:00
|
|
|
}:
|
2017-02-19 11:45:37 +01:00
|
|
|
|
2019-07-27 23:05:17 +02:00
|
|
|
mkDerivation rec {
|
2019-02-06 00:13:17 +01:00
|
|
|
pname = "lxqt-build-tools";
|
2021-04-16 22:32:41 +02:00
|
|
|
version = "0.9.0";
|
2017-02-19 11:45:37 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-05-22 03:24:38 +02:00
|
|
|
owner = "lxqt";
|
2019-02-06 00:13:17 +01:00
|
|
|
repo = pname;
|
2017-02-19 11:45:37 +01:00
|
|
|
rev = version;
|
2021-04-16 22:32:41 +02:00
|
|
|
sha256 = "0zhcv6cbdn9fr5lpglz26gzssbxkpi824sgc0g7w3hh1z6nqqf8l";
|
2017-02-19 11:45:37 +01:00
|
|
|
};
|
|
|
|
|
2020-04-25 19:01:05 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
2021-01-17 03:21:50 +01:00
|
|
|
pkg-config
|
2020-04-25 19:01:05 +02:00
|
|
|
setupHook
|
|
|
|
];
|
2018-06-20 23:49:24 +02:00
|
|
|
|
2020-04-25 19:01:05 +02:00
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
glib
|
|
|
|
pcre
|
|
|
|
];
|
2017-11-02 02:52:41 +01:00
|
|
|
|
2021-04-16 22:32:41 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
perl # needed by LXQtTranslateDesktop.cmake
|
|
|
|
];
|
|
|
|
|
2019-08-22 06:42:28 +02: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 11:45:37 +01:00
|
|
|
|
2020-04-26 16:53:59 +02:00
|
|
|
passthru.updateScript = lxqtUpdateScript { inherit pname version src; };
|
|
|
|
|
2019-07-27 23:05:17 +02:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/lxqt/lxqt-build-tools";
|
2021-02-08 15:41:52 +01:00
|
|
|
description = "Various packaging tools and scripts for LXQt applications";
|
|
|
|
license = licenses.lgpl21Plus;
|
2017-02-19 11:45:37 +01:00
|
|
|
platforms = with platforms; unix;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|