xhost: refactor and move to pkgs/by-name from xorg namespace
This commit is contained in:
committed by
Alyssa Ross
parent
47b8e80c55
commit
744120dbc7
@@ -0,0 +1,62 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
pkg-config,
|
||||
gettext,
|
||||
xorgproto,
|
||||
libx11,
|
||||
libxau,
|
||||
libxmu,
|
||||
writeScript,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xhost";
|
||||
version = "1.0.10";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/app/xhost-${finalAttrs.version}.tar.xz";
|
||||
hash = "sha256-qK/XAFlHnHEpSLiV5Bw1pKi/zt47otWkuFXIi7tyW+E=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
gettext
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
xorgproto
|
||||
libx11
|
||||
libxau
|
||||
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 = "X server access control program";
|
||||
longDescription = ''
|
||||
xhost is used to manage the list of host names or user names allowed to make connections to
|
||||
the X server.
|
||||
'';
|
||||
homepage = "https://gitlab.freedesktop.org/xorg/app/xhost";
|
||||
license = with lib.licenses; [
|
||||
mit
|
||||
icu
|
||||
];
|
||||
mainProgram = "xhost";
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
@@ -67,6 +67,7 @@
|
||||
xfsinfo,
|
||||
xgamma,
|
||||
xgc,
|
||||
xhost,
|
||||
xkeyboard-config,
|
||||
xlsatoms,
|
||||
xlsclients,
|
||||
@@ -112,6 +113,7 @@ self: with self; {
|
||||
xfsinfo
|
||||
xgamma
|
||||
xgc
|
||||
xhost
|
||||
xlsatoms
|
||||
xlsclients
|
||||
xlsfonts
|
||||
@@ -4924,50 +4926,6 @@ self: with self; {
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
xhost = callPackage (
|
||||
{
|
||||
stdenv,
|
||||
pkg-config,
|
||||
fetchurl,
|
||||
libX11,
|
||||
libXau,
|
||||
libXmu,
|
||||
xorgproto,
|
||||
gettext,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xhost";
|
||||
version = "1.0.10";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/app/xhost-1.0.10.tar.xz";
|
||||
sha256 = "1qavfaxqpj2mp2jdb8ivvv7bza546lff95dq90lp3727b40dgbx8";
|
||||
};
|
||||
hardeningDisable = [
|
||||
"bindnow"
|
||||
"relro"
|
||||
];
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
gettext
|
||||
];
|
||||
buildInputs = [
|
||||
libX11
|
||||
libXau
|
||||
libXmu
|
||||
xorgproto
|
||||
];
|
||||
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
meta = {
|
||||
pkgConfigModules = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
xinit = callPackage (
|
||||
{
|
||||
|
||||
@@ -383,6 +383,7 @@ print OUT <<EOF;
|
||||
xfsinfo,
|
||||
xgamma,
|
||||
xgc,
|
||||
xhost,
|
||||
xkeyboard-config,
|
||||
xlsatoms,
|
||||
xlsclients,
|
||||
@@ -428,6 +429,7 @@ self: with self; {
|
||||
xfsinfo
|
||||
xgamma
|
||||
xgc
|
||||
xhost
|
||||
xlsatoms
|
||||
xlsclients
|
||||
xlsfonts
|
||||
|
||||
@@ -965,7 +965,6 @@ self: super:
|
||||
xfd = addMainProgram super.xfd { };
|
||||
xfontsel = addMainProgram super.xfontsel { };
|
||||
xfs = addMainProgram super.xfs { };
|
||||
xhost = addMainProgram super.xhost { };
|
||||
xinput = addMainProgram super.xinput { };
|
||||
xkbevd = addMainProgram super.xkbevd { };
|
||||
xkbprint = addMainProgram super.xkbprint { };
|
||||
|
||||
@@ -22,7 +22,6 @@ mirror://xorg/individual/app/xeyes-1.3.0.tar.xz
|
||||
mirror://xorg/individual/app/xfd-1.1.4.tar.xz
|
||||
mirror://xorg/individual/app/xfontsel-1.1.1.tar.xz
|
||||
mirror://xorg/individual/app/xfs-1.2.2.tar.xz
|
||||
mirror://xorg/individual/app/xhost-1.0.10.tar.xz
|
||||
mirror://xorg/individual/app/xinit-1.4.4.tar.xz
|
||||
mirror://xorg/individual/app/xinput-1.6.4.tar.xz
|
||||
mirror://xorg/individual/app/xkbcomp-1.4.7.tar.xz
|
||||
|
||||
Reference in New Issue
Block a user