x{11perf,calc,compmgr,eyes}: refactor and move to pkgs/by-name from xorg namespace (#442325)
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
pkg-config,
|
||||
xorgproto,
|
||||
libx11,
|
||||
libxext,
|
||||
libxft,
|
||||
libxmu,
|
||||
libxrender,
|
||||
freetype,
|
||||
fontconfig,
|
||||
writeScript,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "x11perf";
|
||||
version = "1.7.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/test/x11perf-${finalAttrs.version}.tar.xz";
|
||||
hash = "sha256-JPgNhLDpYXGpmJMv8Adpj9F3bamXXtQuUdV7nPypGCg=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
xorgproto
|
||||
libx11
|
||||
libxext
|
||||
libxft
|
||||
libxmu
|
||||
libxrender
|
||||
freetype
|
||||
fontconfig
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
substituteInPlace $out/bin/x11perfcomp \
|
||||
--replace-fail "/bin/cat" "cat"
|
||||
'';
|
||||
|
||||
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/test/ \
|
||||
| sort -V | tail -n1)"
|
||||
update-source-version ${finalAttrs.pname} "$version"
|
||||
'';
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "X11 server performance test program";
|
||||
homepage = "https://gitlab.freedesktop.org/xorg/test/x11perf";
|
||||
license = lib.licenses.hpnd;
|
||||
mainProgram = "x11perf";
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
@@ -0,0 +1,60 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
pkg-config,
|
||||
xorgproto,
|
||||
wrapWithXFileSearchPathHook,
|
||||
libx11,
|
||||
libxaw,
|
||||
libxt,
|
||||
writeScript,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xcalc";
|
||||
version = "1.1.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/app/xcalc-${finalAttrs.version}.tar.xz";
|
||||
hash = "sha256-hXjfoUV+lCifbW7WFGcUMH2Kc6G1TS9CrxMhtiX8HNQ=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
wrapWithXFileSearchPathHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
xorgproto
|
||||
libx11
|
||||
libxaw
|
||||
libxt
|
||||
];
|
||||
|
||||
installFlags = [ "appdefaultdir=$(out)/share/X11/app-defaults" ];
|
||||
|
||||
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 = "Scientific calculator X11 client that can emulate a TI-30 or an HP-10C";
|
||||
homepage = "https://gitlab.freedesktop.org/xorg/app/xcalc";
|
||||
license = with lib.licenses; [
|
||||
x11
|
||||
hpndSellVariant
|
||||
];
|
||||
mainProgram = "xcalc";
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
@@ -0,0 +1,59 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
pkg-config,
|
||||
xorgproto,
|
||||
libxcomposite,
|
||||
libxdamage,
|
||||
libxext,
|
||||
libxfixes,
|
||||
libxrender,
|
||||
writeScript,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xcompmgr";
|
||||
version = "1.1.10";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/app/xcompmgr-${finalAttrs.version}.tar.xz";
|
||||
hash = "sha256-eCT3CcTyJDLq6nVC7JM4Tl3Uj2/LhcEv+C1yFCOwuY8=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
xorgproto
|
||||
libxcomposite
|
||||
libxdamage
|
||||
libxext
|
||||
libxfixes
|
||||
libxrender
|
||||
];
|
||||
|
||||
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 = "Sample X11 compositing manager";
|
||||
longDescription = ''
|
||||
xcompmgr is a sample compositing manager for X servers supporting the XFIXES, DAMAGE, RENDER
|
||||
and COMPOSITE extensions. It enables basic eye-candy effects.
|
||||
'';
|
||||
homepage = "https://gitlab.freedesktop.org/xorg/app/xcompmgr";
|
||||
license = lib.licenses.hpndSellVariant;
|
||||
mainProgram = "xcompmgr";
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
@@ -0,0 +1,59 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
pkg-config,
|
||||
xorgproto,
|
||||
libx11,
|
||||
libxcb,
|
||||
libxext,
|
||||
libxi,
|
||||
libxmu,
|
||||
libxrender,
|
||||
libxt,
|
||||
writeScript,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xeyes";
|
||||
version = "1.3.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/app/xeyes-${finalAttrs.version}.tar.xz";
|
||||
hash = "sha256-VgjXa3sarF7X8i8ba1rXTvmMhpMiDzK0uH3M7kqVbqo=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
xorgproto
|
||||
libx11
|
||||
libxcb
|
||||
libxext
|
||||
libxi
|
||||
libxmu
|
||||
libxrender
|
||||
libxt
|
||||
];
|
||||
|
||||
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 = "A \"follow the mouse\" X demo, using the X SHAPE extension";
|
||||
homepage = "https://gitlab.freedesktop.org/xorg/app/xeyes";
|
||||
license = lib.licenses.x11;
|
||||
mainProgram = "xeyes";
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
@@ -88,16 +88,20 @@
|
||||
transset,
|
||||
util-macros,
|
||||
viewres,
|
||||
x11perf,
|
||||
xauth,
|
||||
xbacklight,
|
||||
xbitmaps,
|
||||
xcalc,
|
||||
xcb-proto,
|
||||
xcmsdb,
|
||||
xcompmgr,
|
||||
xconsole,
|
||||
xcursorgen,
|
||||
xcursor-themes,
|
||||
xdriinfo,
|
||||
xev,
|
||||
xeyes,
|
||||
xfontsel,
|
||||
xfsinfo,
|
||||
xgamma,
|
||||
@@ -153,14 +157,18 @@ self: with self; {
|
||||
smproxy
|
||||
transset
|
||||
viewres
|
||||
x11perf
|
||||
xauth
|
||||
xbacklight
|
||||
xbitmaps
|
||||
xcalc
|
||||
xcmsdb
|
||||
xcompmgr
|
||||
xconsole
|
||||
xcursorgen
|
||||
xdriinfo
|
||||
xev
|
||||
xeyes
|
||||
xfontsel
|
||||
xfsinfo
|
||||
xgamma
|
||||
@@ -1213,94 +1221,6 @@ self: with self; {
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
x11perf = callPackage (
|
||||
{
|
||||
stdenv,
|
||||
pkg-config,
|
||||
fetchurl,
|
||||
libX11,
|
||||
libXext,
|
||||
libXft,
|
||||
libXmu,
|
||||
xorgproto,
|
||||
libXrender,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "x11perf";
|
||||
version = "1.6.1";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/app/x11perf-1.6.1.tar.bz2";
|
||||
sha256 = "0d3wh6z6znwhfdiv0zaggfj0xgish98xa10yy76b9517zj7hnzhw";
|
||||
};
|
||||
hardeningDisable = [
|
||||
"bindnow"
|
||||
"relro"
|
||||
];
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
libX11
|
||||
libXext
|
||||
libXft
|
||||
libXmu
|
||||
xorgproto
|
||||
libXrender
|
||||
];
|
||||
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
meta = {
|
||||
pkgConfigModules = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
xcalc = callPackage (
|
||||
{
|
||||
stdenv,
|
||||
pkg-config,
|
||||
fetchurl,
|
||||
libX11,
|
||||
libXaw,
|
||||
xorgproto,
|
||||
libXt,
|
||||
wrapWithXFileSearchPathHook,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xcalc";
|
||||
version = "1.1.2";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/app/xcalc-1.1.2.tar.xz";
|
||||
sha256 = "1m0wzhjvc88kmx12ykdml5rqlz9h2iki9mkfdngji53y8nhxyy45";
|
||||
};
|
||||
hardeningDisable = [
|
||||
"bindnow"
|
||||
"relro"
|
||||
];
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
wrapWithXFileSearchPathHook
|
||||
];
|
||||
buildInputs = [
|
||||
libX11
|
||||
libXaw
|
||||
xorgproto
|
||||
libXt
|
||||
];
|
||||
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
meta = {
|
||||
pkgConfigModules = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
xclock = callPackage (
|
||||
{
|
||||
@@ -1353,50 +1273,6 @@ self: with self; {
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
xcompmgr = callPackage (
|
||||
{
|
||||
stdenv,
|
||||
pkg-config,
|
||||
fetchurl,
|
||||
libXcomposite,
|
||||
libXdamage,
|
||||
libXext,
|
||||
libXfixes,
|
||||
xorgproto,
|
||||
libXrender,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xcompmgr";
|
||||
version = "1.1.10";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/app/xcompmgr-1.1.10.tar.xz";
|
||||
sha256 = "13xrn0ii8widz0pw31fbdy7x8paf729yqhkmxbm3497jqh4zf93q";
|
||||
};
|
||||
hardeningDisable = [
|
||||
"bindnow"
|
||||
"relro"
|
||||
];
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
libXcomposite
|
||||
libXdamage
|
||||
libXext
|
||||
libXfixes
|
||||
xorgproto
|
||||
libXrender
|
||||
];
|
||||
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
meta = {
|
||||
pkgConfigModules = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
xdm = callPackage (
|
||||
{
|
||||
@@ -1515,54 +1391,6 @@ self: with self; {
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
xeyes = callPackage (
|
||||
{
|
||||
stdenv,
|
||||
pkg-config,
|
||||
fetchurl,
|
||||
libX11,
|
||||
libxcb,
|
||||
libXext,
|
||||
libXi,
|
||||
libXmu,
|
||||
xorgproto,
|
||||
libXrender,
|
||||
libXt,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xeyes";
|
||||
version = "1.3.0";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/app/xeyes-1.3.0.tar.xz";
|
||||
sha256 = "08rhfp5xlmdbyxkvxhgjxdn6vwzrbrjyd7jkk8b7wi1kpw0ccl09";
|
||||
};
|
||||
hardeningDisable = [
|
||||
"bindnow"
|
||||
"relro"
|
||||
];
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
libX11
|
||||
libxcb
|
||||
libXext
|
||||
libXi
|
||||
libXmu
|
||||
xorgproto
|
||||
libXrender
|
||||
libXt
|
||||
];
|
||||
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
meta = {
|
||||
pkgConfigModules = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
xf86inputevdev = callPackage (
|
||||
{
|
||||
|
||||
@@ -415,16 +415,20 @@ print OUT <<EOF;
|
||||
transset,
|
||||
util-macros,
|
||||
viewres,
|
||||
x11perf,
|
||||
xauth,
|
||||
xbacklight,
|
||||
xbitmaps,
|
||||
xcalc,
|
||||
xcb-proto,
|
||||
xcmsdb,
|
||||
xcompmgr,
|
||||
xconsole,
|
||||
xcursorgen,
|
||||
xcursor-themes,
|
||||
xdriinfo,
|
||||
xev,
|
||||
xeyes,
|
||||
xfontsel,
|
||||
xfsinfo,
|
||||
xgamma,
|
||||
@@ -480,14 +484,18 @@ self: with self; {
|
||||
smproxy
|
||||
transset
|
||||
viewres
|
||||
x11perf
|
||||
xauth
|
||||
xbacklight
|
||||
xbitmaps
|
||||
xcalc
|
||||
xcmsdb
|
||||
xcompmgr
|
||||
xconsole
|
||||
xcursorgen
|
||||
xdriinfo
|
||||
xev
|
||||
xeyes
|
||||
xfontsel
|
||||
xfsinfo
|
||||
xgamma
|
||||
|
||||
@@ -217,18 +217,6 @@ self: super:
|
||||
|
||||
oclock = addMainProgram super.oclock { };
|
||||
|
||||
x11perf = super.x11perf.overrideAttrs (attrs: {
|
||||
buildInputs = attrs.buildInputs ++ [
|
||||
freetype
|
||||
fontconfig
|
||||
];
|
||||
meta = attrs.meta // {
|
||||
mainProgram = "x11perf";
|
||||
};
|
||||
});
|
||||
|
||||
xcalc = addMainProgram super.xcalc { };
|
||||
|
||||
xf86inputevdev = super.xf86inputevdev.overrideAttrs (attrs: {
|
||||
outputs = [
|
||||
"out"
|
||||
@@ -423,8 +411,6 @@ self: super:
|
||||
};
|
||||
});
|
||||
|
||||
xeyes = addMainProgram super.xeyes { };
|
||||
|
||||
xkbcomp = super.xkbcomp.overrideAttrs (attrs: {
|
||||
configureFlags = [ "--with-xkb-config-root=${xorg.xkeyboardconfig}/share/X11/xkb" ];
|
||||
meta = attrs.meta // {
|
||||
@@ -732,7 +718,6 @@ self: super:
|
||||
});
|
||||
|
||||
xclock = addMainProgram super.xclock { };
|
||||
xcompmgr = addMainProgram super.xcompmgr { };
|
||||
|
||||
xinit =
|
||||
(super.xinit.override {
|
||||
|
||||
@@ -4,13 +4,9 @@ mirror://xorg/individual/app/fonttosfnt-1.2.4.tar.xz
|
||||
mirror://xorg/individual/app/iceauth-1.0.10.tar.xz
|
||||
mirror://xorg/individual/app/oclock-1.0.6.tar.xz
|
||||
mirror://xorg/individual/app/setxkbmap-1.3.4.tar.xz
|
||||
mirror://xorg/individual/app/x11perf-1.6.1.tar.bz2
|
||||
mirror://xorg/individual/app/xcalc-1.1.2.tar.xz
|
||||
mirror://xorg/individual/app/xclock-1.1.1.tar.xz
|
||||
mirror://xorg/individual/app/xcompmgr-1.1.10.tar.xz
|
||||
mirror://xorg/individual/app/xdm-1.1.17.tar.xz
|
||||
mirror://xorg/individual/app/xdpyinfo-1.3.4.tar.xz
|
||||
mirror://xorg/individual/app/xeyes-1.3.0.tar.xz
|
||||
mirror://xorg/individual/app/xfd-1.1.4.tar.xz
|
||||
mirror://xorg/individual/app/xfs-1.2.2.tar.xz
|
||||
mirror://xorg/individual/app/xinit-1.4.4.tar.xz
|
||||
|
||||
@@ -13359,8 +13359,6 @@ with pkgs;
|
||||
|
||||
xca = qt6Packages.callPackage ../applications/misc/xca { };
|
||||
|
||||
inherit (xorg) xcompmgr;
|
||||
|
||||
xdg-desktop-portal = callPackage ../development/libraries/xdg-desktop-portal { };
|
||||
|
||||
xdg-desktop-portal-hyprland =
|
||||
|
||||
Reference in New Issue
Block a user