wlprop: init at unstable-2022-08-18

This commit is contained in:
Sebastian Sellmeier 2022-11-25 23:24:44 +01:00
parent a115bb9bd5
commit 9454b54ed2
No known key found for this signature in database
GPG Key ID: 51E2BE0CCC826F98
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,34 @@
{ fetchgit, gawk, jq, lib, makeWrapper, slurp, stdenv, sway }:
stdenv.mkDerivation rec {
pname = "wlprop";
version = "unstable-2022-08-18";
src = fetchgit {
url = "https://gist.github.com/f313386043395ff06570e02af2d9a8e0";
rev = "758c548bfb4be5b437c428c8062b3987f126f002";
sha256 = "sha256-ZJ9LYYrU2cNYikiVNTlEcI4QXcoqfl7iwk3Be+NhGG8=";
};
nativeBuildInputs = [ makeWrapper ];
dontBuild = true;
installPhase = ''
runHook preInstall
install -Dm755 wlprop.sh $out/bin/wlprop
wrapProgram "$out/bin/wlprop" \
--prefix PATH : "$out/bin:${lib.makeBinPath [ gawk jq slurp sway ]}"
runHook postInstall
'';
passthru.scriptName = "wlprop.sh";
meta = with lib; {
description = "An xprop clone for wlroots based compositors";
homepage = "https://gist.github.com/crispyricepc/f313386043395ff06570e02af2d9a8e0";
license = licenses.mit;
maintainers = with maintainers; [ sebtm ];
platforms = platforms.linux;
};
}

View File

@ -3597,6 +3597,8 @@ with pkgs;
wlopm = callPackage ../tools/wayland/wlopm { };
wlprop = callPackage ../tools/wayland/wlprop {};
wlr-randr = callPackage ../tools/wayland/wlr-randr { };
wlrctl = callPackage ../tools/wayland/wlrctl { };