fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ stdenv, buildPackages, fetchurl, which, pkgconfig, texinfo, perl, guile, libxml2 }:
2
3stdenv.mkDerivation rec {
4 name = "autogen-${version}";
5 version = "5.18.12";
6
7 src = fetchurl {
8 url = "mirror://gnu/autogen/rel${version}/autogen-${version}.tar.xz";
9 sha256 = "1n5zq4872sakvz9c7ncsdcfp0z8rsybsxvbmhkpbd19ii0pacfxy";
10 };
11
12 outputs = [ "bin" "dev" "lib" "out" "man" "info" ];
13
14 nativeBuildInputs = [ which pkgconfig perl ]
15 # autogen needs a build autogen when cross-compiling
16 ++ stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
17 buildPackages.autogen buildPackages.texinfo ];
18 buildInputs = [
19 guile libxml2
20 ];
21
22 configureFlags = stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
23 "--with-libxml2=${libxml2.dev}"
24 "--with-libxml2-cflags=-I${libxml2.dev}/include/libxml2"
25 # the configure check for regcomp wants to run a host program
26 "libopts_cv_with_libregex=yes"
27 #"MAKEINFO=${buildPackages.texinfo}/bin/makeinfo"
28 ];
29
30 postPatch = ''
31 # Fix a broken sed expression used for detecting the minor
32 # version of guile we are using
33 sed -i "s,sed '.*-I.*',sed 's/\\\(^\\\| \\\)-I/\\\1/g',g" configure
34
35 substituteInPlace pkg/libopts/mklibsrc.sh --replace /tmp $TMPDIR
36 '';
37
38 postInstall = ''
39 mkdir -p $dev/bin
40 mv $bin/bin/autoopts-config $dev/bin
41
42 for f in $lib/lib/autogen/tpl-config.tlib $out/share/autogen/tpl-config.tlib; do
43 sed -e "s|$dev/include|/no-such-autogen-include-path|" -i $f
44 sed -e "s|$bin/bin|/no-such-autogen-bin-path|" -i $f
45 sed -e "s|$lib/lib|/no-such-autogen-lib-path|" -i $f
46 done
47 '';
48
49 #doCheck = true; # 2 tests fail because of missing /dev/tty
50
51 meta = with stdenv.lib; {
52 description = "Automated text and program generation tool";
53 license = with licenses; [ gpl3Plus lgpl3Plus ];
54 homepage = http://www.gnu.org/software/autogen/;
55 platforms = platforms.all;
56 maintainers = [ ];
57 };
58}