winswitch: remove

This commit is contained in:
worldofpeace 2019-12-10 22:38:19 -05:00
parent f4119fffdd
commit 865b203471
3 changed files with 1 additions and 49 deletions

View File

@ -1,47 +0,0 @@
{ stdenv, fetchurl, pythonPackages
, which, xpra, xmodmap }:
let
base = pythonPackages.buildPythonApplication rec {
pname = "winswitch";
namePrefix = "";
version = "0.12.23";
src = fetchurl {
url = "http://winswitch.org/src/${pname}-${version}.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;
meta.broken = true;
};
in stdenv.lib.overrideDerivation base (b: {
postFixup = b.postFixup + ''
sed -i -e 's/\''${PATH:+:}\$PATH//g' "$out/bin"/*
'';
})

View File

@ -443,6 +443,7 @@ mapAliases ({
weechat-matrix-bridge = weechatScripts.weechat-matrix-bridge; # added 2018-09-06
wineStaging = wine-staging; # added 2018-01-08
winusb = woeusb; # added 2017-12-22
winswitch = throw "winswitch has been removed from nixpkgs."; # added 2019-12-10
wireguard = wireguard-tools; # added 2018-05-19
morituri = whipper; # added 2018-09-13
xfceUnstable = xfce4-14; # added 2019-09-17

View File

@ -21875,8 +21875,6 @@ in
wily = callPackage ../applications/editors/wily { };
winswitch = callPackage ../tools/X11/winswitch { };
wings = callPackage ../applications/graphics/wings {
erlang = erlangR21;
};