Files
nixpkgs/pkgs/by-name/ha/hax11/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

55 lines
1.1 KiB
Nix

{
lib,
multiStdenv,
fetchFromGitHub,
libX11,
libXxf86vm,
xorgproto,
unstableGitUpdater,
}:
multiStdenv.mkDerivation (finalAttrs: {
pname = "hax11";
version = "0-unstable-2025-04-29";
src = fetchFromGitHub {
owner = "CyberShadow";
repo = "hax11";
rev = "d82bf3ba655c1a823b77a9a47f30657c9a32c1fe";
hash = "sha256-Ykl/RdGRHmM+xko5a9tR2G1yFaY/Xq+BEoeXaLd39RQ=";
};
outputs = [
"out"
"doc"
];
buildInputs = [
libX11
libXxf86vm
xorgproto
];
installPhase = ''
runHook preInstall
install -Dm644 lib32/hax11.so -t $out/lib32/
install -Dm644 lib64/hax11.so -t $out/lib64/
install -Dm644 README.md -t $doc/share/doc/hax11/
runHook postInstall
'';
passthru = {
updateScript = unstableGitUpdater { };
};
meta = {
homepage = "https://github.com/CyberShadow/hax11";
description = "Hackbrary to Hook and Augment X11 protocol calls";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ cybershadow ];
platforms = lib.platforms.linux;
};
})