depot/third_party/nixpkgs/pkgs/desktops/lxqt/obconf-qt/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

67 lines
1.2 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, libSM
, libXdmcp
, libpthreadstubs
, lxqt-build-tools
, openbox
, pcre
, pkg-config
, qtbase
, qttools
, qtwayland
, wrapQtAppsHook
, gitUpdater
}:
stdenv.mkDerivation rec {
pname = "obconf-qt";
version = "0.16.4";
src = fetchFromGitHub {
owner = "lxqt";
repo = pname;
rev = version;
hash = "sha256-uF90v56BthEts/Jy+a6kH2b1QFHCtft4ZLxyi/K/Vnc=";
};
nativeBuildInputs = [
cmake
pkg-config
lxqt-build-tools
qttools
wrapQtAppsHook
];
buildInputs = [
libSM
libXdmcp
libpthreadstubs
openbox
pcre
qtbase
qtwayland
];
patches = [
(fetchpatch {
name = "obconf-qt.port-to-qt6";
url = "https://patch-diff.githubusercontent.com/raw/lxqt/obconf-qt/pull/230.patch";
hash = "sha256-XLt8+/4oMXeli07qTAGc73U9RD1fGYqxTX0QdhuXpII=";
})
];
passthru.updateScript = gitUpdater { };
meta = with lib; {
homepage = "https://github.com/lxqt/obconf-qt";
description = "Qt port of obconf, the Openbox configuration tool";
mainProgram = "obconf-qt";
license = licenses.gpl2Plus;
platforms = with platforms; unix;
maintainers = teams.lxqt.members;
};
}