diff options
author | zimbatm <zimbatm@zimbatm.com> | 2020-10-31 23:27:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-31 23:27:12 +0100 |
commit | 6cc483b6c23821158c0f9310b6f5bacd9d3bfa58 (patch) | |
tree | 175f9925eeb67b73b0fd69b931d1b94eef651607 /pkgs/development/tools/misc/autogen | |
parent | c409f694807e8cd16db8e2affb630073c1aadc48 (diff) | |
download | nixpkgs-6cc483b6c23821158c0f9310b6f5bacd9d3bfa58.tar nixpkgs-6cc483b6c23821158c0f9310b6f5bacd9d3bfa58.tar.gz nixpkgs-6cc483b6c23821158c0f9310b6f5bacd9d3bfa58.tar.bz2 nixpkgs-6cc483b6c23821158c0f9310b6f5bacd9d3bfa58.tar.lz nixpkgs-6cc483b6c23821158c0f9310b6f5bacd9d3bfa58.tar.xz nixpkgs-6cc483b6c23821158c0f9310b6f5bacd9d3bfa58.tar.zst nixpkgs-6cc483b6c23821158c0f9310b6f5bacd9d3bfa58.zip |
autogen: make reproducible (#102280)
Diffstat (limited to 'pkgs/development/tools/misc/autogen')
-rw-r--r-- | pkgs/development/tools/misc/autogen/default.nix | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/pkgs/development/tools/misc/autogen/default.nix b/pkgs/development/tools/misc/autogen/default.nix index 3e634bedfd1..87b8bde58ad 100644 --- a/pkgs/development/tools/misc/autogen/default.nix +++ b/pkgs/development/tools/misc/autogen/default.nix @@ -42,13 +42,23 @@ stdenv.mkDerivation rec { guile libxml2 ]; - configureFlags = stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ - "--with-libxml2=${libxml2.dev}" - "--with-libxml2-cflags=-I${libxml2.dev}/include/libxml2" - # the configure check for regcomp wants to run a host program - "libopts_cv_with_libregex=yes" - #"MAKEINFO=${buildPackages.texinfo}/bin/makeinfo" - ]; + configureFlags = + [ + # Make sure to use a static value for the timeout. If we do not set a value + # here autogen will select one based on the execution time of the configure + # phase which is not really reproducible. + # + # If you are curious about the number 78, it has been cargo-culted from + # Debian: https://salsa.debian.org/debian/autogen/-/blob/master/debian/rules#L21 + "--enable-timeout=78" + ] + ++ (stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ + "--with-libxml2=${libxml2.dev}" + "--with-libxml2-cflags=-I${libxml2.dev}/include/libxml2" + # the configure check for regcomp wants to run a host program + "libopts_cv_with_libregex=yes" + #"MAKEINFO=${buildPackages.texinfo}/bin/makeinfo" + ]); #doCheck = true; # not reliable |