adopt rest of the packages that were failing with the buildPythonPackage changes
This commit is contained in:
@@ -29,12 +29,10 @@ let
|
||||
}' winswitch/util/distro_packaging_util.py
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
python setup.py build
|
||||
'';
|
||||
|
||||
installCommand = ''
|
||||
PREFIX="$out" python ./setup.py install --prefix="$out"
|
||||
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;
|
||||
|
||||
@@ -13,7 +13,7 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
python cython pkgconfig
|
||||
cython pkgconfig
|
||||
|
||||
xorg.libX11 xorg.renderproto xorg.libXrender xorg.libXi xorg.inputproto xorg.kbproto
|
||||
xorg.randrproto xorg.damageproto xorg.compositeproto xorg.xextproto xorg.recordproto
|
||||
@@ -33,9 +33,15 @@ buildPythonPackage rec {
|
||||
# they don't have automated testing out of the box? http://xpra.org/trac/ticket/177
|
||||
doCheck = false;
|
||||
|
||||
buildPhase = ''
|
||||
NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags gtk+-2.0) $(pkg-config --cflags pygtk-2.0) $(pkg-config --cflags xtst)"
|
||||
python ./setup.py build --enable-Xdummy
|
||||
preBuild = ''
|
||||
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags gtk+-2.0) $(pkg-config --cflags pygtk-2.0) $(pkg-config --cflags xtst)"
|
||||
'';
|
||||
setupPyBuildFlags = ["--enable-Xdummy"];
|
||||
|
||||
preInstall = ''
|
||||
# see https://bitbucket.org/pypa/setuptools/issue/130/install_data-doesnt-respect-prefix
|
||||
${python}/bin/${python.executable} setup.py install_data --install-dir=$out --root=$out
|
||||
sed -i '/ = data_files/d' setup.py
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -1,62 +1,41 @@
|
||||
x@{builderDefsPackage
|
||||
, python, gtk, pygtk, gnutls, cairo, libtool, glib, pkgconfig, libtasn1
|
||||
, libffi, cyrus_sasl, intltool, perl, perlPackages, firefoxPkgs
|
||||
, kbproto, libX11, libXext, xextproto, pygobject, libgcrypt
|
||||
, ...}:
|
||||
builderDefsPackage
|
||||
(a :
|
||||
let
|
||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
||||
["perlPackages" "firefoxPkgs"];
|
||||
{ stdenv, fetchurl
|
||||
, python, gtk, pygtk, gnutls, cairo, libtool, glib, pkgconfig, libtasn1
|
||||
, libffi, cyrus_sasl, intltool, perl, perlPackages, firefoxPkgs, pulseaudio
|
||||
, kbproto, libX11, libXext, xextproto, pygobject, libgcrypt }:
|
||||
|
||||
buildInputs = (map (n: builtins.getAttr n x)
|
||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames)))
|
||||
++ [perlPackages.TextCSV firefoxPkgs.xulrunner ];
|
||||
sourceInfo = rec {
|
||||
baseName="gtk-vnc";
|
||||
majorVersion="0.4";
|
||||
minorVersion="2";
|
||||
version="${majorVersion}.${minorVersion}";
|
||||
name="${baseName}-${version}";
|
||||
url="mirror://gnome/sources/${baseName}/${majorVersion}/${name}.tar.gz";
|
||||
hash="1fkhzwpw50rnwp51lsbny16p2ckzx5rkcaiaqvkd90vwnm2cccls";
|
||||
};
|
||||
in
|
||||
rec {
|
||||
src = a.fetchurl {
|
||||
url = sourceInfo.url;
|
||||
sha256 = sourceInfo.hash;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "gtk-vnc-${version}";
|
||||
version = "0.5.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/gtk-vnc/0.5/${name}.tar.xz";
|
||||
sha256 = "1bww2ihxb3zzvifdrcsy1lifr664pvikq17hmr1hsm8fyk4ad46l";
|
||||
};
|
||||
|
||||
inherit (sourceInfo) name version;
|
||||
inherit buildInputs;
|
||||
buildInputs = [
|
||||
python gtk pygtk gnutls cairo libtool pkgconfig glib libffi libgcrypt
|
||||
intltool cyrus_sasl pulseaudio pygobject perl perlPackages.TextCSV
|
||||
];
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-fstack-protector-all";
|
||||
configureFlags = [
|
||||
"--with-python"
|
||||
"--with-examples"
|
||||
];
|
||||
|
||||
/* doConfigure should be removed if not needed */
|
||||
phaseNames = ["fixMakefiles" "doConfigure" "doMakeInstall"];
|
||||
makeFlags = "CODEGENDIR=${pygobject}/share/pygobject/2.0/codegen/ DEFSDIR=${pygtk}/share/pygtk/2.0/defs/";
|
||||
|
||||
fixMakefiles = a.fullDepEntry ''
|
||||
find . -name 'Makefile*' -exec sed -i '{}' -e 's@=codegendir pygtk-2.0@=codegendir pygobject-2.0@' ';'
|
||||
'' ["minInit" "doUnpack"];
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.lib; {
|
||||
description = "A GTK VNC widget";
|
||||
maintainers = with a.lib.maintainers;
|
||||
[
|
||||
raskin
|
||||
];
|
||||
platforms = with a.lib.platforms;
|
||||
linux;
|
||||
license = a.lib.licenses.lgpl21;
|
||||
maintainers = with maintainers; [ raskin ];
|
||||
platforms = platforms.linux;
|
||||
license = licenses.lgpl21;
|
||||
};
|
||||
|
||||
passthru = {
|
||||
updateInfo = {
|
||||
downloadPage = "http://ftp.gnome.org/pub/GNOME/sources/gtk-vnc";
|
||||
};
|
||||
};
|
||||
}) x
|
||||
|
||||
}
|
||||
|
||||
@@ -11,8 +11,6 @@ buildPythonPackage rec {
|
||||
|
||||
doCheck = false;
|
||||
|
||||
installCommand = "python setup.py install --prefix=\"\$prefix\"";
|
||||
|
||||
meta = {
|
||||
description = "A program for retrieving mail";
|
||||
maintainers = [ stdenv.lib.maintainers.raskin stdenv.lib.maintainers.iElectric ];
|
||||
|
||||
@@ -39,10 +39,6 @@ pythonPackages.buildPythonPackage {
|
||||
|
||||
doCheck = false;
|
||||
|
||||
installCommand = ''
|
||||
python setup.py install --prefix=$out
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://www.fail2ban.org/;
|
||||
description = "A program that scans log files for repeated failing login attempts and bans IP addresses";
|
||||
|
||||
Reference in New Issue
Block a user