nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 pkg-config,
6 libx11,
7 libxau,
8 libxext,
9 libxmu,
10 xorgproto,
11 writeScript,
12}:
13stdenv.mkDerivation (finalAttrs: {
14 pname = "xauth";
15 version = "1.1.5";
16
17 src = fetchurl {
18 url = "mirror://xorg/individual/app/xauth-${finalAttrs.version}.tar.xz";
19 hash = "sha256-pAAOL0QfrOv1aQJr7ezCO6JizGknvlIHCr4AAmJc++A=";
20 };
21
22 strictDeps = true;
23
24 nativeBuildInputs = [ pkg-config ];
25
26 buildInputs = [
27 libx11
28 libxau
29 libxext
30 libxmu
31 xorgproto
32 ];
33
34 passthru = {
35 updateScript = writeScript "update-${finalAttrs.pname}" ''
36 #!/usr/bin/env nix-shell
37 #!nix-shell -i bash -p common-updater-scripts
38 version="$(list-directory-versions --pname ${finalAttrs.pname} \
39 --url https://xorg.freedesktop.org/releases/individual/app/ \
40 | sort -V | tail -n1)"
41 update-source-version ${finalAttrs.pname} "$version"
42 '';
43 };
44
45 meta = {
46 description = "X authority file utility";
47 longDescription = ''
48 The xauth program is used to edit and display the authorization information used in connecting
49 to the X server.
50 '';
51 homepage = "https://gitlab.freedesktop.org/xorg/app/xauth";
52 license = lib.licenses.mitOpenGroup;
53 mainProgram = "xauth";
54 maintainers = [ ];
55 platforms = lib.platforms.unix;
56 };
57})