mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 18:42:15 +00:00
f5fa5fa4d6
* pkgs: refactor needless quoting of homepage meta attribute A lot of packages are needlessly quoting the homepage meta attribute (about 1400, 22%), this commit refactors all of those instances. * pkgs: Fixing some links that were wrongfully unquoted in the previous commit * Fixed some instances
43 lines
1.2 KiB
Nix
43 lines
1.2 KiB
Nix
{ stdenv, fetchFromGitHub, pkgconfig, libX11, libXtst, xextproto,
|
|
libXi }:
|
|
|
|
let
|
|
baseName = "xcape";
|
|
version = "1.2";
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "${baseName}-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "alols";
|
|
repo = baseName;
|
|
rev = "v${version}";
|
|
sha256 = "09a05cxgrip6nqy1qmwblamp2bhknqnqmxn7i2a1rgxa0nba95dm";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libX11 libXtst xextproto libXi ];
|
|
|
|
makeFlags = [ "PREFIX=$(out)" "MANDIR=/share/man/man1" ];
|
|
|
|
postInstall = "install -D --target-directory $out/share/doc README.md";
|
|
|
|
meta = {
|
|
description = "Utility to configure modifier keys to act as other keys";
|
|
longDescription = ''
|
|
xcape allows you to use a modifier key as another key when
|
|
pressed and released on its own. Note that it is slightly
|
|
slower than pressing the original key, because the pressed event
|
|
does not occur until the key is released. The default behaviour
|
|
is to generate the Escape key when Left Control is pressed and
|
|
released on its own.
|
|
'';
|
|
homepage = https://github.com/alols/xcape;
|
|
license = stdenv.lib.licenses.gpl3 ;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = [ stdenv.lib.maintainers.raskin ];
|
|
};
|
|
}
|