blob: 0a7cbcbfe3a579187fd058d25db6a8fa30a1d4d1 (
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
|
{
lib,
stdenv,
fetchurl,
pkg-config,
xorgproto,
libx11,
libxfixes,
libxrender,
writeScript,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libxcursor";
version = "1.2.3";
outputs = [
"out"
"dev"
];
src = fetchurl {
url = "mirror://xorg/individual/lib/libXcursor-${finalAttrs.version}.tar.xz";
hash = "sha256-/elALdTP552nHi2Wu5gK/F5v9Pin10wVnhlmr7KywsA=";
};
strictDeps = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [
xorgproto
libx11
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 libXcursor \
--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 = "X11 Cursor management library";
homepage = "https://gitlab.freedesktop.org/xorg/lib/libxcursor";
license = lib.licenses.hpndSellVariant;
maintainers = [ ];
pkgConfigModules = [ "xcursor" ];
platforms = lib.platforms.unix;
};
})
|