about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/waylevel/default.nix
blob: f02ada3ab8640a6a8e923ce77b7b97d35a68ffdd (plain) (blame)
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
{ lib
, fetchFromSourcehut
, makeWrapper
, rustPlatform
, wayland
}:
rustPlatform.buildRustPackage rec {
  pname = "waylevel";
  version = "1.0.0";

  src = fetchFromSourcehut {
    owner = "~shinyzenith";
    repo = pname;
    rev = version;
    hash = "sha256-T2gqiRcKrKsvwGNnWrxR1Ga/VX4AyllYn1H25aIKt5s=";
  };

  cargoHash = "sha256-gw5m1/btJ5zZP04C7BCnHqEOUBoeu0whK8W7xA+xSQo=";

  postFixup = ''
    patchelf --set-rpath ${lib.makeLibraryPath [wayland]} $out/bin/waylevel
  '';

  meta = with lib; {
    description = "A tool to print wayland toplevels and other compositor info";
    homepage = "https://git.sr.ht/~shinyzenith/waylevel";
    license = licenses.bsd2;
    maintainers = with maintainers; [ dit7ya ];
    platforms = platforms.linux;
  };
}