aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/tools/misc/distcc
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2009-10-20 11:54:49 +0000
committerPeter Simons <simons@cryp.to>2009-10-20 11:54:49 +0000
commit97166d8a20b4282e3eeebc57a5891a311e1a12a0 (patch)
tree74b2d27e9e76e4dbe6546f9d3d9cbf4b2629b47b /pkgs/development/tools/misc/distcc
parent24661f4c45c2551bd0102ec1218742fa0cdb8ef2 (diff)
distcc 3.1: initial version
svn path=/nixpkgs/trunk/; revision=17893
Diffstat (limited to 'pkgs/development/tools/misc/distcc')
-rw-r--r--pkgs/development/tools/misc/distcc/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/distcc/default.nix b/pkgs/development/tools/misc/distcc/default.nix
new file mode 100644
index 00000000000..03fc9badb05
--- /dev/null
+++ b/pkgs/development/tools/misc/distcc/default.nix
@@ -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";
+ };
+}