waylevel: init at 1.0.0

use patchelf instead of wrapProgram for libpath
This commit is contained in:
Mostly Void 2022-07-22 10:42:09 +05:30
parent cd907d4b84
commit a9ec42c41b
No known key found for this signature in database
GPG Key ID: E2B7342D0CAA82C2
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,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;
};
}

View File

@ -28127,6 +28127,8 @@ with pkgs;
wayshot = callPackage ../tools/misc/wayshot { };
waylevel = callPackage ../tools/misc/waylevel { };
wbg = callPackage ../applications/misc/wbg { };
hikari = callPackage ../applications/window-managers/hikari {