forked from mirrors/nixpkgs
distcc 3.1: initial version
svn path=/nixpkgs/trunk/; revision=17893
This commit is contained in:
parent
24661f4c45
commit
97166d8a20
34
pkgs/development/tools/misc/distcc/default.nix
Normal file
34
pkgs/development/tools/misc/distcc/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{stdenv, fetchurl, popt, avahi, pkgconfig, python, gtk}:
|
||||
|
||||
let name = "distcc";
|
||||
version = "3.1";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "${name}-${version}";
|
||||
src = fetchurl {
|
||||
url = "http://distcc.googlecode.com/files/${name}-${version}.tar.bz2";
|
||||
sha256 = "f55dbafd76bed3ce57e1bbcdab1329227808890d90f4c724fcd2d53f934ddd89";
|
||||
};
|
||||
|
||||
buildInputs = [popt avahi pkgconfig python gtk];
|
||||
preConfigure =
|
||||
''
|
||||
configureFlagsArray=( CFLAGS="-O2 -fno-strict-aliasing"
|
||||
CXXFLAGS="-O2 -fno-strict-aliasing"
|
||||
--with${if popt == null then "" else "out"}-included-popt
|
||||
--with${if avahi != null then "" else "out"}-avahi
|
||||
--with${if gtk != null then "" else "out"}-gtk
|
||||
--without-gnome
|
||||
--enable-rfc2553
|
||||
)
|
||||
'';
|
||||
|
||||
# The test suite fails because it uses hard-coded paths, i.e. /usr/bin/gcc.
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "a fast, free distributed C/C++ compiler";
|
||||
homepage = "http://distcc.org";
|
||||
license = "GPL";
|
||||
};
|
||||
}
|
|
@ -2683,6 +2683,11 @@ let
|
|||
inherit (xlibs) libX11 libXt;
|
||||
};
|
||||
|
||||
distcc = import ../development/tools/misc/distcc {
|
||||
inherit fetchurl stdenv popt avahi pkgconfig python;
|
||||
inherit (gtkLibs) gtk;
|
||||
};
|
||||
|
||||
docutils = builderDefsPackage (import ../development/tools/documentation/docutils) {
|
||||
inherit python pil makeWrapper;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue