xinput: refactor & move to pkgs/by-name from xorg namespace
relevant changes: - switch to GitLab source instead of release tarball
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitLab,
|
||||
autoreconfHook,
|
||||
pkg-config,
|
||||
util-macros,
|
||||
xorgproto,
|
||||
libx11,
|
||||
libxext,
|
||||
libxi,
|
||||
libxinerama,
|
||||
libxrandr,
|
||||
nix-update-script,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xinput";
|
||||
version = "1.6.4";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.freedesktop.org";
|
||||
group = "xorg";
|
||||
owner = "app";
|
||||
repo = "xinput";
|
||||
tag = "xinput-${finalAttrs.version}";
|
||||
hash = "sha256-EsSytLzwAHMwseW4pD/c+/J1MaCWPsE7RPoMIwT96yk=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
pkg-config
|
||||
util-macros
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
xorgproto
|
||||
libx11
|
||||
libxext
|
||||
libxi
|
||||
libxinerama
|
||||
libxrandr
|
||||
];
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script { extraArgs = [ "--version-regex=xinput-(.*)" ]; };
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Utility to configure and test XInput devices";
|
||||
homepage = "https://gitlab.freedesktop.org/xorg/app/xinput";
|
||||
license = with lib.licenses; [
|
||||
hpndSellVariant
|
||||
mit
|
||||
];
|
||||
mainProgram = "xinput";
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
@@ -135,6 +135,7 @@
|
||||
xgc,
|
||||
xhost,
|
||||
xinit,
|
||||
xinput,
|
||||
xkbevd,
|
||||
xkbprint,
|
||||
xkbutils,
|
||||
@@ -223,6 +224,7 @@ self: with self; {
|
||||
xgc
|
||||
xhost
|
||||
xinit
|
||||
xinput
|
||||
xkbevd
|
||||
xkbprint
|
||||
xkbutils
|
||||
@@ -2126,50 +2128,6 @@ self: with self; {
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
xinput = callPackage (
|
||||
{
|
||||
stdenv,
|
||||
pkg-config,
|
||||
fetchurl,
|
||||
xorgproto,
|
||||
libX11,
|
||||
libXext,
|
||||
libXi,
|
||||
libXinerama,
|
||||
libXrandr,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xinput";
|
||||
version = "1.6.4";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/app/xinput-1.6.4.tar.xz";
|
||||
sha256 = "1j2pf28c54apr56v1fmvprp657n6x4sdrv8f24rx3138cl6x015d";
|
||||
};
|
||||
hardeningDisable = [
|
||||
"bindnow"
|
||||
"relro"
|
||||
];
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
xorgproto
|
||||
libX11
|
||||
libXext
|
||||
libXi
|
||||
libXinerama
|
||||
libXrandr
|
||||
];
|
||||
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
meta = {
|
||||
pkgConfigModules = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
xkbcomp = callPackage (
|
||||
{
|
||||
|
||||
@@ -467,6 +467,7 @@ print OUT <<EOF;
|
||||
xgc,
|
||||
xhost,
|
||||
xinit,
|
||||
xinput,
|
||||
xkbevd,
|
||||
xkbprint,
|
||||
xkbutils,
|
||||
@@ -555,6 +556,7 @@ self: with self; {
|
||||
xgc
|
||||
xhost
|
||||
xinit
|
||||
xinput
|
||||
xkbevd
|
||||
xkbprint
|
||||
xkbutils
|
||||
|
||||
@@ -385,8 +385,6 @@ self: super:
|
||||
];
|
||||
});
|
||||
|
||||
xinput = addMainProgram super.xinput { };
|
||||
|
||||
xwd = addMainProgram super.xwd { };
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
mirror://xorg/individual/app/xinput-1.6.4.tar.xz
|
||||
mirror://xorg/individual/app/xkbcomp-1.5.0.tar.xz
|
||||
mirror://xorg/individual/app/xtrap-1.0.3.tar.bz2
|
||||
mirror://xorg/individual/app/xwd-1.0.9.tar.xz
|
||||
|
||||
Reference in New Issue
Block a user