From d04e57ea6a39992cb90d59b212576b090328ae60 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Thu, 31 Dec 2015 04:36:54 +0100 Subject: zpaq{,d}: un-break compileFlags and stop using -march=native MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Running zpaq on an older but not ancient 64-bit Intel server aborts with an ‘Illegal instruction’ error. Turns out the build expression was using -march=native to generate distibution binaries... Change this to more conservative, portable settings which should cover ‘all’ CPUs. It may run slightly slower — but that at least implies running. As a nice side effect, all common compile flags are now back in `compileFlags` whence they came, and actually used consistently. --- pkgs/tools/archivers/zpaq/default.nix | 15 ++++++++------- pkgs/tools/archivers/zpaq/zpaqd.nix | 15 ++++++++------- 2 files changed, 16 insertions(+), 14 deletions(-) (limited to 'pkgs/tools/archivers') diff --git a/pkgs/tools/archivers/zpaq/default.nix b/pkgs/tools/archivers/zpaq/default.nix index c8f3a890487..fddb3cbfb15 100644 --- a/pkgs/tools/archivers/zpaq/default.nix +++ b/pkgs/tools/archivers/zpaq/default.nix @@ -14,11 +14,12 @@ let ]; isUnix = with stdenv; isLinux || isGNU || isDarwin || isFreeBSD || isOpenBSD; isx86 = stdenv.isi686 || stdenv.isx86_64; - compileFlags = "" - + (stdenv.lib.optionalString isUnix " -Dunix -pthread ") - + (stdenv.lib.optionalString (!isx86) " -DNOJIT ") - + " -DNDEBUG " - + " -fPIC " + compileFlags = with stdenv; "" + + (lib.optionalString (isUnix) " -Dunix -pthread") + + (lib.optionalString (isi686) " -march=i686") + + (lib.optionalString (isx86_64) " -march=nocona") + + (lib.optionalString (!isx86) " -DNOJIT") + + " -O3 -mtune=generic -DNDEBUG" ; in stdenv.mkDerivation { @@ -29,8 +30,8 @@ stdenv.mkDerivation { }; sourceRoot = "."; buildPhase = '' - g++ -O3 -march=native -Dunix libzpaq.cpp -pthread --shared -o libzpaq.so -fPIC - g++ -O3 -march=native -Dunix zpaq.cpp -lzpaq -L. -L"$out/lib" -pthread -o zpaq + g++ ${compileFlags} -fPIC --shared libzpaq.cpp -o libzpaq.so + g++ ${compileFlags} -L. -L"$out/lib" -lzpaq zpaq.cpp -o zpaq ''; installPhase = '' mkdir -p "$out"/{bin,include,lib,share/doc/zpaq} diff --git a/pkgs/tools/archivers/zpaq/zpaqd.nix b/pkgs/tools/archivers/zpaq/zpaqd.nix index 65f40f68f55..5518a94ba21 100644 --- a/pkgs/tools/archivers/zpaq/zpaqd.nix +++ b/pkgs/tools/archivers/zpaq/zpaqd.nix @@ -14,11 +14,12 @@ let ]; isUnix = with stdenv; isLinux || isGNU || isDarwin || isFreeBSD || isOpenBSD; isx86 = stdenv.isi686 || stdenv.isx86_64; - compileFlags = "" - + (stdenv.lib.optionalString isUnix " -Dunix -pthread ") - + (stdenv.lib.optionalString (!isx86) " -DNOJIT ") - + " -DNDEBUG " - + " -fPIC " + compileFlags = with stdenv; "" + + (lib.optionalString (isUnix) " -Dunix -pthread") + + (lib.optionalString (isi686) " -march=i686") + + (lib.optionalString (isx86_64) " -march=nocona") + + (lib.optionalString (!isx86) " -DNOJIT") + + " -O3 -mtune=generic -DNDEBUG" ; in stdenv.mkDerivation { @@ -29,8 +30,8 @@ stdenv.mkDerivation { }; sourceRoot = "."; buildPhase = '' - g++ -shared -O3 libzpaq.cpp ${compileFlags} -o libzpaq.so - g++ -O3 -L. -L"$out/lib" -lzpaq zpaqd.cpp -o zpaqd + g++ ${compileFlags} -fPIC --shared libzpaq.cpp -o libzpaq.so + g++ ${compileFlags} -L. -L"$out/lib" -lzpaq zpaqd.cpp -o zpaqd ''; installPhase = '' mkdir -p "$out"/{bin,include,lib,share/doc/zpaq} -- cgit 1.4.1 From 4ae6598c0b4a4439939c47e20317150088c61bb6 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Thu, 31 Dec 2015 04:50:57 +0100 Subject: zpaq{,d}: clarify; improve description; maintain --- pkgs/tools/archivers/zpaq/default.nix | 21 ++++++++++++--------- pkgs/tools/archivers/zpaq/zpaqd.nix | 21 ++++++++++++--------- 2 files changed, 24 insertions(+), 18 deletions(-) (limited to 'pkgs/tools/archivers') diff --git a/pkgs/tools/archivers/zpaq/default.nix b/pkgs/tools/archivers/zpaq/default.nix index fddb3cbfb15..2b761df3863 100644 --- a/pkgs/tools/archivers/zpaq/default.nix +++ b/pkgs/tools/archivers/zpaq/default.nix @@ -9,9 +9,6 @@ let url="http://mattmahoney.net/dc/zpaq705.zip"; sha256="0d1knq4f6693nvbwjx4wznb45hm4zyn4k88xvhynyk0dcbiy7ayq"; }; - buildInputs = [ - unzip - ]; isUnix = with stdenv; isLinux || isGNU || isDarwin || isFreeBSD || isOpenBSD; isx86 = stdenv.isi686 || stdenv.isx86_64; compileFlags = with stdenv; "" @@ -24,15 +21,20 @@ let in stdenv.mkDerivation { inherit (s) name version; - inherit buildInputs; + src = fetchurl { inherit (s) url sha256; }; + sourceRoot = "."; + + buildInputs = [ unzip ]; + buildPhase = '' g++ ${compileFlags} -fPIC --shared libzpaq.cpp -o libzpaq.so g++ ${compileFlags} -L. -L"$out/lib" -lzpaq zpaq.cpp -o zpaq ''; + installPhase = '' mkdir -p "$out"/{bin,include,lib,share/doc/zpaq} cp libzpaq.so "$out/lib" @@ -40,12 +42,13 @@ stdenv.mkDerivation { cp libzpaq.h "$out/include" cp readme.txt "$out/share/doc/zpaq" ''; - meta = { + + meta = with stdenv.lib; { inherit (s) version; - description = ''An archiver with backward compatibility of versions for decompression''; - license = stdenv.lib.licenses.gpl3Plus ; - maintainers = [stdenv.lib.maintainers.raskin]; - platforms = stdenv.lib.platforms.linux; + description = "Incremental journaling backup utility and archiver"; + license = licenses.gpl3Plus ; + maintainers = with maintainers; [ raskin nckx ]; + platforms = platforms.linux; homepage = "http://mattmahoney.net/dc/zpaq.html"; }; } diff --git a/pkgs/tools/archivers/zpaq/zpaqd.nix b/pkgs/tools/archivers/zpaq/zpaqd.nix index 5518a94ba21..7adcd3cf6e2 100644 --- a/pkgs/tools/archivers/zpaq/zpaqd.nix +++ b/pkgs/tools/archivers/zpaq/zpaqd.nix @@ -9,9 +9,6 @@ let url="http://mattmahoney.net/dc/zpaqd633.zip"; sha256="00zgc4mcmsd3d4afgzmrp6ymcyy8gb9kap815d5a3f9zhhzkz4dx"; }; - buildInputs = [ - unzip - ]; isUnix = with stdenv; isLinux || isGNU || isDarwin || isFreeBSD || isOpenBSD; isx86 = stdenv.isi686 || stdenv.isx86_64; compileFlags = with stdenv; "" @@ -24,15 +21,20 @@ let in stdenv.mkDerivation { inherit (s) name version; - inherit buildInputs; + src = fetchurl { inherit (s) url sha256; }; + sourceRoot = "."; + + buildInputs = [ unzip ]; + buildPhase = '' g++ ${compileFlags} -fPIC --shared libzpaq.cpp -o libzpaq.so g++ ${compileFlags} -L. -L"$out/lib" -lzpaq zpaqd.cpp -o zpaqd ''; + installPhase = '' mkdir -p "$out"/{bin,include,lib,share/doc/zpaq} cp libzpaq.so "$out/lib" @@ -40,11 +42,12 @@ stdenv.mkDerivation { cp libzpaq.h "$out/include" cp readme_zpaqd.txt "$out/share/doc/zpaq" ''; - meta = { + + meta = with stdenv.lib; { inherit (s) version; - description = ''ZPAQ archiver decompressor and algorithm development tool''; - license = stdenv.lib.licenses.gpl3Plus ; - maintainers = [stdenv.lib.maintainers.raskin]; - platforms = stdenv.lib.platforms.linux; + description = "ZPAQ archive decompressor and algorithm development tool"; + license = licenses.gpl3Plus ; + maintainers = with maintainers; [ raskin nckx ]; + platforms = platforms.linux; }; } -- cgit 1.4.1 From 3b065f0215615566c9ae4de91820892d191f9588 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Thu, 31 Dec 2015 05:09:13 +0100 Subject: zpaqd: fix typo... --- pkgs/tools/archivers/zpaq/zpaqd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/tools/archivers') diff --git a/pkgs/tools/archivers/zpaq/zpaqd.nix b/pkgs/tools/archivers/zpaq/zpaqd.nix index 7adcd3cf6e2..6a7891d2ebe 100644 --- a/pkgs/tools/archivers/zpaq/zpaqd.nix +++ b/pkgs/tools/archivers/zpaq/zpaqd.nix @@ -45,7 +45,7 @@ stdenv.mkDerivation { meta = with stdenv.lib; { inherit (s) version; - description = "ZPAQ archive decompressor and algorithm development tool"; + description = "ZPAQ archive (de)compressor and algorithm development tool"; license = licenses.gpl3Plus ; maintainers = with maintainers; [ raskin nckx ]; platforms = platforms.linux; -- cgit 1.4.1 From 9897b356612c4bb06a9c9d688da52134dfe8fb95 Mon Sep 17 00:00:00 2001 From: janus Date: Thu, 26 Nov 2015 17:33:58 +0000 Subject: FreeBSD: patch expat, kerberos, libedit, ossp-uuid, lz4, sharutils, add libelf-freebsd --- pkgs/development/libraries/expat/default.nix | 3 ++ pkgs/development/libraries/kerberos/krb5.nix | 10 ++-- pkgs/development/libraries/libedit/default.nix | 2 +- .../libraries/libedit/freebsd-wchar.patch | 13 ++++++ .../libraries/libelf-freebsd/default.nix | 28 +++++++++++ .../development/libraries/libossp-uuid/default.nix | 2 + pkgs/stdenv/freebsd/default.nix | 4 +- pkgs/tools/archivers/sharutils/default.nix | 2 +- pkgs/tools/compression/lz4/default.nix | 2 + .../tools/compression/lz4/install-on-freebsd.patch | 54 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +- pkgs/top-level/perl-packages.nix | 4 +- 12 files changed, 117 insertions(+), 11 deletions(-) create mode 100644 pkgs/development/libraries/libedit/freebsd-wchar.patch create mode 100644 pkgs/development/libraries/libelf-freebsd/default.nix create mode 100644 pkgs/tools/compression/lz4/install-on-freebsd.patch (limited to 'pkgs/tools/archivers') diff --git a/pkgs/development/libraries/expat/default.nix b/pkgs/development/libraries/expat/default.nix index 05cfeaee423..78e2da3ffdb 100644 --- a/pkgs/development/libraries/expat/default.nix +++ b/pkgs/development/libraries/expat/default.nix @@ -10,6 +10,9 @@ stdenv.mkDerivation rec { patches = [ ./CVE-2015-1283.patch ]; + configureFlags = stdenv.lib.optionalString stdenv.isFreeBSD "--with-pic"; + # NIX_CFLAGS_COMPILE = stdenv.lib.optionalString (stdenv.isFreeBSD) "-fPIC"; + meta = with stdenv.lib; { homepage = http://www.libexpat.org/; description = "A stream-oriented XML parser library written in C"; diff --git a/pkgs/development/libraries/kerberos/krb5.nix b/pkgs/development/libraries/kerberos/krb5.nix index 2e5e48891b8..b263a4ef06c 100644 --- a/pkgs/development/libraries/kerberos/krb5.nix +++ b/pkgs/development/libraries/kerberos/krb5.nix @@ -11,13 +11,15 @@ in with stdenv.lib; stdenv.mkDerivation rec { name = "${type}krb5-${version}"; - version = "1.13.2"; + version = "1.14"; src = fetchurl { - url = "${meta.homepage}dist/krb5/1.13/krb5-${version}-signed.tar"; - sha256 = "1qbdzyrws7d0q4filsibh28z54pd5l987jr0ygv43iq9085w6a75"; + url = "${meta.homepage}dist/krb5/1.14/krb5-${version}.tar.gz"; + sha256 = "1sgr61cnkgc5xazijaww6wpn5fnxl9vyj9ixk3r3y7ikv3x0gnyf"; }; + configureFlags = stdenv.lib.optionalString stdenv.isFreeBSD ''WARN_CFLAGS=""''; + nativeBuildInputs = [ pkgconfig perl yacc ] # Provides the mig command used by the build scripts ++ stdenv.lib.optional stdenv.isDarwin bootstrap_cmds; @@ -26,7 +28,7 @@ stdenv.mkDerivation rec { unpackPhase = '' tar -xf $src - tar -xzf krb5-${version}.tar.gz + #tar -xzf krb5-${version}.tar.gz cd krb5-${version}/src ''; diff --git a/pkgs/development/libraries/libedit/default.nix b/pkgs/development/libraries/libedit/default.nix index dc8ecf7e95d..5234c16e135 100644 --- a/pkgs/development/libraries/libedit/default.nix +++ b/pkgs/development/libraries/libedit/default.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { patches = if stdenv.isCygwin then [ ./01-cygwin.patch - ] else null; + ] else [ ] ++ [ ./freebsd-wchar.patch ]; postInstall = '' find $out/lib -type f | grep '\.\(la\|pc\)''$' | xargs sed -i \ diff --git a/pkgs/development/libraries/libedit/freebsd-wchar.patch b/pkgs/development/libraries/libedit/freebsd-wchar.patch new file mode 100644 index 00000000000..6bf7fb0ef69 --- /dev/null +++ b/pkgs/development/libraries/libedit/freebsd-wchar.patch @@ -0,0 +1,13 @@ +diff --git a/src/chartype.h b/src/chartype.h +index 0beee17..4ac86f3 100644 +--- a/src/chartype.h ++++ b/src/chartype.h +@@ -44,7 +44,7 @@ + * supports non-BMP code points without requiring UTF-16, but nothing + * seems to actually advertise this properly, despite Unicode 3.1 having + * been around since 2001... */ +-#if !defined(__NetBSD__) && !defined(__sun) && !(defined(__APPLE__) && defined(__MACH__)) && !defined(__OpenBSD__) ++#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__sun) && !(defined(__APPLE__) && defined(__MACH__)) && !defined(__OpenBSD__) + #ifndef __STDC_ISO_10646__ + /* In many places it is assumed that the first 127 code points are ASCII + * compatible, so ensure wchar_t indeed does ISO 10646 and not some other diff --git a/pkgs/development/libraries/libelf-freebsd/default.nix b/pkgs/development/libraries/libelf-freebsd/default.nix new file mode 100644 index 00000000000..ee0b6d50408 --- /dev/null +++ b/pkgs/development/libraries/libelf-freebsd/default.nix @@ -0,0 +1,28 @@ +{ fetchsvn, stdenv }: + +stdenv.mkDerivation (rec { + version = "3258"; + name = "libelf-freebsd-${version}"; + + #src = fetchurl { + # url = "http://sourceforge.net/code-snapshots/svn/e/el/elftoolchain/code/elftoolchain-code-${version}-trunk.zip"; + # sha256 = "0vf7s9dwk2xkmhb79aigqm0x0yfbw1j0b9ksm51207qwr179n6jr"; + #}; + src = fetchsvn { + url = svn://svn.code.sf.net/p/elftoolchain/code/trunk ; + rev = 3258; + }; + + doCheck = true; + + meta = { + description = "Essential compilation tools and libraries for building and analyzing ELF based program images"; + + homepage = https://sourceforge.net/p/elftoolchain/wiki/Home/; + + license = stdenv.lib.licenses.bsd2; + + platforms = stdenv.lib.platforms.freebsd; + maintainers = [ ]; + }; +}) diff --git a/pkgs/development/libraries/libossp-uuid/default.nix b/pkgs/development/libraries/libossp-uuid/default.nix index 119f4111666..ddfc2a5132c 100644 --- a/pkgs/development/libraries/libossp-uuid/default.nix +++ b/pkgs/development/libraries/libossp-uuid/default.nix @@ -10,6 +10,8 @@ stdenv.mkDerivation { sha256= "11a615225baa5f8bb686824423f50e4427acd3f70d394765bdff32801f0fd5b0"; }; + configureFlags = stdenv.lib.optional stdenv.isFreeBSD "--with-pic"; + meta = with stdenv.lib; { homepage = http://www.ossp.org/pkg/lib/uuid/; description = "OSSP uuid ISO-C and C++ shared library"; diff --git a/pkgs/stdenv/freebsd/default.nix b/pkgs/stdenv/freebsd/default.nix index de39e79102f..fcc3a14d487 100644 --- a/pkgs/stdenv/freebsd/default.nix +++ b/pkgs/stdenv/freebsd/default.nix @@ -43,7 +43,7 @@ rec { preHook = '' export NIX_IGNORE_LD_THROUGH_GCC=1 - export NIX_DONT_SET_RPATH=1 + # export NIX_DONT_SET_RPATH=1 export NIX_NO_SELF_RPATH=1 dontFixLibtool=1 stripAllFlags=" " # the Darwin "strip" command doesn't know "-s" @@ -118,7 +118,7 @@ rec { cc = import ../../build-support/cc-wrapper { inherit stdenv; nativeTools = true; - nativePrefix = "/usr/local/bin"; + nativePrefix = "/usr/local"; nativeLibc = true; cc = stage2.stdenv.cc; #pkgs.llvmPackages.clang-unwrapped; isClang = true; diff --git a/pkgs/tools/archivers/sharutils/default.nix b/pkgs/tools/archivers/sharutils/default.nix index a7135346d2f..e806a962eab 100644 --- a/pkgs/tools/archivers/sharutils/default.nix +++ b/pkgs/tools/archivers/sharutils/default.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { preConfigure = '' # Fix for building on Glibc 2.16. Won't be needed once the # gnulib in sharutils is updated. - sed -i ${stdenv.lib.optionalString ((stdenv.isFreeBSD || stdenv.isOpenBSD) && stdenv.cc.nativeTools) "''"} '/gets is a security hole/d' lib/stdio.in.h + sed -i ${stdenv.lib.optionalString (stdenv.isOpenBSD && stdenv.cc.nativeTools) "''"} '/gets is a security hole/d' lib/stdio.in.h ''; # GNU Gettext is needed on non-GNU platforms. diff --git a/pkgs/tools/compression/lz4/default.nix b/pkgs/tools/compression/lz4/default.nix index 6c5d28d6bcc..13236da5ab4 100644 --- a/pkgs/tools/compression/lz4/default.nix +++ b/pkgs/tools/compression/lz4/default.nix @@ -20,6 +20,8 @@ stdenv.mkDerivation rec { doCheck = false; # tests take a very long time checkTarget = "test"; + patches = [ ./install-on-freebsd.patch ] ; + meta = with stdenv.lib; { inherit version; description = "Extremely fast compression algorithm"; diff --git a/pkgs/tools/compression/lz4/install-on-freebsd.patch b/pkgs/tools/compression/lz4/install-on-freebsd.patch new file mode 100644 index 00000000000..12a2bf72f4e --- /dev/null +++ b/pkgs/tools/compression/lz4/install-on-freebsd.patch @@ -0,0 +1,54 @@ +diff --git a/Makefile b/Makefile +index d1b0d0c..f8d6a2d 100644 +--- a/Makefile ++++ b/Makefile +@@ -80,8 +80,6 @@ clean: + + + #------------------------------------------------------------------------ +-#make install is validated only for Linux, OSX, kFreeBSD and Hurd targets +-ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU)) + + install: + @cd $(LZ4DIR); $(MAKE) -e install +@@ -129,4 +127,3 @@ examples: + prg-travis: + @cd $(PRGDIR); $(MAKE) -e test-travis + +-endif +diff --git a/lib/Makefile b/lib/Makefile +index 02ddd3b..26ed18f 100644 +--- a/lib/Makefile ++++ b/lib/Makefile +@@ -80,8 +80,6 @@ clean: + + + #------------------------------------------------------------------------ +-#make install is validated only for Linux, OSX, kFreeBSD and Hurd targets +-ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU)) + + liblz4.pc: liblz4.pc.in Makefile + @echo creating pkgconfig +@@ -114,4 +112,3 @@ uninstall: + @[ -f $(DESTDIR)$(INCLUDEDIR)/lz4frame.h ] && rm -f $(DESTDIR)$(INCLUDEDIR)/lz4frame.h + @echo lz4 libraries successfully uninstalled + +-endif +diff --git a/programs/Makefile b/programs/Makefile +index f422902..6943363 100644 +--- a/programs/Makefile ++++ b/programs/Makefile +@@ -113,8 +113,6 @@ clean: + + + #------------------------------------------------------------------------ +-#make install is validated only for Linux, OSX, kFreeBSD and Hurd targets +-ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU)) + + install: lz4 lz4c + @echo Installing binaries +@@ -307,4 +305,3 @@ test-mem: lz4 datagen fuzzer frametest fullbench + test-mem32: lz4c32 datagen + # unfortunately, valgrind doesn't seem to work with non-native binary. If someone knows how to do a valgrind-test on a 32-bits exe with a 64-bits system... + +-endif diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 99271970460..fe9d9eccaee 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7109,7 +7109,9 @@ let libedit = callPackage ../development/libraries/libedit { }; - libelf = callPackage ../development/libraries/libelf { }; + libelf = if stdenv.isFreeBSD + then callPackage ../development/libraries/libelf-freebsd { } + else callPackage ../development/libraries/libelf { }; libetpan = callPackage ../development/libraries/libetpan { }; diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 1d9211fae2f..e03634c7203 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -6338,8 +6338,8 @@ let self = _self // overrides; _self = with self; { LocaleGettext = buildPerlPackage { name = "LocaleGettext-1.05"; - buildInputs = stdenv.lib.optional (stdenv.isDarwin || stdenv.isCygwin) pkgs.gettext; - NIX_CFLAGS_LINK = if (stdenv.isDarwin || stdenv.isCygwin) then "-lintl" else null; + buildInputs = stdenv.lib.optional (stdenv.isFreeBSD || stdenv.isDarwin || stdenv.isCygwin) pkgs.gettext; + NIX_CFLAGS_LINK = if (stdenv.isFreeBSD || stdenv.isDarwin || stdenv.isCygwin) then "-lintl" else null; src = fetchurl { url = mirror://cpan/authors/id/P/PV/PVANDRY/gettext-1.05.tar.gz; sha256 = "15262a00vx714szpx8p2z52wxkz46xp7acl72znwjydyq4ypydi7"; -- cgit 1.4.1 From 8781743edb2e9780b8ffeee3ab15b45118d535fd Mon Sep 17 00:00:00 2001 From: Vladimír Čunát Date: Sat, 2 Jan 2016 12:30:28 +0100 Subject: unrar: fix #12084: wrong license --- pkgs/tools/archivers/unrar/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/tools/archivers') diff --git a/pkgs/tools/archivers/unrar/default.nix b/pkgs/tools/archivers/unrar/default.nix index 404927e0939..8e9d1530cdf 100644 --- a/pkgs/tools/archivers/unrar/default.nix +++ b/pkgs/tools/archivers/unrar/default.nix @@ -28,7 +28,7 @@ stdenv.mkDerivation { meta = with stdenv.lib; { description = "Utility for RAR archives"; homepage = http://www.rarlab.com/; - license = licenses.gpl2; + license = licenses.unfreeRedistributable; maintainers = [ maintainers.ehmry ]; platforms = platforms.all; }; -- cgit 1.4.1 From 0baa5abb9b9566190a4331e189b512c32d63545c Mon Sep 17 00:00:00 2001 From: Kranium Gikos Mendoza Date: Sat, 16 Jan 2016 15:29:32 +0800 Subject: unrar: 5.2.7 -> 5.3.9 --- pkgs/tools/archivers/unrar/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkgs/tools/archivers') diff --git a/pkgs/tools/archivers/unrar/default.nix b/pkgs/tools/archivers/unrar/default.nix index 8e9d1530cdf..49638ced16a 100644 --- a/pkgs/tools/archivers/unrar/default.nix +++ b/pkgs/tools/archivers/unrar/default.nix @@ -1,14 +1,14 @@ {stdenv, fetchurl}: let - version = "5.2.7"; + version = "5.3.9"; in stdenv.mkDerivation { name = "unrar-${version}"; src = fetchurl { url = "http://www.rarlab.com/rar/unrarsrc-${version}.tar.gz"; - sha256 = "1b1ggrqn020pvvh2ia98alqxpl1q3x65cb6zzqwv91rpjiz7a57g"; + sha256 = "0nsxwg1zp3s34wyjznwmy2cc5929yk7m5smq11cqdb6hmql3fngz"; }; preBuild = '' -- cgit 1.4.1 From 53b389327e34de319dc0dbda2b6bcab1a69db69d Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Sun, 17 Jan 2016 23:04:40 +0000 Subject: refactor to use autoreconfHook where possible Close #12446. --- pkgs/applications/audio/freewheeling/default.nix | 6 ++---- pkgs/applications/audio/ladspa-plugins/git.nix | 10 +++------- .../editors/emacs-modes/emacs-w3m/default.nix | 13 ++++++------- pkgs/applications/graphics/solvespace/default.nix | 20 ++++---------------- pkgs/applications/misc/evtest/default.nix | 6 ++---- pkgs/applications/misc/mysql-workbench/default.nix | 12 ++++-------- pkgs/applications/misc/rofi/default.nix | 8 ++------ .../pidgin-plugins/tox-prpl/default.nix | 7 ++----- .../science/astronomy/celestia/default.nix | 21 +++++++++------------ .../virtualization/open-vm-tools/default.nix | 9 ++++----- pkgs/development/libraries/cloog-ppl/default.nix | 11 +++-------- pkgs/development/libraries/dbus/default.nix | 11 ++++++----- pkgs/development/libraries/dotconf/default.nix | 6 ++---- pkgs/development/libraries/funambol/default.nix | 12 ++---------- pkgs/development/libraries/hivex/default.nix | 8 ++------ pkgs/development/libraries/libgksu/default.nix | 7 +++---- pkgs/development/libraries/libguestfs/default.nix | 8 ++------ pkgs/development/libraries/libivykis/default.nix | 6 ++---- pkgs/development/libraries/libpst/default.nix | 8 ++------ pkgs/development/libraries/librdf/default.nix | 14 ++++---------- .../libraries/libtoxcore/new-api/default.nix | 9 ++------- .../libraries/libtoxcore/old-api/default.nix | 8 ++------ pkgs/development/libraries/minizip/default.nix | 9 +++------ pkgs/development/libraries/pkcs11helper/default.nix | 8 +++----- pkgs/development/libraries/spice-gtk/default.nix | 12 +++++++----- pkgs/development/libraries/tremor/default.nix | 7 +++---- pkgs/games/rili/default.nix | 17 +++++++---------- pkgs/misc/emulators/vice/default.nix | 20 ++++++++++---------- pkgs/misc/screensavers/alock/default.nix | 5 ++--- .../os-specific/linux/xf86-input-mtrack/default.nix | 10 ++-------- .../os-specific/linux/xf86-video-nested/default.nix | 7 +++---- pkgs/servers/nosql/hyperdex/busybee.nix | 9 +++------ pkgs/servers/nosql/hyperdex/default.nix | 11 ++++------- pkgs/servers/nosql/hyperdex/hyperleveldb.nix | 6 +++--- pkgs/servers/nosql/hyperdex/libe.nix | 6 +++--- pkgs/servers/nosql/hyperdex/libmacaroons.nix | 10 +++++----- pkgs/servers/nosql/hyperdex/libpo6.nix | 6 +++--- pkgs/servers/nosql/hyperdex/replicant.nix | 10 ++++------ pkgs/servers/shellinabox/default.nix | 5 ++--- pkgs/tools/archivers/runzip/default.nix | 17 ++++++++--------- pkgs/tools/misc/grub/default.nix | 11 +++-------- pkgs/tools/misc/mdbtools/git.nix | 19 ++++++++++--------- pkgs/tools/misc/riemann-c-client/default.nix | 7 ++----- pkgs/tools/misc/xclip/default.nix | 8 +++----- pkgs/tools/networking/biosdevname/default.nix | 18 ++++++------------ pkgs/tools/networking/driftnet/default.nix | 11 +++++++---- pkgs/tools/networking/mu/default.nix | 14 +++++--------- pkgs/tools/networking/par2cmdline/default.nix | 6 ++---- pkgs/tools/text/recode/default.nix | 10 +++------- pkgs/top-level/all-packages.nix | 9 ++------- 50 files changed, 188 insertions(+), 320 deletions(-) (limited to 'pkgs/tools/archivers') diff --git a/pkgs/applications/audio/freewheeling/default.nix b/pkgs/applications/audio/freewheeling/default.nix index 63917cac6c0..f7330ee12f9 100644 --- a/pkgs/applications/audio/freewheeling/default.nix +++ b/pkgs/applications/audio/freewheeling/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchsvn, pkgconfig, autoconf, automake, gnutls33, freetype +{ stdenv, fetchsvn, pkgconfig, autoreconfHook, gnutls33, freetype , SDL, SDL_gfx, SDL_ttf, liblo, libxml2, alsaLib, libjack2, libvorbis , libsndfile, libogg }: @@ -13,12 +13,10 @@ stdenv.mkDerivation { }; buildInputs = [ - pkgconfig autoconf automake gnutls33 freetype SDL SDL_gfx SDL_ttf + pkgconfig autoreconfHook gnutls33 freetype SDL SDL_gfx SDL_ttf liblo libxml2 libjack2 alsaLib libvorbis libsndfile libogg ]; - preConfigure = "autoreconf -vfi"; - patches = [ ./am_path_sdl.patch ./xml.patch ]; meta = { diff --git a/pkgs/applications/audio/ladspa-plugins/git.nix b/pkgs/applications/audio/ladspa-plugins/git.nix index e9ab932a88e..e022a35f5c6 100644 --- a/pkgs/applications/audio/ladspa-plugins/git.nix +++ b/pkgs/applications/audio/ladspa-plugins/git.nix @@ -1,4 +1,5 @@ -{ stdenv, fetchgit, automake, autoreconfHook, fftw, gettext, ladspaH, libxml2, pkgconfig, perl, perlPackages }: +{ stdenv, fetchgit, autoreconfHook, automake, fftw, ladspaH, libxml2, pkgconfig +, perl, perlPackages }: stdenv.mkDerivation { name = "swh-plugins-git-2015-03-04"; @@ -9,7 +10,7 @@ stdenv.mkDerivation { sha256 = "7d9aa13a064903b330bd52e35c1f810f1c8a253ea5eb4e5a3a69a051af03150e"; }; - buildInputs = [ automake autoreconfHook fftw gettext ladspaH libxml2 pkgconfig perl perlPackages.XMLParser ]; + buildInputs = [ autoreconfHook fftw ladspaH libxml2 pkgconfig perl perlPackages.XMLParser ]; patchPhase = '' patchShebangs . @@ -17,11 +18,6 @@ stdenv.mkDerivation { cp ${automake}/share/automake-*/mkinstalldirs . ''; - configurePhase = '' - autoreconf -i - ./configure --prefix=$out - ''; - meta = with stdenv.lib; { homepage = http://plugin.org.uk/; description = "LADSPA format audio plugins"; diff --git a/pkgs/applications/editors/emacs-modes/emacs-w3m/default.nix b/pkgs/applications/editors/emacs-modes/emacs-w3m/default.nix index 26f313f038d..d72ab12b580 100644 --- a/pkgs/applications/editors/emacs-modes/emacs-w3m/default.nix +++ b/pkgs/applications/editors/emacs-modes/emacs-w3m/default.nix @@ -1,4 +1,4 @@ -{ fetchcvs, stdenv, emacs, w3m, imagemagick, texinfo, autoconf }: +{ fetchcvs, stdenv, emacs, w3m, imagemagick, texinfo, autoreconfHook }: let date = "2013-03-21"; in stdenv.mkDerivation rec { @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { sha256 = "1lmcj8rf83w13q8q68hh7sa1abc2m6j2zmfska92xdp7hslhdgc5"; }; - buildInputs = [ emacs w3m texinfo autoconf ]; + buildInputs = [ emacs w3m texinfo autoreconfHook ]; # XXX: Should we do the same for xpdf/evince, gv, gs, etc.? patchPhase = '' @@ -26,11 +26,10 @@ stdenv.mkDerivation rec { s|(w3m-which-command "identify")|"${imagemagick}/bin/identify"|g' ''; - configurePhase = '' - autoreconf -vfi && \ - ./configure --prefix="$out" --with-lispdir="$out/share/emacs/site-lisp" \ - --with-icondir="$out/share/emacs/site-lisp/images/w3m" - ''; + configureFlags = [ + "--with-lispdir=$out/share/emacs/site-lisp" + "--with-icondir=$out/share/emacs/site-lisp/images/w3m" + ]; postInstall = '' cd "$out/share/emacs/site-lisp" diff --git a/pkgs/applications/graphics/solvespace/default.nix b/pkgs/applications/graphics/solvespace/default.nix index 67513bcf923..069eea3b521 100644 --- a/pkgs/applications/graphics/solvespace/default.nix +++ b/pkgs/applications/graphics/solvespace/default.nix @@ -1,5 +1,5 @@ -{ stdenv, fetchgit,autoconf, automake, gcc, fltk13 -, libjpeg, libpng, libtool, mesa, pkgconfig }: +{ stdenv, fetchgit, autoreconfHook, fltk13 +, libjpeg, libpng, mesa, pkgconfig }: stdenv.mkDerivation { name = "solvespace-2.0"; @@ -14,27 +14,15 @@ stdenv.mkDerivation { dontBuild = true; enableParallelBuilding = false; - buildInputs = [ - autoconf - automake - gcc + buildInputs = [ + autoreconfHook fltk13 libjpeg libpng - libtool mesa pkgconfig - stdenv ]; - preConfigure = '' - aclocal - libtoolize - - autoreconf -i - automake --add-missing - ''; - meta = { description = "A parametric 3d CAD program"; license = stdenv.lib.licenses.gpl3; diff --git a/pkgs/applications/misc/evtest/default.nix b/pkgs/applications/misc/evtest/default.nix index bccfd95e32b..330970b498b 100644 --- a/pkgs/applications/misc/evtest/default.nix +++ b/pkgs/applications/misc/evtest/default.nix @@ -1,11 +1,9 @@ -{ stdenv, fetchgit, autoconf, automake, pkgconfig, libxml2 }: +{ stdenv, fetchgit, autoreconfHook, automake, pkgconfig, libxml2 }: stdenv.mkDerivation rec { name = "evtest-1.32"; - preConfigure = "autoreconf -iv"; - - buildInputs = [ autoconf automake pkgconfig libxml2 ]; + buildInputs = [ autoreconfHook pkgconfig libxml2 ]; src = fetchgit { url = "git://anongit.freedesktop.org/evtest"; diff --git a/pkgs/applications/misc/mysql-workbench/default.nix b/pkgs/applications/misc/mysql-workbench/default.nix index eddf9b8ac71..16a20015c62 100644 --- a/pkgs/applications/misc/mysql-workbench/default.nix +++ b/pkgs/applications/misc/mysql-workbench/default.nix @@ -1,8 +1,8 @@ -{ stdenv, fetchurl, makeWrapper, autoconf, automake, boost, file, gettext +{ stdenv, fetchurl, makeWrapper, autoreconfHook, boost, file , glib, glibc, libgnome_keyring, gnome_keyring, gtk, gtkmm, intltool , libctemplate, libglade , libiodbc -, libgnome, libsigcxx, libtool, libuuid, libxml2, libzip, lua, mesa, mysql +, libgnome, libsigcxx, libuuid, libxml2, libzip, lua, mesa, mysql , pango, paramiko, pcre, pexpect, pkgconfig, pycrypto, python, sqlite, sudo }: @@ -16,18 +16,14 @@ stdenv.mkDerivation rec { sha256 = "1343fn3msdxqfpxw0kgm0mdx5r7g9ra1cpc8p2xhl7kz2pmqp4p6"; }; - buildInputs = [ autoconf automake boost file gettext glib glibc libgnome_keyring gtk gtkmm intltool - libctemplate libglade libgnome libiodbc libsigcxx libtool libuuid libxml2 libzip lua makeWrapper mesa + buildInputs = [ autoreconfHook boost file glib glibc libgnome_keyring gtk gtkmm intltool + libctemplate libglade libgnome libiodbc libsigcxx libuuid libxml2 libzip lua makeWrapper mesa mysql.lib paramiko pcre pexpect pkgconfig pycrypto python sqlite ]; preConfigure = '' substituteInPlace $(pwd)/frontend/linux/workbench/mysql-workbench.in --replace "catchsegv" "${glibc}/bin/catchsegv" ''; - postConfigure = '' - autoreconf -fi - ''; - postInstall = '' patchShebangs $out/share/mysql-workbench/extras/build_freetds.sh diff --git a/pkgs/applications/misc/rofi/default.nix b/pkgs/applications/misc/rofi/default.nix index 6d8edec9103..9f11a141ff4 100644 --- a/pkgs/applications/misc/rofi/default.nix +++ b/pkgs/applications/misc/rofi/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, autoconf, automake, pkgconfig +{ stdenv, fetchurl, autoreconfHook, pkgconfig , libX11, libXinerama, pango, cairo , libstartup_notification, i3Support ? false, i3 }: @@ -12,14 +12,10 @@ stdenv.mkDerivation rec { sha256 = "112fgx2awsw1xf1983bmy3jvs33qwyi8qj7j59jqc4gx07nv1rp5"; }; - buildInputs = [ autoconf automake pkgconfig libX11 libXinerama pango + buildInputs = [ autoreconfHook pkgconfig libX11 libXinerama pango cairo libstartup_notification ] ++ stdenv.lib.optional i3Support i3; - preConfigure = '' - autoreconf -vif - ''; - meta = { description = "Window switcher, run dialog and dmenu replacement"; homepage = https://davedavenport.github.io/rofi; diff --git a/pkgs/applications/networking/instant-messengers/pidgin-plugins/tox-prpl/default.nix b/pkgs/applications/networking/instant-messengers/pidgin-plugins/tox-prpl/default.nix index 7cfa12eccb4..367c837228a 100644 --- a/pkgs/applications/networking/instant-messengers/pidgin-plugins/tox-prpl/default.nix +++ b/pkgs/applications/networking/instant-messengers/pidgin-plugins/tox-prpl/default.nix @@ -1,5 +1,4 @@ -{ stdenv, fetchFromGitHub, libtoxcore, pidgin, autoconf, automake, libtool -, libsodium } : +{ stdenv, fetchFromGitHub, libtoxcore, pidgin, autoreconfHook, libsodium }: let version = "dd181722ea"; @@ -17,11 +16,9 @@ stdenv.mkDerivation rec { NIX_LDFLAGS = "-lssp -lsodium"; - preConfigure = "autoreconf -vfi"; - postInstall = "mv $out/lib/purple-2 $out/lib/pidgin"; - buildInputs = [ libtoxcore pidgin autoconf automake libtool libsodium ]; + buildInputs = [ libtoxcore pidgin autoreconfHook libsodium ]; meta = { homepage = http://tox.dhs.org/; diff --git a/pkgs/applications/science/astronomy/celestia/default.nix b/pkgs/applications/science/astronomy/celestia/default.nix index d4da5c113c9..86b0ffbcf24 100644 --- a/pkgs/applications/science/astronomy/celestia/default.nix +++ b/pkgs/applications/science/astronomy/celestia/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, freeglut, gtk2, gtkglext, libjpeg_turbo, libtheora, libXmu -, lua, mesa, pkgconfig, perl, automake, autoconf, libtool, gettext, glib, cairo +, lua, mesa, pkgconfig, perl, autoreconfHook, glib, cairo , pango, gdk_pixbuf, atk }: @@ -45,7 +45,7 @@ stdenv.mkDerivation { }; buildInputs = [ freeglut gtk2 gtkglext libjpeg_turbo libtheora libXmu mesa pkgconfig lua - perl automake autoconf libtool gettext ]; + perl autoreconfHook ]; patchPhase = '' patch -Np0 -i "${gcc46Patch}" @@ -53,18 +53,15 @@ stdenv.mkDerivation { patch -Np2 -i "${libpng16Patch}" patch -Np1 -i "${linkingPatch}" patch -Np1 -i "${gcc47Patch}" - autoreconf - configureFlagsArray=( - --with-gtk - --with-lua=${lua} - CPPFLAGS="-DNDEBUG" - CFLAGS="-O2 -fsigned-char" - CXXFLAGS="-O2 -fsigned-char" - GTK_CFLAGS="-I${gtk2}/include/gtk-2.0 -I${gtk2}/lib/gtk-2.0/include -I${glib}/include/glib-2.0 -I${glib}/lib/glib-2.0/include -I${cairo}/include/cairo -I${pango}/include/pango-1.0 -I${gdk_pixbuf}/include/gdk-pixbuf-2.0 -I${atk}/include/atk-1.0 -I${gtkglext}/include/gtkglext-1.0 -I${gtkglext}/lib/gtkglext-1.0/include" - GTK_LIBS="-lgtk-x11-2.0 -lgtkglext-x11-1.0 -lcairo -lgdk_pixbuf-2.0 -lpango-1.0 -lgobject-2.0" - ) ''; + configureFlags = "--with-gtk --with-lua=${lua}"; + CPPFLAGS = "-DNDEBUG"; + CFLAGS = "-O2 -fsigned-char"; + CXXFLAGS = "-O2 -fsigned-char"; + GTK_CFLAGS = "-I${gtk2}/include/gtk-2.0 -I${gtk2}/lib/gtk-2.0/include -I${glib}/include/glib-2.0 -I${glib}/lib/glib-2.0/include -I${cairo}/include/cairo -I${pango}/include/pango-1.0 -I${gdk_pixbuf}/include/gdk-pixbuf-2.0 -I${atk}/include/atk-1.0 -I${gtkglext}/include/gtkglext-1.0 -I${gtkglext}/lib/gtkglext-1.0/include"; + GTK_LIBS = "-lgtk-x11-2.0 -lgtkglext-x11-1.0 -lcairo -lgdk_pixbuf-2.0 -lpango-1.0 -lgobject-2.0"; + installPhase = ''make MKDIR_P="mkdir -p" install''; enableParallelBuilding = true; diff --git a/pkgs/applications/virtualization/open-vm-tools/default.nix b/pkgs/applications/virtualization/open-vm-tools/default.nix index e8c6b39f493..1cd33e8b97a 100644 --- a/pkgs/applications/virtualization/open-vm-tools/default.nix +++ b/pkgs/applications/virtualization/open-vm-tools/default.nix @@ -1,5 +1,5 @@ -{ stdenv, lib, fetchurl, makeWrapper, autoconf, automake, - libmspack, openssl, pam, xercesc, icu, libdnet, procps, +{ stdenv, lib, fetchurl, makeWrapper, autoreconfHook, + libmspack, openssl, pam, xercesc, icu, libdnet, procps, xlibsWrapper, libXinerama, libXi, libXrender, libXrandr, libXtst, pkgconfig, glib, gtk, gtkmm }: @@ -16,8 +16,8 @@ in stdenv.mkDerivation { sha256 = "15lwayrz9bpx4z12fj616hsn25m997y72licwwz7kms4sx9ssip1"; }; - buildInputs = - [ autoconf automake makeWrapper libmspack openssl pam xercesc icu libdnet procps + buildInputs = + [ autoreconfHook makeWrapper libmspack openssl pam xercesc icu libdnet procps pkgconfig glib gtk gtkmm xlibsWrapper libXinerama libXi libXrender libXrandr libXtst ]; patchPhase = '' @@ -28,7 +28,6 @@ in stdenv.mkDerivation { patches = [ ./recognize_nixos.patch ]; - preConfigure = "autoreconf"; configureFlags = "--without-kernel-modules --without-xmlsecurity"; meta = with stdenv.lib; { diff --git a/pkgs/development/libraries/cloog-ppl/default.nix b/pkgs/development/libraries/cloog-ppl/default.nix index 6f730d4821e..2c49e036358 100644 --- a/pkgs/development/libraries/cloog-ppl/default.nix +++ b/pkgs/development/libraries/cloog-ppl/default.nix @@ -1,4 +1,4 @@ -{ fetchurl, stdenv, ppl, autoconf, automake, libtool }: +{ fetchurl, stdenv, ppl, autoreconfHook }: stdenv.mkDerivation rec { name = "cloog-ppl-0.15.11"; @@ -10,19 +10,14 @@ stdenv.mkDerivation rec { propagatedBuildInputs = [ ppl ]; - nativeBuildInputs = [ automake autoconf libtool ]; + nativeBuildInputs = [ autoreconfHook ]; patches = [ ./fix-ppl-version.patch ]; configureFlags = "--with-ppl=${ppl}"; - preConfigure = '' + preAutoreconf = '' touch NEWS ChangeLog AUTHORS - ${libtool}/bin/libtoolize -c --force - ${automake}/bin/aclocal - ${automake}/bin/automake --add-missing - ${automake}/bin/automake -a -c --foreign - ${autoconf}/bin/autoreconf ''; crossAttrs = { diff --git a/pkgs/development/libraries/dbus/default.nix b/pkgs/development/libraries/dbus/default.nix index 97eecf78a1a..7f5e2f6311b 100644 --- a/pkgs/development/libraries/dbus/default.nix +++ b/pkgs/development/libraries/dbus/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, pkgconfig, autoconf, automake, libtool +{ stdenv, fetchurl, pkgconfig, autoreconfHook , expat, systemd, glib, dbus_glib, python , libX11 ? null, libICE ? null, libSM ? null, x11Support ? (stdenv.isLinux || stdenv.isDarwin) }: @@ -46,14 +46,15 @@ let done ''; - nativeBuildInputs = [ pkgconfig ]; + nativeBuildInputs = [ pkgconfig autoreconfHook ]; propagatedBuildInputs = [ expat ]; - buildInputs = [ autoconf automake libtool ]; # ToDo: optional selinux? + + preAutoreconf = '' + substituteInPlace tools/Makefile.am --replace 'install-localstatelibDATA:' 'disabled:' + ''; preConfigure = '' patchShebangs . - substituteInPlace tools/Makefile.am --replace 'install-localstatelibDATA:' 'disabled:' - autoreconf -fi ''; configureFlags = [ diff --git a/pkgs/development/libraries/dotconf/default.nix b/pkgs/development/libraries/dotconf/default.nix index 74e4b6c5666..f44a4a37fa7 100644 --- a/pkgs/development/libraries/dotconf/default.nix +++ b/pkgs/development/libraries/dotconf/default.nix @@ -1,4 +1,4 @@ -{ fetchFromGitHub, stdenv, autoconf, automake, libtool }: +{ fetchFromGitHub, stdenv, autoreconfHook }: stdenv.mkDerivation rec { name = "dotconf-" + version; @@ -11,9 +11,7 @@ stdenv.mkDerivation rec { sha256 = "1sc95hw5k2xagpafny0v35filmcn05k1ds5ghkldfpf6xw4hakp7"; }; - buildInputs = [ autoconf automake libtool ]; - - preConfigure = "autoreconf --install"; + buildInputs = [ autoreconfHook ]; meta = with stdenv.lib; { description = "A configuration parser library"; diff --git a/pkgs/development/libraries/funambol/default.nix b/pkgs/development/libraries/funambol/default.nix index 98049e0ca35..1fc2b21b5e5 100644 --- a/pkgs/development/libraries/funambol/default.nix +++ b/pkgs/development/libraries/funambol/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, zlib, curl, automake, libtool, autoconf, unzip }: +{ stdenv, fetchurl, zlib, curl, autoreconfHook, unzip }: stdenv.mkDerivation rec { name = "funambol-client-cpp-9.0.0"; @@ -10,17 +10,9 @@ stdenv.mkDerivation rec { postUnpack = ''sourceRoot+="/sdk/cpp/build/autotools"''; - # Upstream guys forgotten to run autoreconf... - preConfigure='' - libtoolize -c -f - aclocal - autoheader - automake -a -c -f --add-missing - autoconf -f''; - propagatedBuildInputs = [ zlib curl ]; - nativeBuildInputs = [ automake libtool autoconf unzip ]; + nativeBuildInputs = [ autoreconfHook unzip ]; meta = { description = "SyncML client sdk by Funambol project"; diff --git a/pkgs/development/libraries/hivex/default.nix b/pkgs/development/libraries/hivex/default.nix index e048b07a1da..76836b69d2a 100644 --- a/pkgs/development/libraries/hivex/default.nix +++ b/pkgs/development/libraries/hivex/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, pkgconfig, automake, autoconf, libtool, makeWrapper +{ stdenv, fetchurl, pkgconfig, autoreconfHook, makeWrapper , perl, libxml2, IOStringy }: stdenv.mkDerivation rec { @@ -13,14 +13,10 @@ stdenv.mkDerivation rec { patches = [ ./hivex-syms.patch ]; buildInputs = [ - pkgconfig automake autoconf libtool makeWrapper + pkgconfig autoreconfHook makeWrapper perl libxml2 IOStringy ]; - preConfigure = '' - AUTOPOINT=true autoreconf --verbose --install - ''; - postInstall = '' for bin in $out/bin/*; do wrapProgram "$bin" --prefix "PATH" : "$out/bin" diff --git a/pkgs/development/libraries/libgksu/default.nix b/pkgs/development/libraries/libgksu/default.nix index 7bf1d7cdc71..521e780a920 100644 --- a/pkgs/development/libraries/libgksu/default.nix +++ b/pkgs/development/libraries/libgksu/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchurl, pkgconfig, makeWrapper, gtk, gnome, gnome3, - libstartup_notification, libgtop, perl, perlXMLParser, autoconf, - automake, libtool, intltool, gtk_doc, docbook_xsl, xauth, sudo + libstartup_notification, libgtop, perl, perlXMLParser, + autoreconfHook, intltool, gtk_doc, docbook_xsl, xauth, sudo }: stdenv.mkDerivation rec { @@ -52,13 +52,12 @@ stdenv.mkDerivation rec { preConfigure = '' intltoolize --force --copy --automake - autoreconf -vfi ''; buildInputs = [ pkgconfig makeWrapper gtk gnome.GConf libstartup_notification gnome3.libgnome_keyring libgtop gnome.libglade perl perlXMLParser - autoconf automake libtool intltool gtk_doc docbook_xsl + autoreconfHook intltool gtk_doc docbook_xsl ]; preFixup = '' diff --git a/pkgs/development/libraries/libguestfs/default.nix b/pkgs/development/libraries/libguestfs/default.nix index 003c1cf3432..2e3307b54bf 100644 --- a/pkgs/development/libraries/libguestfs/default.nix +++ b/pkgs/development/libraries/libguestfs/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, pkgconfig, autoconf, automake, libtool, makeWrapper +{ stdenv, fetchurl, pkgconfig, autoreconfHook, makeWrapper , ncurses, cpio, gperf, perl, cdrkit, flex, bison, qemu, pcre, augeas, libxml2 , acl, libcap, libcap_ng, libconfig, systemd, fuse, yajl, libvirt, hivex , gmp, readline, file, libintlperl, GetoptLong, SysVirt, numactl, xen }: @@ -18,7 +18,7 @@ stdenv.mkDerivation rec { }; buildInputs = [ - makeWrapper pkgconfig autoconf automake libtool ncurses cpio gperf perl + makeWrapper pkgconfig autoreconfHook ncurses cpio gperf perl cdrkit flex bison qemu pcre augeas libxml2 acl libcap libcap_ng libconfig systemd fuse yajl libvirt gmp readline file hivex libintlperl GetoptLong SysVirt numactl xen @@ -28,10 +28,6 @@ stdenv.mkDerivation rec { patches = [ ./libguestfs-syms.patch ]; NIX_CFLAGS_COMPILE="-I${libxml2}/include/libxml2/"; - preConfigure = '' - AUTOPOINT=true LIBTOOLIZE=true autoreconf --verbose --install - ''; - postInstall = '' for bin in $out/bin/*; do wrapProgram "$bin" \ diff --git a/pkgs/development/libraries/libivykis/default.nix b/pkgs/development/libraries/libivykis/default.nix index 3ebfb5d8cfc..8e2a659b3f0 100644 --- a/pkgs/development/libraries/libivykis/default.nix +++ b/pkgs/development/libraries/libivykis/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, autoconf, automake, libtool, pkgconfig, file, protobufc }: +{ stdenv, fetchurl, autoreconfHook, pkgconfig, file, protobufc }: stdenv.mkDerivation rec { name = "libivykis-${version}"; @@ -10,9 +10,7 @@ stdenv.mkDerivation rec { sha256 = "11d7sjbhcll932rlvx9sf3vk60b5bazmjf4vlr4qd9cz0cashizz"; }; - buildInputs = [ autoconf automake libtool pkgconfig file protobufc ]; - - preConfigure = "autoreconf -i"; + buildInputs = [ autoreconfHook pkgconfig file protobufc ]; meta = with stdenv.lib; { description = '' diff --git a/pkgs/development/libraries/libpst/default.nix b/pkgs/development/libraries/libpst/default.nix index 8fa781c4fda..78c65d03bfd 100644 --- a/pkgs/development/libraries/libpst/default.nix +++ b/pkgs/development/libraries/libpst/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, autoconf, automake, libtool, boost, python, libgsf, +{ stdenv, fetchurl, autoreconfHook, boost, python, libgsf, pkgconfig, bzip2, xmlto, gettext, imagemagick, doxygen }: stdenv.mkDerivation rec { @@ -9,13 +9,9 @@ stdenv.mkDerivation rec { sha256 = "0qih919zk40japs4mpiaw5vyr2bvwz60sjf23gixd5vvzc32cljz"; }; - buildInputs = [ autoconf automake libtool boost python libgsf pkgconfig bzip2 + buildInputs = [ autoreconfHook boost python libgsf pkgconfig bzip2 xmlto gettext imagemagick doxygen ]; - preConfigure = '' - autoreconf -v -f -i - ''; - doCheck = true; meta = with stdenv.lib; { diff --git a/pkgs/development/libraries/librdf/default.nix b/pkgs/development/libraries/librdf/default.nix index 58ff77480b6..88666310158 100644 --- a/pkgs/development/libraries/librdf/default.nix +++ b/pkgs/development/libraries/librdf/default.nix @@ -1,5 +1,5 @@ -{ stdenv, fetchurl, pkgconfig, libtool, automake, autoconf -, librdf_raptor, librdf_raptor2, ladspaH, openssl, zlib #, swh_lv2 +{ stdenv, fetchurl, pkgconfig, autoreconfHook +, librdf_raptor2, ladspaH, openssl, zlib }: stdenv.mkDerivation rec { @@ -11,19 +11,13 @@ stdenv.mkDerivation rec { sha256 = "18p2flb2sv2hq6w2qkd29z9c7knnwqr3f12i2srshlzx6vwkm05s"; }; + preAutoreconf = "rm m4/*"; postPatch = "sed -i -e 's:usr/local:usr:' examples/{instances,remove}_test.c"; - preConfigure = "rm m4/* && autoreconf -if"; - - buildInputs = [ - pkgconfig libtool automake autoconf ladspaH openssl zlib /*swh_lv2*/ - #librdf_raptor - ]; + buildInputs = [ pkgconfig autoreconfHook ladspaH openssl zlib ]; propagatedBuildInputs = [ librdf_raptor2 ]; - #doCheck = true; # would need swh_lv2 and some path patching - meta = { description = "Lightweight RDF library with special support for LADSPA plugins"; homepage = http://sourceforge.net/projects/lrdf/; diff --git a/pkgs/development/libraries/libtoxcore/new-api/default.nix b/pkgs/development/libraries/libtoxcore/new-api/default.nix index b0e3a09c0b4..d9c543efd6c 100644 --- a/pkgs/development/libraries/libtoxcore/new-api/default.nix +++ b/pkgs/development/libraries/libtoxcore/new-api/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, autoconf, libtool, automake, libsodium, ncurses, libopus +{ stdenv, fetchFromGitHub, autoreconfHook, libsodium, ncurses, libopus , libvpx, check, libconfig, pkgconfig }: stdenv.mkDerivation rec { @@ -22,10 +22,6 @@ stdenv.mkDerivation rec { auto_tests/tox_test.c ''; - preConfigure = '' - autoreconf -i - ''; - configureFlags = [ "--with-libsodium-headers=${libsodium}/include" "--with-libsodium-libs=${libsodium}/lib" @@ -34,8 +30,7 @@ stdenv.mkDerivation rec { ]; buildInputs = [ - autoconf libtool automake libsodium ncurses - check libconfig pkgconfig + autoreconfHook libsodium ncurses check libconfig pkgconfig ] ++ stdenv.lib.optionals (!stdenv.isArm) [ libopus ]; diff --git a/pkgs/development/libraries/libtoxcore/old-api/default.nix b/pkgs/development/libraries/libtoxcore/old-api/default.nix index 3ff2e1ad285..471fafdad38 100644 --- a/pkgs/development/libraries/libtoxcore/old-api/default.nix +++ b/pkgs/development/libraries/libtoxcore/old-api/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, autoconf, libtool, automake, libsodium, ncurses, libopus +{ stdenv, fetchFromGitHub, autoreconfHook, libsodium, ncurses, libopus , libvpx, check, libconfig, pkgconfig }: let @@ -26,10 +26,6 @@ stdenv.mkDerivation rec { auto_tests/tox_test.c ''; - preConfigure = '' - autoreconf -i - ''; - configureFlags = [ "--with-libsodium-headers=${libsodium}/include" "--with-libsodium-libs=${libsodium}/lib" @@ -38,7 +34,7 @@ stdenv.mkDerivation rec { ]; buildInputs = [ - autoconf libtool automake libsodium ncurses + autoreconfHook libsodium ncurses check libconfig pkgconfig ] ++ stdenv.lib.optionals (!stdenv.isArm) [ libopus diff --git a/pkgs/development/libraries/minizip/default.nix b/pkgs/development/libraries/minizip/default.nix index b71920446e4..22657cf3899 100644 --- a/pkgs/development/libraries/minizip/default.nix +++ b/pkgs/development/libraries/minizip/default.nix @@ -1,14 +1,11 @@ -{ stdenv, zlib, autoconf, automake, libtool }: +{ stdenv, zlib, autoreconfHook }: stdenv.mkDerivation { name = "minizip-${zlib.version}"; inherit (zlib) src; - nativeBuildInputs = [ autoconf automake libtool ]; + nativeBuildInputs = [ autoreconfHook ]; buildInputs = [ zlib ]; - preConfigure = '' - cd contrib/minizip - autoreconf -vfi - ''; + sourceRoot = "zlib-${zlib.version}/contrib/minizip"; } diff --git a/pkgs/development/libraries/pkcs11helper/default.nix b/pkgs/development/libraries/pkcs11helper/default.nix index c4f0ad16fb7..4092783b0c9 100644 --- a/pkgs/development/libraries/pkcs11helper/default.nix +++ b/pkgs/development/libraries/pkcs11helper/default.nix @@ -1,20 +1,18 @@ -{ stdenv, fetchurl, pkgconfig, openssl, autoconf, automake, libtool }: +{ stdenv, fetchurl, pkgconfig, openssl, autoreconfHook }: let rev = "5d412bad60"; in stdenv.mkDerivation rec { name = "pkcs11-helper-20121123-${rev}"; - + src = fetchurl { url = "https://github.com/alonbl/pkcs11-helper/tarball/${rev}"; name = "${name}.tar.gz"; sha256 = "1mih6mha39yr5s5m18lg4854qc105asgnwmjw7f95kgmzni62kxp"; }; - preConfigure = "autoreconf -vfi"; - - buildInputs = [ pkgconfig openssl autoconf automake libtool ]; + buildInputs = [ pkgconfig openssl autoreconfHook ]; meta = with stdenv.lib; { homepage = https://www.opensc-project.org/opensc/wiki/pkcs11-helper; diff --git a/pkgs/development/libraries/spice-gtk/default.nix b/pkgs/development/libraries/spice-gtk/default.nix index 99f699e301c..0ef024424b2 100644 --- a/pkgs/development/libraries/spice-gtk/default.nix +++ b/pkgs/development/libraries/spice-gtk/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchurl, pkgconfig, gtk, spice_protocol, intltool, celt_0_5_1 , openssl, libpulseaudio, pixman, gobjectIntrospection, libjpeg_turbo, zlib -, cyrus_sasl, python, pygtk, autoconf, automake, libtool, usbredir, libsoup +, cyrus_sasl, python, pygtk, autoreconfHook, usbredir, libsoup , gtk3, enableGTK3 ? false }: with stdenv.lib; @@ -18,14 +18,16 @@ stdenv.mkDerivation rec { libjpeg_turbo zlib cyrus_sasl python pygtk usbredir ] ++ (if enableGTK3 then [ gtk3 ] else [ gtk ]); - nativeBuildInputs = [ pkgconfig intltool libtool libsoup autoconf automake ]; + nativeBuildInputs = [ pkgconfig intltool libsoup autoreconfHook ]; NIX_CFLAGS_COMPILE = "-fno-stack-protector"; - preConfigure = '' + preAutoreconf = '' substituteInPlace src/Makefile.am \ - --replace '=codegendir pygtk-2.0' '=codegendir pygobject-2.0' - autoreconf -v --force --install + --replace '=codegendir pygtk-2.0' '=codegendir pygobject-2.0' + ''; + + preConfigure = '' intltoolize -f ''; diff --git a/pkgs/development/libraries/tremor/default.nix b/pkgs/development/libraries/tremor/default.nix index c8eb6e3bdab..aa4a5578691 100644 --- a/pkgs/development/libraries/tremor/default.nix +++ b/pkgs/development/libraries/tremor/default.nix @@ -1,19 +1,18 @@ -{ stdenv, fetchsvn, autoconf, automake, libtool, pkgconfig, libogg }: +{ stdenv, fetchsvn, autoreconfHook, pkgconfig, libogg }: stdenv.mkDerivation rec { name = "tremor-svn-${src.rev}"; - + src = fetchsvn { url = http://svn.xiph.org/trunk/Tremor; rev = "17866"; sha256 = "161411cbefa1527da7a8fc087e78d8e21d19143d3a6eb42fb281e5026aad7568"; }; - nativeBuildInputs = [ autoconf automake libtool pkgconfig ]; + nativeBuildInputs = [ autoreconfHook pkgconfig ]; propagatedBuildInputs = [ libogg ]; preConfigure = '' - autoreconf -vfi sed -i /XIPH_PATH_OGG/d configure ''; diff --git a/pkgs/games/rili/default.nix b/pkgs/games/rili/default.nix index fbf47653af9..7d127332845 100644 --- a/pkgs/games/rili/default.nix +++ b/pkgs/games/rili/default.nix @@ -1,8 +1,8 @@ -{stdenv, fetchurl, SDL_mixer, SDL, autoconf, automake}: +{ stdenv, fetchurl, SDL_mixer, SDL, autoreconfHook }: stdenv.mkDerivation { - name = "ri_li-2.0.1"; - + name = "ri_li-2.0.1"; + src = fetchurl { url = mirror://sourceforge/ri-li/Ri-li-2.0.1.tar.bz2; sha256 = "f71ccc20c37c601358d963e087ac0d524de8c68e96df09c3aac1ae65edd38dbd"; @@ -10,13 +10,10 @@ stdenv.mkDerivation { patches = [ ./moderinze_cpp.patch ]; - preConfigure = '' - export CPPFLAGS="-I${SDL}/include -I${SDL}/include/SDL -I${SDL_mixer}/include" - autoreconf -i - ''; - - buildInputs = [SDL SDL_mixer autoconf automake]; - + CPPFLAGS = "-I${SDL}/include -I${SDL}/include/SDL -I${SDL_mixer}/include"; + + buildInputs = [ SDL SDL_mixer autoreconfHook ]; + meta = { homepage = http://ri-li.sourceforge.net; license = stdenv.lib.licenses.gpl2Plus; diff --git a/pkgs/misc/emulators/vice/default.nix b/pkgs/misc/emulators/vice/default.nix index b869143ff1c..143c23ee86c 100644 --- a/pkgs/misc/emulators/vice/default.nix +++ b/pkgs/misc/emulators/vice/default.nix @@ -1,17 +1,19 @@ -{ stdenv, fetchurl, perl, gettext, libpng, giflib, libjpeg, alsaLib, readline, mesa, libX11 -, pkgconfig, gtk, SDL, autoconf, automake, makeDesktopItem +{ stdenv, fetchurl, perl, libpng, giflib, libjpeg, alsaLib, readline, mesa, libX11 +, pkgconfig, gtk, SDL, autoreconfHook, makeDesktopItem }: stdenv.mkDerivation rec { name = "vice-2.2"; + src = fetchurl { url = http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/vice-2.2.tar.gz; sha256 = "0l8mp9ybx494fdqgr1ps4x3c3qzms4yyg4hzcn3ihzy92zw1nn2x"; }; - buildInputs = [ perl gettext libpng giflib libjpeg alsaLib readline mesa - pkgconfig gtk SDL autoconf automake ]; + + buildInputs = [ perl libpng giflib libjpeg alsaLib readline mesa + pkgconfig gtk SDL autoreconfHook ]; configureFlags = "--with-sdl --enable-fullscreen --enable-gnomeui"; - + desktopItem = makeDesktopItem { name = "vice"; exec = "x64"; @@ -23,18 +25,16 @@ stdenv.mkDerivation rec { patchPhase = '' # Disable font-cache update - sed -i -e "s|install: install-data-am|install-no: install-data-am|" data/fonts/Makefile.am - autoreconf -f -i ''; - + NIX_LDFLAGS = "-lX11 -L${libX11}/lib"; - + postInstall = '' mkdir -p $out/share/applications cp ${desktopItem}/share/applications/* $out/share/applications ''; - + meta = { description = "Commodore 64, 128 and other emulators"; homepage = http://www.viceteam.org; diff --git a/pkgs/misc/screensavers/alock/default.nix b/pkgs/misc/screensavers/alock/default.nix index 9083a90f6f5..51674f5dd86 100644 --- a/pkgs/misc/screensavers/alock/default.nix +++ b/pkgs/misc/screensavers/alock/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchgit, pkgconfig, autoconf, automake +{ stdenv, fetchgit, pkgconfig, autoreconfHook , libX11, pam, libgcrypt, libXrender, imlib2 }: stdenv.mkDerivation rec { @@ -11,7 +11,6 @@ stdenv.mkDerivation rec { sha256 = "c1f00bf90c966b2b76e00061cc4b54a3c0bc6547e788731ab694b43f55a216ab"; }; - preConfigure = "autoreconf -fvi"; configureFlags = [ "--enable-pam" "--enable-hash" @@ -19,7 +18,7 @@ stdenv.mkDerivation rec { "--enable-imlib2" ]; buildInputs = [ - pkgconfig autoconf automake libX11 + pkgconfig autoreconfHook libX11 pam libgcrypt libXrender imlib2 ]; diff --git a/pkgs/os-specific/linux/xf86-input-mtrack/default.nix b/pkgs/os-specific/linux/xf86-input-mtrack/default.nix index a4fd00e4911..ac7e782444f 100644 --- a/pkgs/os-specific/linux/xf86-input-mtrack/default.nix +++ b/pkgs/os-specific/linux/xf86-input-mtrack/default.nix @@ -1,34 +1,28 @@ { stdenv , fetchurl -, autoconf -, automake , utilmacros , pkgconfig -, libtool , mtdev , xorgserver , xproto , inputproto , pixman +, autoreconfHook }: stdenv.mkDerivation { name = "xf86-input-mtrack-0.3.0"; - preConfigure = "autoreconf -vfi"; - buildInputs = [ - autoconf - automake utilmacros pkgconfig - libtool mtdev xorgserver xproto inputproto pixman + autoreconfHook ]; CFLAGS = "-I${pixman}/include/pixman-1"; diff --git a/pkgs/os-specific/linux/xf86-video-nested/default.nix b/pkgs/os-specific/linux/xf86-video-nested/default.nix index 0d0639390a7..0f9e0591a06 100644 --- a/pkgs/os-specific/linux/xf86-video-nested/default.nix +++ b/pkgs/os-specific/linux/xf86-video-nested/default.nix @@ -1,5 +1,5 @@ -{ stdenv, fetchgit, autoconf, automake, fontsproto, libX11, libXext -, libtool, pixman, pkgconfig, renderproto, utilmacros, xorgserver +{ stdenv, fetchgit, autoreconfHook, fontsproto, libX11, libXext +, pixman, pkgconfig, renderproto, utilmacros, xorgserver }: stdenv.mkDerivation { @@ -12,13 +12,12 @@ stdenv.mkDerivation { }; buildInputs = - [ autoconf automake fontsproto libX11 libXext libtool pixman + [ autoreconfHook fontsproto libX11 libXext pixman pkgconfig renderproto utilmacros xorgserver ]; configurePhase = '' - autoreconf -fvi ./configure --prefix=$out CFLAGS="-I${pixman}/include/pixman-1" ''; diff --git a/pkgs/servers/nosql/hyperdex/busybee.nix b/pkgs/servers/nosql/hyperdex/busybee.nix index 653c74bdabe..e71fb608260 100644 --- a/pkgs/servers/nosql/hyperdex/busybee.nix +++ b/pkgs/servers/nosql/hyperdex/busybee.nix @@ -1,5 +1,4 @@ -{ stdenv, fetchurl, unzip, autoconf, automake, libtool, - libpo6, libe, pkgconfig }: +{ stdenv, fetchurl, unzip, autoreconfHook, libpo6, libe, pkgconfig }: stdenv.mkDerivation rec { name = "busybee-${version}"; @@ -9,16 +8,14 @@ stdenv.mkDerivation rec { url = "https://github.com/rescrv/busybee/archive/releases/${version}.zip"; sha256 = "0b51h1kmkf0s3d9y7wjqgp1pk1rk9i7n8bcgyj01kflzdgafbl0b"; }; + buildInputs = [ - autoconf - automake + autoreconfHook libe libpo6 - libtool pkgconfig unzip ]; - preConfigure = "autoreconf -i"; meta = with stdenv.lib; { description = "A high-performance messaging layer"; diff --git a/pkgs/servers/nosql/hyperdex/default.nix b/pkgs/servers/nosql/hyperdex/default.nix index 3986e49c4bc..c375fb29626 100644 --- a/pkgs/servers/nosql/hyperdex/default.nix +++ b/pkgs/servers/nosql/hyperdex/default.nix @@ -1,6 +1,6 @@ -{ stdenv, fetchurl, makeWrapper, unzip, autoconf, automake, libtool, - python, libsodium, pkgconfig, popt, glog, xz, json_c, gperf, yacc, - flex, pandoc, help2man, autoconf-archive, callPackage }: +{ stdenv, fetchurl, makeWrapper, unzip, autoreconfHook, autoconf-archive +, python, libsodium, pkgconfig, popt, glog, xz, json_c, gperf, yacc +, flex, pandoc, help2man, callPackage }: assert stdenv.isLinux; @@ -25,9 +25,8 @@ stdenv.mkDerivation rec { }; buildInputs = [ - autoconf + autoreconfHook autoconf-archive - automake busybee glog hyperleveldb @@ -35,7 +34,6 @@ stdenv.mkDerivation rec { libe libmacaroons libpo6 - libtool pkgconfig popt python @@ -47,7 +45,6 @@ stdenv.mkDerivation rec { help2man pandoc ]; - preConfigure = "autoreconf -fi"; meta = with stdenv.lib; { description = "A scalable, searchable key-value store"; diff --git a/pkgs/servers/nosql/hyperdex/hyperleveldb.nix b/pkgs/servers/nosql/hyperdex/hyperleveldb.nix index f57bbe4f4d2..1e3c3afe234 100644 --- a/pkgs/servers/nosql/hyperdex/hyperleveldb.nix +++ b/pkgs/servers/nosql/hyperdex/hyperleveldb.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, unzip, autoconf, automake, libtool }: +{ stdenv, fetchurl, unzip, autoreconfHook }: stdenv.mkDerivation rec { name = "hyperleveldb-${version}"; @@ -8,8 +8,8 @@ stdenv.mkDerivation rec { url = "https://github.com/rescrv/HyperLevelDB/archive/releases/${version}.zip"; sha256 = "0m5fwl9sc7c6m2zm3zjlxxg7f602gnaryikxgflahhdccdvvr56y"; }; - buildInputs = [ unzip autoconf automake libtool ]; - preConfigure = "autoreconf -i"; + + buildInputs = [ unzip autoreconfHook ]; meta = with stdenv.lib; { description = ''A fork of LevelDB intended to meet the needs of diff --git a/pkgs/servers/nosql/hyperdex/libe.nix b/pkgs/servers/nosql/hyperdex/libe.nix index f7e0d834bb4..dfce4c34a11 100644 --- a/pkgs/servers/nosql/hyperdex/libe.nix +++ b/pkgs/servers/nosql/hyperdex/libe.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, unzip, autoconf, automake, libtool, libpo6, pkgconfig }: +{ stdenv, fetchurl, unzip, autoreconfHook, libpo6, pkgconfig }: stdenv.mkDerivation rec { name = "libe-${version}"; @@ -8,8 +8,8 @@ stdenv.mkDerivation rec { url = "https://github.com/rescrv/e/archive/releases/${version}.zip"; sha256 = "18xm0hcnqdf0ipfn19jrgzqsxij5xjbbnihhzc57n4v7yfdca1w3"; }; - buildInputs = [ unzip autoconf automake libtool libpo6 pkgconfig ]; - preConfigure = "autoreconf -i"; + + buildInputs = [ unzip autoreconfHook libpo6 pkgconfig ]; meta = with stdenv.lib; { description = "Library containing high-performance datastructures and utilities for C++"; diff --git a/pkgs/servers/nosql/hyperdex/libmacaroons.nix b/pkgs/servers/nosql/hyperdex/libmacaroons.nix index 719b18db868..016ee704e58 100644 --- a/pkgs/servers/nosql/hyperdex/libmacaroons.nix +++ b/pkgs/servers/nosql/hyperdex/libmacaroons.nix @@ -1,5 +1,5 @@ -{ stdenv, fetchurl, unzip, autoconf, automake, libtool, - pkgconfig, libsodium, python }: +{ stdenv, fetchurl, unzip, autoreconfHook, pkgconfig, libsodium, python }: + stdenv.mkDerivation rec { name = "libmacaroons-${version}"; version = "0.3.0"; @@ -8,9 +8,9 @@ stdenv.mkDerivation rec { url = "https://github.com/rescrv/libmacaroons/archive/releases/${version}.zip"; sha256 = "18c44424jri0p5la6jgrnlz5p937hk7ws2mldhzjwisqyf5qld43"; }; - buildInputs = [ unzip autoconf automake libtool python libsodium pkgconfig ]; - preConfigure = "autoreconf -i"; - + + buildInputs = [ unzip autoreconfHook python libsodium pkgconfig ]; + meta = with stdenv.lib; { description = ''Macaroons are flexible authorization credentials that support decentralized delegation, attenuation, and verification.''; diff --git a/pkgs/servers/nosql/hyperdex/libpo6.nix b/pkgs/servers/nosql/hyperdex/libpo6.nix index fa68020b539..70e46f45347 100644 --- a/pkgs/servers/nosql/hyperdex/libpo6.nix +++ b/pkgs/servers/nosql/hyperdex/libpo6.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, unzip, autoconf, automake, libtool }: +{ stdenv, fetchurl, unzip, autoreconfHook }: stdenv.mkDerivation rec { name = "libpo6-${version}"; @@ -8,8 +8,8 @@ stdenv.mkDerivation rec { url = "https://github.com/rescrv/po6/archive/releases/${version}.zip"; sha256 = "17grzkh6aw1f68qvkhivbb6vwbm6jd41ysbfn88pypf5lczxrxly"; }; - buildInputs = [ unzip autoconf automake libtool ]; - preConfigure = "autoreconf -i"; + + buildInputs = [ unzip autoreconfHook ]; meta = with stdenv.lib; { description = "POSIX wrappers for C++"; diff --git a/pkgs/servers/nosql/hyperdex/replicant.nix b/pkgs/servers/nosql/hyperdex/replicant.nix index f2df744e35f..43c86e6c0c9 100644 --- a/pkgs/servers/nosql/hyperdex/replicant.nix +++ b/pkgs/servers/nosql/hyperdex/replicant.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, unzip, autoconf, automake, libtool, glog, +{ stdenv, fetchurl, unzip, autoreconfHook, glog, hyperleveldb, libe, pkgconfig, popt, libpo6, busybee }: stdenv.mkDerivation rec { @@ -9,21 +9,19 @@ stdenv.mkDerivation rec { url = "https://github.com/rescrv/Replicant/archive/releases/${version}.zip"; sha256 = "1q3pdq2ndpj70yd1578bn4grlrp77gl8hv2fz34jpx34qmlalda4"; }; + buildInputs = [ - autoconf - automake + autoreconfHook busybee glog hyperleveldb libe libpo6 - libtool pkgconfig popt unzip ]; - preConfigure = "autoreconf -i"; - + meta = with stdenv.lib; { description = "A system for maintaining replicated state machines"; homepage = https://github.com/rescrv/Replicant; diff --git a/pkgs/servers/shellinabox/default.nix b/pkgs/servers/shellinabox/default.nix index ed859ac344b..0a651762f18 100644 --- a/pkgs/servers/shellinabox/default.nix +++ b/pkgs/servers/shellinabox/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, autoconf, automake, libtool, pam, openssl, openssh, shadow, makeWrapper }: +{ stdenv, fetchFromGitHub, autoreconfHook, pam, openssl, openssh, shadow, makeWrapper }: stdenv.mkDerivation rec { version = "2.19"; @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { patches = [ ./shellinabox-minus.patch ]; - buildInputs = [ autoconf automake libtool pam openssl openssh makeWrapper]; + buildInputs = [ autoreconfHook pam openssl openssh makeWrapper ]; # Disable GSSAPIAuthentication errors. Also, paths in certain source files are # hardcoded. Replace the hardcoded paths with correct paths. @@ -23,7 +23,6 @@ stdenv.mkDerivation rec { substituteInPlace ./shellinabox/service.c --replace "/bin/login" "${shadow}/bin/login" substituteInPlace ./shellinabox/launcher.c --replace "/bin/login" "${shadow}/bin/login" substituteInPlace ./libhttp/ssl.c --replace "/usr/bin" "${openssl}/bin" - autoreconf -vfi ''; postInstall = '' diff --git a/pkgs/tools/archivers/runzip/default.nix b/pkgs/tools/archivers/runzip/default.nix index 9b2fd0eda59..1ed453f0d4f 100644 --- a/pkgs/tools/archivers/runzip/default.nix +++ b/pkgs/tools/archivers/runzip/default.nix @@ -1,21 +1,20 @@ -{stdenv, fetchFromGitHub, libzip, autoconf, automake, libtool, m4}: +{ stdenv, fetchFromGitHub, libzip, autoreconfHook }: + stdenv.mkDerivation rec { - baseName = "runzip"; version = "1.4"; - name = "${baseName}-${version}"; - buildInputs = [libzip autoconf automake libtool m4]; + name = "runzip-${version}"; + + buildInputs = [ libzip autoreconfHook ]; + src = fetchFromGitHub { owner = "vlm"; repo = "zip-fix-filename-encoding"; rev = "v${version}"; sha256 = "0l5zbb5hswxczigvyal877j0aiq3fc01j3gv88bvy7ikyvw3lc07"; }; - preConfigure = '' - autoreconf -iv - ''; + meta = { - inherit version; - description = ''A tool to convert filename encoding inside a ZIP archive''; + description = "A tool to convert filename encoding inside a ZIP archive"; license = stdenv.lib.licenses.bsd2 ; maintainers = [stdenv.lib.maintainers.raskin]; platforms = stdenv.lib.platforms.linux; diff --git a/pkgs/tools/misc/grub/default.nix b/pkgs/tools/misc/grub/default.nix index cb561e8172f..d6534fc5ee6 100644 --- a/pkgs/tools/misc/grub/default.nix +++ b/pkgs/tools/misc/grub/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, autoconf, automake, texinfo, buggyBiosCDSupport ? true}: +{stdenv, fetchurl, autoreconfHook, texinfo, buggyBiosCDSupport ? true}: stdenv.mkDerivation { name = "grub-0.97-patch-1.12"; @@ -33,8 +33,8 @@ stdenv.mkDerivation { ] ++ (stdenv.lib.optional buggyBiosCDSupport ./buggybios.patch); - # Autoconf/automake required for the splashimage patch. - buildInputs = [autoconf automake texinfo]; + # autoreconfHook required for the splashimage patch. + buildInputs = [ autoreconfHook texinfo ]; prePatch = '' unpackFile $gentooPatches @@ -45,11 +45,6 @@ stdenv.mkDerivation { done ''; - preConfigure = '' - autoreconf - automake --add-missing - ''; - passthru.grubTarget = ""; meta = { diff --git a/pkgs/tools/misc/mdbtools/git.nix b/pkgs/tools/misc/mdbtools/git.nix index 8cf5e5e9a38..777fc7bfd16 100644 --- a/pkgs/tools/misc/mdbtools/git.nix +++ b/pkgs/tools/misc/mdbtools/git.nix @@ -1,6 +1,5 @@ -{ stdenv, fetchurl, fetchgit, glib, readline, bison, flex, pkgconfig, - libiconv, autoconf, automake, libtool, which, txt2man, gnome_doc_utils, - scrollkeeper}: +{ stdenv, fetchgit, glib, readline, bison, flex, pkgconfig, + libiconv, autoreconfHook, which, txt2man, gnome_doc_utils, scrollkeeper }: stdenv.mkDerivation { name = "mdbtools-git-2014-07-25"; @@ -12,16 +11,18 @@ stdenv.mkDerivation { }; buildInputs = [ - glib readline bison flex pkgconfig autoconf automake - libtool which txt2man gnome_doc_utils scrollkeeper libiconv + glib readline bison flex autoreconfHook pkgconfig which txt2man + gnome_doc_utils scrollkeeper libiconv ]; + preAutoreconf = '' + sed -e '/ENABLE_GTK_DOC/aAM_CONDITIONAL(HAVE_GNOME_DOC_UTILS, test x$enable_gtk_doc = xyes)' \ + -e '/ENABLE_GTK_DOC/aAM_CONDITIONAL(ENABLE_SK, test x$enable_scrollkeeper = xyes)' \ + -i configure.ac + ''; + preConfigure = '' sed -e 's@static \(GHashTable [*]mdb_backends;\)@\1@' -i src/libmdb/backend.c - sed -e '/ENABLE_GTK_DOC/aAM_CONDITIONAL(HAVE_GNOME_DOC_UTILS, test x$enable_gtk_doc = xyes)' \ - -e '/ENABLE_GTK_DOC/aAM_CONDITIONAL(ENABLE_SK, test x$enable_scrollkeeper = xyes)' \ - -i configure.ac - autoreconf -i -f ''; meta = { diff --git a/pkgs/tools/misc/riemann-c-client/default.nix b/pkgs/tools/misc/riemann-c-client/default.nix index 5dde592aade..eb8e17a8693 100644 --- a/pkgs/tools/misc/riemann-c-client/default.nix +++ b/pkgs/tools/misc/riemann-c-client/default.nix @@ -1,5 +1,4 @@ -{ stdenv, fetchFromGitHub, autoconf, automake, libtool, pkgconfig, file -, protobufc }: +{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, file , protobufc }: stdenv.mkDerivation rec { name = "riemann-c-client-${version}"; @@ -13,9 +12,7 @@ stdenv.mkDerivation rec { sha256 = "0jc2bbw7sp2gr4cswx78srs0p1kp81prcarq4ivqpfw4bmzg6xg4"; }; - buildInputs = [ autoconf automake libtool pkgconfig file protobufc ]; - - preConfigure = "autoreconf -i"; + buildInputs = [ autoreconfHook pkgconfig file protobufc ]; meta = with stdenv.lib; { homepage = https://github.com/algernon/riemann-c-client; diff --git a/pkgs/tools/misc/xclip/default.nix b/pkgs/tools/misc/xclip/default.nix index 3f616fdad68..e0ad4bbab5f 100644 --- a/pkgs/tools/misc/xclip/default.nix +++ b/pkgs/tools/misc/xclip/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchsvn, xlibsWrapper, libXmu, autoconf, automake, libtool }: +{ stdenv, fetchsvn, xlibsWrapper, libXmu, autoreconfHook }: stdenv.mkDerivation rec { # The last release from 2012, 0.12, lacks '-targets' @@ -9,11 +9,9 @@ stdenv.mkDerivation rec { sha256 = "0d6r38xas5l79l700sdm14l41vvjqhah613367ha8kcvx54zkddz"; }; - preConfigure = "autoreconf -vfi"; + buildInputs = [ xlibsWrapper libXmu autoreconfHook ]; - buildInputs = [ xlibsWrapper libXmu autoconf automake libtool ]; - - meta = { + meta = { description = "Tool to access the X clipboard from a console application"; homepage = http://sourceforge.net/projects/xclip/; license = stdenv.lib.licenses.gpl2; diff --git a/pkgs/tools/networking/biosdevname/default.nix b/pkgs/tools/networking/biosdevname/default.nix index 86fe18e0158..f39f3745355 100644 --- a/pkgs/tools/networking/biosdevname/default.nix +++ b/pkgs/tools/networking/biosdevname/default.nix @@ -1,10 +1,9 @@ -{stdenv, fetchgit, automake, autoconf, zlib, pciutils}: -let - version = "0.6.1"; -in -stdenv.mkDerivation { +{ stdenv, fetchgit, autoreconfHook, zlib, pciutils }: + +stdenv.mkDerivation rec { name = "biosdevname-${version}"; - + version = "0.6.1"; + src = fetchgit { url = git://linux.dell.com/biosdevname.git; rev = "refs/tags/v${version}"; @@ -12,16 +11,11 @@ stdenv.mkDerivation { }; buildInputs = [ - automake - autoconf + autoreconfHook zlib pciutils ]; - preConfigure = '' - autoreconf -i - ''; - # Don't install /lib/udev/rules.d/*-biosdevname.rules patches = [ ./makefile.patch ]; diff --git a/pkgs/tools/networking/driftnet/default.nix b/pkgs/tools/networking/driftnet/default.nix index 83a26f98d8b..6666612419d 100644 --- a/pkgs/tools/networking/driftnet/default.nix +++ b/pkgs/tools/networking/driftnet/default.nix @@ -1,4 +1,6 @@ -{ stdenv, lib, fetchFromGitHub, autoconf, automake, libpcap, libjpeg, libungif, libpng, giflib, glib, gtk2, cairo, pango, gdk_pixbuf, atk, pkgconfig }: +{ stdenv, lib, fetchFromGitHub, libpcap, libjpeg , libungif, libpng +, giflib, glib, gtk2, cairo, pango, gdk_pixbuf, atk +, pkgconfig, autoreconfHook }: with lib; @@ -6,9 +8,10 @@ stdenv.mkDerivation rec { name = "driftnet-${stdenv.lib.strings.substring 0 7 rev}"; rev = "8d47fd563a06122d4a6f9b9b9d27ba3d635148c0"; - buildInputs = [ autoconf automake pkgconfig libpcap libjpeg libungif libpng giflib glib gtk2 glib cairo pango gdk_pixbuf atk ]; - - preConfigure = "autoreconf -fi"; + buildInputs = [ + pkgconfig libpcap libjpeg libungif libpng giflib + glib gtk2 glib cairo pango gdk_pixbuf atk autoreconfHook + ]; src = fetchFromGitHub { inherit rev; diff --git a/pkgs/tools/networking/mu/default.nix b/pkgs/tools/networking/mu/default.nix index 1191129894c..77ef86baec3 100644 --- a/pkgs/tools/networking/mu/default.nix +++ b/pkgs/tools/networking/mu/default.nix @@ -1,4 +1,4 @@ -{ fetchurl, stdenv, sqlite, pkgconfig, autoconf, automake +{ fetchurl, stdenv, sqlite, pkgconfig, autoreconfHook , xapian, glib, gmime, texinfo , emacs, guile , gtk3, webkit, libsoup, icu, withMug ? false /* doesn't build with current gtk3 */ }: @@ -11,14 +11,10 @@ stdenv.mkDerivation rec { sha256 = "0wj33pma8xgjvn2akk7khzbycwn4c9sshxvzdph9dnpy7gyqxj51"; }; - buildInputs = - [ sqlite pkgconfig autoconf automake xapian - glib gmime texinfo emacs guile libsoup icu ] - ++ stdenv.lib.optionals withMug [ gtk3 webkit ]; - - preConfigure = '' - autoreconf -i - ''; + buildInputs = [ + sqlite pkgconfig xapian glib gmime texinfo emacs guile libsoup icu + autoreconfHook + ] ++ stdenv.lib.optionals withMug [ gtk3 webkit ]; preBuild = '' # Fix mu4e-builddir (set it to $out) diff --git a/pkgs/tools/networking/par2cmdline/default.nix b/pkgs/tools/networking/par2cmdline/default.nix index 68f1f763297..94b9f3bdc7c 100644 --- a/pkgs/tools/networking/par2cmdline/default.nix +++ b/pkgs/tools/networking/par2cmdline/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchzip, autoconf, automake}: +{ stdenv, fetchzip, autoreconfHook }: stdenv.mkDerivation rec { name = "par2cmdline-${version}"; @@ -9,9 +9,7 @@ stdenv.mkDerivation rec { sha256 = "0maywssv468ia7rf8jyq4axwahgli3nfykl7x3zip503psywjj8a"; }; - buildInputs = [ autoconf automake ]; - - preConfigure = "autoreconf"; + buildInputs = [ autoreconfHook ]; meta = { homepage = https://github.com/BlackIkeEagle/par2cmdline; diff --git a/pkgs/tools/text/recode/default.nix b/pkgs/tools/text/recode/default.nix index 004a93f6ebd..4ea2631bcb7 100644 --- a/pkgs/tools/text/recode/default.nix +++ b/pkgs/tools/text/recode/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, python, perl, autoconf, automake, libtool, intltool, flex, +{ stdenv, fetchFromGitHub, python, perl, intltool, flex, autoreconfHook, texinfo, libiconv }: stdenv.mkDerivation rec { @@ -11,17 +11,13 @@ stdenv.mkDerivation rec { sha256 = "06vyjqaraamcc5vka66mlvxj27ihccqc74aymv2wn8nphr2rhh03"; }; - nativeBuildInputs = [ python perl autoconf automake libtool intltool flex texinfo - libiconv ]; + nativeBuildInputs = [ python perl intltool flex texinfo autoreconfHook libiconv ]; - preConfigure = '' + preAutoreconf = '' # fix build with new automake, https://bugs.gentoo.org/show_bug.cgi?id=419455 - #rm acinclude.m4 substituteInPlace Makefile.am --replace "ACLOCAL = ./aclocal.sh @ACLOCAL@" "" sed -i '/^AM_C_PROTOTYPES/d' configure.ac substituteInPlace src/Makefile.am --replace "ansi2knr" "" - - autoreconf -fi '' + stdenv.lib.optionalString stdenv.isDarwin '' export LDFLAGS=-lintl diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b9962f495d1..ba7420d14d3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1750,7 +1750,6 @@ let grub = callPackage_i686 ../tools/misc/grub { buggyBiosCDSupport = config.grub.buggyBiosCDSupport or true; - automake = automake112x; # fails with 13 and 14 }; trustedGrub = callPackage_i686 ../tools/misc/grub/trusted.nix { }; @@ -2635,9 +2634,7 @@ let paper-gtk-theme = callPackage ../misc/themes/gtk3/paper-gtk-theme { }; - par2cmdline = callPackage ../tools/networking/par2cmdline { - automake = automake112x; # fails with 14 - }; + par2cmdline = callPackage ../tools/networking/par2cmdline { }; parallel = callPackage ../tools/misc/parallel { }; @@ -13027,9 +13024,7 @@ let rkt = callPackage ../applications/virtualization/rkt { }; - rofi = callPackage ../applications/misc/rofi { - automake = automake114x; - }; + rofi = callPackage ../applications/misc/rofi { }; rofi-pass = callPackage ../tools/security/pass/rofi-pass.nix { }; -- cgit 1.4.1