Skip to content

Commit

Permalink
autogen: make reproducible
Browse files Browse the repository at this point in the history
  • Loading branch information
zimbatm committed Oct 31, 2020
1 parent c409f69 commit f4b8ad0
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions pkgs/development/tools/misc/autogen/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f4b8ad0

Please sign in to comment.