nixpkgs/pkgs/tools/X11/winswitch/default.nix
Ryan Mulligan f8922862b7 winswitch: 0.12.16 -> 0.12.23
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. These checks were done:

- built on NixOS
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.wcw-wrapped -h` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.wcw-wrapped --help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.wcw-wrapped -h` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.wcw-wrapped --help` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_applet-wrapped -h` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_applet-wrapped --help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_applet-wrapped help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_away-wrapped -h` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_away-wrapped --help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_away-wrapped -h` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_away-wrapped --help` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_back-wrapped -h` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_back-wrapped --help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_back-wrapped -h` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_back-wrapped --help` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_client-wrapped -h` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_client-wrapped --help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_command_wrapper-wrapped -h` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_command_wrapper-wrapped --help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_command_wrapper-wrapped -h` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_command_wrapper-wrapped --help` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_server-wrapped --help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_server-wrapped --version` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_server-wrapped --help` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_ssh_Xnest-wrapped -h` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_ssh_Xnest-wrapped --help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_ssh_Xnest-wrapped help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_ssh_session-wrapped -h` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_ssh_session-wrapped --help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_ssh_session-wrapped help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_stdio_socket-wrapped -h` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_stdio_socket-wrapped --help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_stdio_socket-wrapped -h` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_stdio_socket-wrapped --help` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_stdio_tcp-wrapped -h` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_stdio_tcp-wrapped --help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_stdio_tcp-wrapped help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_stdio_tcp-wrapped -V` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_stdio_tcp-wrapped -v` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_stdio_tcp-wrapped --version` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_stdio_tcp-wrapped version` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_stdio_tcp-wrapped -h` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_stdio_tcp-wrapped --help` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/.winswitch_stdio_tcp-wrapped help` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/wcw -h` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/wcw --help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/wcw -h` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/wcw --help` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_applet -h` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_applet --help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_applet help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_away -h` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_away --help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_away -h` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_away --help` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_back -h` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_back --help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_back -h` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_back --help` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_client -h` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_client --help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_command_wrapper -h` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_command_wrapper --help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_command_wrapper -h` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_command_wrapper --help` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_server --help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_server --version` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_server --help` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_ssh_Xnest -h` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_ssh_Xnest --help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_ssh_Xnest help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_ssh_session -h` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_ssh_session --help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_ssh_session help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_stdio_socket -h` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_stdio_socket --help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_stdio_socket -h` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_stdio_socket --help` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_stdio_tcp -h` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_stdio_tcp --help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_stdio_tcp help` got 0 exit code
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_stdio_tcp -V` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_stdio_tcp -v` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_stdio_tcp --version` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_stdio_tcp version` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_stdio_tcp -h` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_stdio_tcp --help` and found version 0.12.23
- ran `/nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23/bin/winswitch_stdio_tcp help` and found version 0.12.23
- found 0.12.23 with grep in /nix/store/71f89z56xhgvh29an8nc7d5jl283968l-winswitch-0.12.23
2018-03-09 17:43:42 -08:00

47 lines
1.4 KiB
Nix

{ stdenv, fetchurl, pythonPackages
, which, xpra, xmodmap }:
let
base = pythonPackages.buildPythonApplication rec {
name = "winswitch-${version}";
namePrefix = "";
version = "0.12.23";
src = fetchurl {
url = "http://winswitch.org/src/${name}.src.tar.bz2";
sha256 = "1m0akjcdlsgng426rwvzlcl76kjm993icj0pggvha40cizig1yd9";
};
propagatedBuildInputs = with pythonPackages; [
pygtk twisted pycrypto pyasn1 which xpra xmodmap
];
patchPhase = ''
sed -i -r -e 's|(PREFIX_DIR *= *).*|\1"'"$out"'"|' \
-e 's|(PREFIX_SEARCH_ORDER *= *).*|\1["'"$out"'"]|' \
-e 's|(ETC_SEARCH_ORDER *= *).*|\1["'"$out/etc"'"]|' \
-e 's|(BIN_SEARCH_ORDER *= *).*|\1["'"$out/bin"'"]|' \
winswitch/util/paths.py
sed -i -e '/elif *LINUX:/,/distro_helper/{
s/elif *LINUX:.*/else: name = "NixOS"/p
/distro_helper/!d
}' winswitch/util/distro_packaging_util.py
'';
preInstall = ''
# see https://bitbucket.org/pypa/setuptools/issue/130/install_data-doesnt-respect-prefix
python setup.py install_data --install-dir=$out --root=$out
sed -i '/data_files = data_files/d' setup.py
'';
doCheck = false;
meta.platforms = stdenv.lib.platforms.linux;
};
in stdenv.lib.overrideDerivation base (b: {
postFixup = b.postFixup + ''
sed -i -e 's/\''${PATH:+:}\$PATH//g' "$out/bin"/*
'';
})