Merge pull request #64805 from peterhoeg/u/xcape

xcape: 1.2 -> 20180301
This commit is contained in:
Michael Raskin 2019-07-16 05:42:08 +00:00 committed by GitHub
commit be03f0a2b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,30 +1,29 @@
{ stdenv, fetchFromGitHub, pkgconfig, libX11, libXtst, xorgproto, { stdenv, fetchFromGitHub, pkgconfig, libX11, libXtst, xorgproto,
libXi }: libXi }:
let
baseName = "xcape";
version = "1.2";
in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "${baseName}-${version}"; pname = "xcape";
version = "unstable-20180301";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "alols"; owner = "alols";
repo = baseName; repo = pname;
rev = "v${version}"; rev = "a34d6bae27bbd55506852f5ed3c27045a3c0bd9e";
sha256 = "09a05cxgrip6nqy1qmwblamp2bhknqnqmxn7i2a1rgxa0nba95dm"; sha256 = "04grs4w9kpfzz25mqw82zdiy51g0w355gpn5b170p7ha5972ykc8";
}; };
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libX11 libXtst xorgproto libXi ]; buildInputs = [ libX11 libXtst xorgproto libXi ];
makeFlags = [ "PREFIX=$(out)" "MANDIR=/share/man/man1" ]; makeFlags = [
"PREFIX=$(out)"
"MANDIR=/share/man/man1"
];
postInstall = "install -D --target-directory $out/share/doc README.md"; postInstall = "install -Dm444 --target-directory $out/share/doc README.md";
meta = { meta = with stdenv.lib; {
description = "Utility to configure modifier keys to act as other keys"; description = "Utility to configure modifier keys to act as other keys";
longDescription = '' longDescription = ''
xcape allows you to use a modifier key as another key when xcape allows you to use a modifier key as another key when
@ -35,8 +34,8 @@ stdenv.mkDerivation rec {
released on its own. released on its own.
''; '';
homepage = https://github.com/alols/xcape; homepage = https://github.com/alols/xcape;
license = stdenv.lib.licenses.gpl3 ; license = licenses.gpl3 ;
platforms = stdenv.lib.platforms.linux; maintainers = with maintainers; [ raskin ];
maintainers = [ stdenv.lib.maintainers.raskin ]; platforms = platforms.linux;
}; };
} }