diff options
author | Peter Hoeg <peter@hoeg.com> | 2019-07-15 20:29:39 +0800 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2019-07-15 20:29:39 +0800 |
commit | 4384bacbf3eb0942799c1d220dcb202dce5304d7 (patch) | |
tree | 5a9c73ac2a0d276b1f3e712002225619c0746733 /pkgs/tools/X11/xcape | |
parent | 1036dc664169b32613ec11b58cc1740c7511a340 (diff) | |
download | nixpkgs-4384bacbf3eb0942799c1d220dcb202dce5304d7.tar nixpkgs-4384bacbf3eb0942799c1d220dcb202dce5304d7.tar.gz nixpkgs-4384bacbf3eb0942799c1d220dcb202dce5304d7.tar.bz2 nixpkgs-4384bacbf3eb0942799c1d220dcb202dce5304d7.tar.lz nixpkgs-4384bacbf3eb0942799c1d220dcb202dce5304d7.tar.xz nixpkgs-4384bacbf3eb0942799c1d220dcb202dce5304d7.tar.zst nixpkgs-4384bacbf3eb0942799c1d220dcb202dce5304d7.zip |
xcape: 1.2 -> 20180301
1.2 only allows running in the foreground if debug mode is enabled which generates lots of noise for journald. The changes from the most recent release is only a few minor fixes plus support for running in the foreground with the `-f` flag.
Diffstat (limited to 'pkgs/tools/X11/xcape')
-rw-r--r-- | pkgs/tools/X11/xcape/default.nix | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/pkgs/tools/X11/xcape/default.nix b/pkgs/tools/X11/xcape/default.nix index fae2d56fbbe..8b0c18c8618 100644 --- a/pkgs/tools/X11/xcape/default.nix +++ b/pkgs/tools/X11/xcape/default.nix @@ -1,30 +1,29 @@ { stdenv, fetchFromGitHub, pkgconfig, libX11, libXtst, xorgproto, libXi }: -let - baseName = "xcape"; - version = "1.2"; -in - stdenv.mkDerivation rec { - name = "${baseName}-${version}"; + pname = "xcape"; + version = "unstable-20180301"; src = fetchFromGitHub { owner = "alols"; - repo = baseName; - rev = "v${version}"; - sha256 = "09a05cxgrip6nqy1qmwblamp2bhknqnqmxn7i2a1rgxa0nba95dm"; + repo = pname; + rev = "a34d6bae27bbd55506852f5ed3c27045a3c0bd9e"; + sha256 = "04grs4w9kpfzz25mqw82zdiy51g0w355gpn5b170p7ha5972ykc8"; }; nativeBuildInputs = [ pkgconfig ]; 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"; longDescription = '' xcape allows you to use a modifier key as another key when @@ -35,8 +34,8 @@ stdenv.mkDerivation rec { 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 ]; + license = licenses.gpl3 ; + maintainers = with maintainers; [ raskin ]; + platforms = platforms.linux; }; } |