mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
f8c4a98e8e
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
68 lines
1.2 KiB
Nix
68 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;
|
|
};
|
|
}
|