nixpkgs/pkgs/tools/X11/xvkbd/default.nix
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
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
2021-01-11 10:38:22 +01:00

33 lines
1.1 KiB
Nix

{ lib, stdenv, fetchurl, imake, libXt, libXaw, libXtst
, libXi, libXpm, xorgproto, gccmakedep, Xaw3d }:
stdenv.mkDerivation {
pname = "xvkbd";
version = "3.9";
src = fetchurl {
url = "http://t-sato.in.coocan.jp/xvkbd/xvkbd-3.9.tar.gz";
sha256 = "17csj6x5zm3g67izfwhagkal1rbqzpw09lqmmlyrjy3vzgfkf75q";
};
nativeBuildInputs = [ imake gccmakedep ];
buildInputs = [ libXt libXaw libXtst xorgproto libXi Xaw3d libXpm ];
installTargets = [ "install" "install.man" ];
makeFlags = [
"BINDIR=$(out)/bin"
"XAPPLOADDIR=$(out)/etc/X11/app-defaults"
"MANPATH=$(out)/man"
];
meta = with lib; {
description = "Virtual keyboard for X window system";
longDescription = ''
xvkbd is a virtual (graphical) keyboard program for X Window System which provides
facility to enter characters onto other clients (softwares) by clicking on a
keyboard displayed on the screen.
'';
homepage = "http://t-sato.in.coocan.jp/xvkbd";
license = licenses.gpl2Plus;
maintainers = [ maintainers.bennofs ];
platforms = platforms.linux;
};
}