mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
pkgs/development/tools/misc/distcc: allow users to override sysconfdir
svn path=/nixpkgs/trunk/; revision=24486
This commit is contained in:
parent
35dc7d6f3c
commit
4f784157f1
@ -1,8 +1,12 @@
|
||||
{stdenv, fetchurl, popt, avahi, pkgconfig, python, gtk, static ? false}:
|
||||
{ stdenv, fetchurl, popt, avahi, pkgconfig, python, gtk
|
||||
, sysconfDir ? "" # set this parameter to override the default value $out/etc
|
||||
, static ? false
|
||||
}:
|
||||
|
||||
let name = "distcc";
|
||||
version = "3.1";
|
||||
let name = "distcc";
|
||||
version = "3.1";
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "${name}-${version}";
|
||||
src = fetchurl {
|
||||
@ -15,6 +19,7 @@ stdenv.mkDerivation {
|
||||
''
|
||||
configureFlagsArray=( CFLAGS="-O2 -fno-strict-aliasing"
|
||||
CXXFLAGS="-O2 -fno-strict-aliasing"
|
||||
${if sysconfDir == "" then "" else "--sysconfdir=${sysconfDir}"}
|
||||
${if static then "LDFLAGS=-static" else ""}
|
||||
--with${if static == true || popt == null then "" else "out"}-included-popt
|
||||
--with${if avahi != null then "" else "out"}-avahi
|
||||
@ -22,6 +27,7 @@ stdenv.mkDerivation {
|
||||
--without-gnome
|
||||
--enable-rfc2553
|
||||
)
|
||||
installFlags="sysconfdir=$out/etc";
|
||||
'';
|
||||
patches = [ ./20-minute-io-timeout.patch ];
|
||||
|
||||
@ -32,5 +38,8 @@ stdenv.mkDerivation {
|
||||
description = "a fast, free distributed C/C++ compiler";
|
||||
homepage = "http://distcc.org";
|
||||
license = "GPL";
|
||||
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
maintainers = [ stdenv.lib.maintainers.simons ];
|
||||
};
|
||||
}
|
||||
|
@ -2348,9 +2348,7 @@ let
|
||||
|
||||
ddd = callPackage ../development/tools/misc/ddd { };
|
||||
|
||||
distcc = callPackage ../development/tools/misc/distcc {
|
||||
static = false;
|
||||
};
|
||||
distcc = callPackage ../development/tools/misc/distcc { };
|
||||
|
||||
docutils = builderDefsPackage (import ../development/tools/documentation/docutils) {
|
||||
inherit python pil makeWrapper;
|
||||
|
Loading…
Reference in New Issue
Block a user