forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
32 lines
827 B
Nix
32 lines
827 B
Nix
{ lib, stdenv, fetchurl
|
|
, pkg-config, scdoc, wayland
|
|
, wayland-protocols, libxkbcommon
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "wev";
|
|
version = "1.0.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://git.sr.ht/~sircmpwn/wev/archive/${version}.tar.gz";
|
|
sha256 = "0vlxdkb59v6nb10j28gh1a56sx8jk7ak7liwzv911kpmygnls03g";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config scdoc wayland ];
|
|
buildInputs = [ wayland-protocols libxkbcommon ];
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
meta = with lib; {
|
|
description = "Wayland event viewer";
|
|
longDescription = ''
|
|
This is a tool for debugging events on a Wayland window, analagous to the
|
|
X11 tool xev.
|
|
'';
|
|
homepage = "https://git.sr.ht/~sircmpwn/wev";
|
|
license = licenses.mit;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ primeos ];
|
|
};
|
|
}
|