nixpkgs/pkgs/desktops/lxqt/lxqt-build-tools/default.nix

35 lines
1 KiB
Nix
Raw Normal View History

{ lib, mkDerivation, fetchFromGitHub, cmake, pkgconfig, pcre, qtbase, glib }:
2017-02-19 11:45:37 +01:00
mkDerivation rec {
2019-02-06 00:13:17 +01:00
pname = "lxqt-build-tools";
version = "0.6.0";
2017-02-19 11:45:37 +01:00
src = fetchFromGitHub {
owner = "lxqt";
2019-02-06 00:13:17 +01:00
repo = pname;
2017-02-19 11:45:37 +01:00
rev = version;
2019-02-06 00:13:17 +01:00
sha256 = "0i7m9s4g5rsw28vclc9nh0zcapx85cqfwxkx7rrw7wa12svy7pm2";
2017-02-19 11:45:37 +01:00
};
nativeBuildInputs = [ cmake pkgconfig setupHook ];
2018-06-20 23:49:24 +02:00
2019-02-06 00:13:17 +01:00
buildInputs = [ qtbase glib pcre ];
2017-11-02 02:52:41 +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 11:45:37 +01:00
meta = with lib; {
2017-02-19 11:45:37 +01:00
description = "Various packaging tools and scripts for LXQt applications";
homepage = https://github.com/lxqt/lxqt-build-tools;
2017-02-19 11:45:37 +01:00
license = licenses.lgpl21;
platforms = with platforms; unix;
maintainers = with maintainers; [ romildo ];
};
}