3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/lxqt/lxqt-build-tools/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

72 lines
1.7 KiB
Nix
Raw Normal View History

{ lib
2021-05-17 20:21:50 +01:00
, stdenv
, mkDerivation
, fetchFromGitHub
, cmake
2021-01-17 02:21:50 +00:00
, pkg-config
, pcre
, qtbase
, glib
2021-04-16 21:32:41 +01:00
, perl
, lxqtUpdateScript
}:
2017-02-19 10:45:37 +00:00
mkDerivation rec {
2019-02-05 23:13:17 +00:00
pname = "lxqt-build-tools";
version = "0.11.0";
2017-02-19 10:45:37 +00:00
src = fetchFromGitHub {
owner = "lxqt";
2019-02-05 23:13:17 +00:00
repo = pname;
2017-02-19 10:45:37 +00:00
rev = version;
sha256 = "vzppKTDwADBG5pOaluT858cWCKFFRaSbHz2Qhe6799E=";
2017-02-19 10:45:37 +00:00
};
2021-05-17 20:21:50 +01:00
postPatch = ''
# Nix clang on darwin identifies as 'Clang', not 'AppleClang'
# Without this, dependants fail to link.
2021-05-17 20:21:50 +01:00
substituteInPlace cmake/modules/LXQtCompilerSettings.cmake \
--replace AppleClang Clang
# GLib 2.72 moved the file from gio-unix-2.0 to gio-2.0.
# https://github.com/lxqt/lxqt-build-tools/pull/74
substituteInPlace cmake/find-modules/FindGLIB.cmake \
--replace gio/gunixconnection.h gio/gunixfdlist.h
2021-05-17 20:21:50 +01:00
'';
nativeBuildInputs = [
cmake
2021-01-17 02:21:50 +00:00
pkg-config
setupHook
];
2018-06-20 22:49:24 +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
];
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
passthru.updateScript = lxqtUpdateScript { inherit pname version src; };
meta = with lib; {
homepage = "https://github.com/lxqt/lxqt-build-tools";
description = "Various packaging tools and scripts for LXQt applications";
license = licenses.lgpl21Plus;
2017-02-19 10:45:37 +00:00
platforms = with platforms; unix;
2022-04-14 14:52:15 +01:00
maintainers = teams.lxqt.members;
2017-02-19 10:45:37 +00:00
};
}