xset: refactor and move to pkgs/by-name from xorg namespace
this removes the dependency on libxxf86misc as it doesn't seem to be needed according to nix-check-deps; also builds fine without
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
pkg-config,
|
||||
xorgproto,
|
||||
libx11,
|
||||
libxext,
|
||||
libxmu,
|
||||
writeScript,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xset";
|
||||
version = "1.2.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/app/xset-${finalAttrs.version}.tar.xz";
|
||||
hash = "sha256-n2ktVWNbOGLNY2M7EiKodoDsKDx6jo7W3WmKMUf3Xi8=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
xorgproto
|
||||
libx11
|
||||
libxext
|
||||
libxmu
|
||||
];
|
||||
|
||||
passthru = {
|
||||
updateScript = writeScript "update-${finalAttrs.pname}" ''
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p common-updater-scripts
|
||||
version="$(list-directory-versions --pname ${finalAttrs.pname} \
|
||||
--url https://xorg.freedesktop.org/releases/individual/app/ \
|
||||
| sort -V | tail -n1)"
|
||||
update-source-version ${finalAttrs.pname} "$version"
|
||||
'';
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "User preference utility for X servers";
|
||||
homepage = "https://gitlab.freedesktop.org/xorg/app/xset";
|
||||
license = lib.licenses.mitOpenGroup;
|
||||
mainProgram = "xset";
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
@@ -82,6 +82,7 @@
|
||||
xprop,
|
||||
xrandr,
|
||||
xrefresh,
|
||||
xset,
|
||||
xtrans,
|
||||
xvinfo,
|
||||
xwininfo,
|
||||
@@ -126,6 +127,7 @@ self: with self; {
|
||||
xprop
|
||||
xrandr
|
||||
xrefresh
|
||||
xset
|
||||
xtrans
|
||||
xvinfo
|
||||
xwininfo
|
||||
@@ -5432,48 +5434,6 @@ self: with self; {
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
xset = callPackage (
|
||||
{
|
||||
stdenv,
|
||||
pkg-config,
|
||||
fetchurl,
|
||||
libX11,
|
||||
libXext,
|
||||
libXmu,
|
||||
xorgproto,
|
||||
libXxf86misc,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xset";
|
||||
version = "1.2.5";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/app/xset-1.2.5.tar.xz";
|
||||
sha256 = "0bsyyx3k32k9vpb8x3ks7hlfr03nm0i14fv3cg6n4f2vcdajsscz";
|
||||
};
|
||||
hardeningDisable = [
|
||||
"bindnow"
|
||||
"relro"
|
||||
];
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
libX11
|
||||
libXext
|
||||
libXmu
|
||||
xorgproto
|
||||
libXxf86misc
|
||||
];
|
||||
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
meta = {
|
||||
pkgConfigModules = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
xsetroot = callPackage (
|
||||
{
|
||||
|
||||
@@ -398,6 +398,7 @@ print OUT <<EOF;
|
||||
xprop,
|
||||
xrandr,
|
||||
xrefresh,
|
||||
xset,
|
||||
xtrans,
|
||||
xvinfo,
|
||||
xwininfo,
|
||||
@@ -442,6 +443,7 @@ self: with self; {
|
||||
xprop
|
||||
xrandr
|
||||
xrefresh
|
||||
xset
|
||||
xtrans
|
||||
xvinfo
|
||||
xwininfo
|
||||
|
||||
@@ -982,7 +982,6 @@ self: super:
|
||||
};
|
||||
});
|
||||
|
||||
xset = addMainProgram super.xset { };
|
||||
xsetroot = addMainProgram super.xsetroot { };
|
||||
xsm = addMainProgram super.xsm { };
|
||||
xstdcmap = addMainProgram super.xstdcmap { };
|
||||
|
||||
@@ -33,7 +33,6 @@ mirror://xorg/individual/app/xmessage-1.0.7.tar.xz
|
||||
mirror://xorg/individual/app/xmore-1.0.4.tar.xz
|
||||
mirror://xorg/individual/app/xpr-1.2.0.tar.xz
|
||||
mirror://xorg/individual/app/xrdb-1.2.2.tar.xz
|
||||
mirror://xorg/individual/app/xset-1.2.5.tar.xz
|
||||
mirror://xorg/individual/app/xsetroot-1.1.3.tar.xz
|
||||
mirror://xorg/individual/app/xsm-1.0.6.tar.xz
|
||||
mirror://xorg/individual/app/xstdcmap-1.0.5.tar.xz
|
||||
|
||||
Reference in New Issue
Block a user