blob: 1dbf4c937f6ca4cd933457ca7d6c0521e3db15f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
{
lib,
stdenv,
fetchurl,
pkg-config,
xorgproto,
libx11,
libxext,
writeScript,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libxres";
version = "1.2.3";
outputs = [
"out"
"dev"
"devdoc"
];
src = fetchurl {
url = "mirror://xorg/individual/lib/libXres-${finalAttrs.version}.tar.xz";
hash = "sha256-0t6PVAHWyGqJknkWVFR+uN71hd/cDAjMFuJO9q7radw=";
};
strictDeps = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [
xorgproto
libx11
libxext
];
propagatedBuildInputs = [ xorgproto ];
configureFlags = lib.optional (
stdenv.hostPlatform != stdenv.buildPlatform
) "--enable-malloc0returnsnull";
passthru = {
updateScript = writeScript "update-${finalAttrs.pname}" ''
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p common-updater-scripts
version="$(list-directory-versions --pname libXres \
--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 = "X-Resource extension client library";
homepage = "https://gitlab.freedesktop.org/xorg/lib/libxres";
license = lib.licenses.x11;
maintainers = [ ];
pkgConfigModules = [ "xres" ];
platforms = lib.platforms.unix;
};
})
|