Files
nixpkgs/pkgs/by-name/lx/lxrandr/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

62 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
intltool,
gtk2,
libX11,
xrandr,
withGtk3 ? false,
gtk3,
autoreconfHook,
libxslt,
docbook_xsl,
docbook_xml_dtd_412,
libxml2,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "lxrandr";
version = "0.3.3";
src = fetchFromGitHub {
owner = "lxde";
repo = "lxrandr";
tag = finalAttrs.version;
hash = "sha256-EGUnvV1FqQUJkjGwxgVecXOohAu8Qa8Prgk6xZfJBe4=";
};
configureFlags = [
"--enable-man"
]
++ lib.optional withGtk3 "--enable-gtk3";
nativeBuildInputs = [
autoreconfHook
pkg-config
intltool
libxslt
libxml2
docbook_xml_dtd_412
docbook_xsl
];
patches = [ ./respect-xml-catalog-files-var.patch ];
buildInputs = [
libX11
xrandr
(if withGtk3 then gtk3 else gtk2)
];
meta = {
description = "Standard screen manager of LXDE";
mainProgram = "lxrandr";
homepage = "https://lxde.org/";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ rawkode ];
platforms = lib.platforms.linux;
};
})