From b99389f02dbd5336605e6f02701bb8b66124aab5 Mon Sep 17 00:00:00 2001 From: Jan Christoph Ebersbach Date: Sat, 30 Nov 2024 16:25:53 +0100 Subject: [PATCH] xautocfg: init at 1.2 (#335733) Co-authored-by: Yohann Boniface Co-authored-by: Arne Keller <2012gdwu+github@posteo.de> Co-authored-by: Aleksana --- pkgs/by-name/xa/xautocfg/package.nix | 38 ++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pkgs/by-name/xa/xautocfg/package.nix diff --git a/pkgs/by-name/xa/xautocfg/package.nix b/pkgs/by-name/xa/xautocfg/package.nix new file mode 100644 index 000000000000..3267374cb50b --- /dev/null +++ b/pkgs/by-name/xa/xautocfg/package.nix @@ -0,0 +1,38 @@ +{ + 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; + }; +})