depot/third_party/nixpkgs/pkgs/by-name/xa/xautocfg/package.nix

38 lines
777 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
libX11,
libXi,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xautocfg";
version = "1.2";
src = fetchFromGitHub {
owner = "SFTtech";
repo = "xautocfg";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-NxfuBknNRicmEAPBeMaNb57gpM0y0t+JmNMKpSNzlQM=";
};
buildInputs = [
libX11
libXi
];
makeFlags = [
"PREFIX=${placeholder "out"}"
"MANPREFIX=${placeholder "out"}"
];
meta = {
homepage = "https://github.com/SFTtech/xautocfg";
description = "Automatic keyboard repeat rate configuration for new keyboards";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ jceb ];
mainProgram = "xautocfg";
platforms = lib.platforms.linux;
};
})