1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-19 02:59:10 -04:00
nixpkgs/pkgs/desktops/lxqt/lxqt-notificationd/default.nix
2019-02-26 20:00:14 -03:00

47 lines
1.1 KiB
Nix

{ stdenv, fetchFromGitHub, cmake, lxqt-build-tools, qtbase, qttools, qtsvg, kwindowsystem, liblxqt, libqtxdg, qtx11extras }:
stdenv.mkDerivation rec {
pname = "lxqt-notificationd";
version = "0.14.1";
src = fetchFromGitHub {
owner = "lxqt";
repo = pname;
rev = version;
sha256 = "1ihaf2i361j2snyy6kg8ccpfnc8hppvacmxjqzb1lpyaf1ajd139";
};
nativeBuildInputs = [
cmake
lxqt-build-tools
];
postPatch = ''
substituteInPlace autostart/CMakeLists.txt \
--replace "DESTINATION \"\''${LXQT_ETC_XDG_DIR}" "DESTINATION \"etc/xdg"
for f in {config,src}/CMakeLists.txt; do
substituteInPlace $f \
--replace "\''${LXQT_TRANSLATIONS_DIR}" "''${out}/share/lxqt/translations"
done
'';
buildInputs = [
qtbase
qttools
qtsvg
kwindowsystem
liblxqt
libqtxdg
qtx11extras
];
meta = with stdenv.lib; {
description = "The LXQt notification daemon";
homepage = https://github.com/lxqt/lxqt-notificationd;
license = licenses.lgpl21;
platforms = with platforms; unix;
maintainers = with maintainers; [ romildo ];
};
}