nixpkgs/pkgs/tools/misc/waylevel/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

32 lines
776 B
Nix

{ lib
, fetchFromSourcehut
, 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 = "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;
mainProgram = "waylevel";
};
}