Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
96 lines
2.2 KiB
Nix
96 lines
2.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
buildPackages,
|
|
pkg-config,
|
|
xorgproto,
|
|
libpthread-stubs,
|
|
libxcb,
|
|
xtrans,
|
|
writeScript,
|
|
testers,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "libx11";
|
|
version = "1.8.12";
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
"man"
|
|
];
|
|
|
|
src = fetchurl {
|
|
url = "mirror://xorg/individual/lib/libX11-${finalAttrs.version}.tar.xz";
|
|
hash = "sha256-+gJvm7AST01sgI+a70BXqtZeezXY/0OVHO8Kvga7mpo=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
|
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
xorgproto
|
|
libpthread-stubs
|
|
libxcb
|
|
xtrans
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
xorgproto
|
|
];
|
|
|
|
configureFlags =
|
|
lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "--enable-malloc0returnsnull"
|
|
++ lib.optional (stdenv.targetPlatform.useLLVM or false) "ac_cv_path_RAWCPP=cpp";
|
|
|
|
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin { CPP = "clang -E -"; };
|
|
|
|
postInstall = ''
|
|
# Remove useless DocBook XML files.
|
|
rm -r $out/share/doc
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = writeScript "update-${finalAttrs.pname}" ''
|
|
#!/usr/bin/env nix-shell
|
|
#!nix-shell -i bash -p common-updater-scripts
|
|
version="$(list-directory-versions --pname libX11 \
|
|
--url https://xorg.freedesktop.org/releases/individual/lib/ \
|
|
| sort -V | tail -n1)"
|
|
update-source-version ${finalAttrs.pname} "$version"
|
|
'';
|
|
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
|
};
|
|
|
|
meta = {
|
|
description = "Core X11 protocol client library (aka \"Xlib\")";
|
|
homepage = "https://gitlab.freedesktop.org/xorg/lib/libx11";
|
|
license = with lib.licenses; [
|
|
mit
|
|
mitOpenGroup
|
|
x11
|
|
hpndDoc
|
|
hpndSellVariant
|
|
tekHvcLicense
|
|
hpndDocSell
|
|
hpnd
|
|
bsd1
|
|
isc
|
|
# The "source code modified by FUJITSU LIMITED under the Joint Development Agreement for the
|
|
# CDE/Motif PST" is possibly unfree.
|
|
# upstream issue: https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues/217
|
|
# unfree
|
|
];
|
|
maintainers = [ ];
|
|
pkgConfigModules = [
|
|
"x11"
|
|
"x11-xcb"
|
|
];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|