Files
nixpkgs/pkgs/by-name/xc/xcape/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

56 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
libX11,
libXtst,
xorgproto,
libXi,
}:
stdenv.mkDerivation {
pname = "xcape";
version = "unstable-2018-03-01";
src = fetchFromGitHub {
owner = "alols";
repo = "xcape";
rev = "a34d6bae27bbd55506852f5ed3c27045a3c0bd9e";
sha256 = "04grs4w9kpfzz25mqw82zdiy51g0w355gpn5b170p7ha5972ykc8";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libX11
libXtst
xorgproto
libXi
];
makeFlags = [
"PREFIX=$(out)"
"MANDIR=/share/man/man1"
];
postInstall = "install -Dm444 --target-directory $out/share/doc README.md";
meta = with lib; {
description = "Utility to configure modifier keys to act as other keys";
longDescription = ''
xcape allows you to use a modifier key as another key when
pressed and released on its own. Note that it is slightly
slower than pressing the original key, because the pressed event
does not occur until the key is released. The default behaviour
is to generate the Escape key when Left Control is pressed and
released on its own.
'';
homepage = "https://github.com/alols/xcape";
license = licenses.gpl3;
maintainers = with maintainers; [ raskin ];
platforms = platforms.linux;
mainProgram = "xcape";
};
}