nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 61 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitLab, 5 autoreconfHook, 6 pkg-config, 7 util-macros, 8 xorgproto, 9 libx11, 10 libxext, 11 libxi, 12 libxinerama, 13 libxrandr, 14 nix-update-script, 15}: 16stdenv.mkDerivation (finalAttrs: { 17 pname = "xinput"; 18 version = "1.6.4"; 19 20 src = fetchFromGitLab { 21 domain = "gitlab.freedesktop.org"; 22 group = "xorg"; 23 owner = "app"; 24 repo = "xinput"; 25 tag = "xinput-${finalAttrs.version}"; 26 hash = "sha256-EsSytLzwAHMwseW4pD/c+/J1MaCWPsE7RPoMIwT96yk="; 27 }; 28 29 strictDeps = true; 30 31 nativeBuildInputs = [ 32 autoreconfHook 33 pkg-config 34 util-macros 35 ]; 36 37 buildInputs = [ 38 xorgproto 39 libx11 40 libxext 41 libxi 42 libxinerama 43 libxrandr 44 ]; 45 46 passthru = { 47 updateScript = nix-update-script { extraArgs = [ "--version-regex=xinput-(.*)" ]; }; 48 }; 49 50 meta = { 51 description = "Utility to configure and test XInput devices"; 52 homepage = "https://gitlab.freedesktop.org/xorg/app/xinput"; 53 license = with lib.licenses; [ 54 hpndSellVariant 55 mit 56 ]; 57 mainProgram = "xinput"; 58 maintainers = [ ]; 59 platforms = lib.platforms.unix; 60 }; 61})