x11perf: 1.6.1 -> 1.7.0, refactor & move to pkgs/by-name from xorg namespace
relevant changes: - fix x11perfcomp containing reference to /bin/cat
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;
|
||||
};
|
||||
})
|
||||
@@ -88,6 +88,7 @@
|
||||
transset,
|
||||
util-macros,
|
||||
viewres,
|
||||
x11perf,
|
||||
xauth,
|
||||
xbacklight,
|
||||
xbitmaps,
|
||||
@@ -153,6 +154,7 @@ self: with self; {
|
||||
smproxy
|
||||
transset
|
||||
viewres
|
||||
x11perf
|
||||
xauth
|
||||
xbacklight
|
||||
xbitmaps
|
||||
@@ -1213,50 +1215,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 (
|
||||
{
|
||||
|
||||
@@ -415,6 +415,7 @@ print OUT <<EOF;
|
||||
transset,
|
||||
util-macros,
|
||||
viewres,
|
||||
x11perf,
|
||||
xauth,
|
||||
xbacklight,
|
||||
xbitmaps,
|
||||
@@ -480,6 +481,7 @@ self: with self; {
|
||||
smproxy
|
||||
transset
|
||||
viewres
|
||||
x11perf
|
||||
xauth
|
||||
xbacklight
|
||||
xbitmaps
|
||||
|
||||
@@ -217,16 +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: {
|
||||
|
||||
@@ -4,7 +4,6 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user