571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
46 lines
979 B
Nix
46 lines
979 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromSourcehut
|
|
, pkg-config
|
|
, scdoc
|
|
, wayland-scanner
|
|
, wayland
|
|
, wayland-protocols
|
|
, libxkbcommon
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "wev";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~sircmpwn";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0l71v3fzgiiv6xkk365q1l08qvaymxd4kpaya6r2g8yzkr7i2hms";
|
|
};
|
|
|
|
strictDeps = true;
|
|
# for scdoc
|
|
depsBuildBuild = [
|
|
pkg-config
|
|
];
|
|
nativeBuildInputs = [ pkg-config scdoc wayland-scanner ];
|
|
buildInputs = [ wayland wayland-protocols libxkbcommon ];
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://git.sr.ht/~sircmpwn/wev";
|
|
description = "Wayland event viewer";
|
|
longDescription = ''
|
|
This is a tool for debugging events on a Wayland window, analogous to the
|
|
X11 tool xev.
|
|
'';
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ primeos ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "wev";
|
|
};
|
|
}
|