Files
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

56 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
fetchpatch2,
pkg-config,
xorg,
boost,
gtest,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xlayoutdisplay";
version = "1.5.0";
src = fetchFromGitHub {
owner = "alex-courtis";
repo = "xlayoutdisplay";
rev = "v${finalAttrs.version}";
hash = "sha256-A37jFhVTW/3QNEf776Oi3ViRK+ebOPRTsEQqdmNhA7E=";
};
patches = [
# https://github.com/alex-courtis/xlayoutdisplay/pull/34
(fetchpatch2 {
name = "cpp-version.patch";
url = "https://github.com/alex-courtis/xlayoutdisplay/commit/56983b45070edde78cc816d9cff4111315e94a7a.patch";
hash = "sha256-zd28Nkw8Kmm20zGT6wvdBHcHfE4p+RFotUO9zJwPQMc=";
})
];
nativeBuildInputs = [ pkg-config ];
buildInputs = with xorg; [
libX11
libXrandr
libXcursor
boost
];
nativeCheckInputs = [ gtest ];
doCheck = true;
checkTarget = "gtest";
makeFlags = [ "PREFIX=${placeholder "out"}" ];
enableParallelBuilding = true;
meta = {
description = "Detects and arranges linux display outputs, using XRandR for detection and xrandr for arrangement";
homepage = "https://github.com/alex-courtis/xlayoutdisplay";
maintainers = with lib.maintainers; [ dtzWill ];
license = lib.licenses.asl20;
platforms = lib.platforms.linux;
mainProgram = "xlayoutdisplay";
};
})