depot/third_party/nixpkgs/pkgs/desktops/lxqt/compton-conf/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

51 lines
1,017 B
Nix

{ stdenv
, lib
, mkDerivation
, fetchFromGitHub
, cmake
, pkg-config
, qtbase
, qttools
, lxqt
, libconfig
}:
mkDerivation rec {
pname = "compton-conf";
version = "0.16.0";
src = fetchFromGitHub {
owner = "lxqt";
repo = pname;
rev = version;
sha256 = "0gcvyn7aabdz5yj0jzv14hlgjgbm8d9ib5r73i842f0hv4cv9m0q";
};
nativeBuildInputs = [
cmake
pkg-config
lxqt.lxqt-build-tools
];
buildInputs = [
qtbase
qttools
libconfig
];
preConfigure = ''
substituteInPlace autostart/CMakeLists.txt \
--replace "DESTINATION \"\''${LXQT_ETC_XDG_DIR}" "DESTINATION \"etc/xdg" \
'';
passthru.updateScript = lxqt.lxqtUpdateScript { inherit pname version src; };
meta = with lib; {
broken = stdenv.isDarwin;
homepage = "https://github.com/lxqt/compton-conf";
description = "GUI configuration tool for compton X composite manager";
license = licenses.lgpl21Plus;
platforms = with platforms; unix;
maintainers = teams.lxqt.members;
};
}