2020-04-25 10:01:05 -07:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkgconfig
|
|
|
|
, pcre
|
|
|
|
, qtbase
|
|
|
|
, glib
|
2020-04-26 07:53:59 -07:00
|
|
|
, lxqtUpdateScript
|
2020-04-25 10:01:05 -07:00
|
|
|
}:
|
2017-02-19 02:45:37 -08:00
|
|
|
|
2019-07-27 14:05:17 -07:00
|
|
|
mkDerivation rec {
|
2019-02-05 15:13:17 -08:00
|
|
|
pname = "lxqt-build-tools";
|
2020-12-15 14:40:42 -08:00
|
|
|
version = "0.8.0";
|
2017-02-19 02:45:37 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-05-21 18:24:38 -07:00
|
|
|
owner = "lxqt";
|
2019-02-05 15:13:17 -08:00
|
|
|
repo = pname;
|
2017-02-19 02:45:37 -08:00
|
|
|
rev = version;
|
2020-12-15 14:40:42 -08:00
|
|
|
sha256 = "1wf6mhcfgk64isy7bk018szlm18xa3hjjnmhpcy2whnnjfq0jal6";
|
2017-02-19 02:45:37 -08:00
|
|
|
};
|
|
|
|
|
2020-04-25 10:01:05 -07:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkgconfig
|
|
|
|
setupHook
|
|
|
|
];
|
2018-06-20 14:49:24 -07:00
|
|
|
|
2020-04-25 10:01:05 -07:00
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
glib
|
|
|
|
pcre
|
|
|
|
];
|
2017-11-01 18:52:41 -07:00
|
|
|
|
2019-08-21 21:42:28 -07: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 02:45:37 -08:00
|
|
|
|
2020-04-26 07:53:59 -07:00
|
|
|
passthru.updateScript = lxqtUpdateScript { inherit pname version src; };
|
|
|
|
|
2019-07-27 14:05:17 -07:00
|
|
|
meta = with lib; {
|
2017-02-19 02:45:37 -08:00
|
|
|
description = "Various packaging tools and scripts for LXQt applications";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/lxqt/lxqt-build-tools";
|
2017-02-19 02:45:37 -08:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = with platforms; unix;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|