nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 meson,
6 pkg-config,
7 ninja,
8 wayland-scanner,
9 libdrm,
10 wayland,
11 wayland-protocols,
12 gitUpdater,
13}:
14
15stdenv.mkDerivation (finalAttrs: {
16 pname = "wayland-utils";
17 version = "1.3.0";
18
19 src = fetchurl {
20 url = "https://gitlab.freedesktop.org/wayland/wayland-utils/-/releases/${finalAttrs.version}/downloads/wayland-utils-${finalAttrs.version}.tar.xz";
21 hash = "sha256-o50OZWF8auGG12jCI/VwYKOkNfb58C0DB0+UUxO/zw0=";
22 };
23
24 strictDeps = true;
25 depsBuildBuild = [ pkg-config ];
26 nativeBuildInputs = [
27 meson
28 pkg-config
29 ninja
30 wayland-scanner
31 ];
32 buildInputs = [
33 libdrm
34 wayland
35 wayland-protocols
36 ];
37
38 passthru.updateScript = gitUpdater {
39 url = "https://gitlab.freedesktop.org/wayland/wayland-utils.git";
40 };
41
42 meta = {
43 description = "Wayland utilities (wayland-info)";
44 longDescription = ''
45 A collection of Wayland related utilities:
46 - wayland-info: A utility for displaying information about the Wayland
47 protocols supported by a Wayland compositor.
48 '';
49 homepage = "https://gitlab.freedesktop.org/wayland/wayland-utils";
50 license = lib.licenses.mit; # Expat version
51 platforms = lib.platforms.linux;
52 maintainers = with lib.maintainers; [ wineee ];
53 mainProgram = "wayland-info";
54 };
55})