From b5ce83d38d3641058ba147c7067839134da60a3b Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 28 Jan 2013 18:05:54 +0100 Subject: [PATCH] ledger-2.6.3: update the location of the source code tarball some more I found the original tarball at a different URL. This one doesn't require Autoconf et al to compile. --- pkgs/applications/office/ledger/2.6.3.nix | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/pkgs/applications/office/ledger/2.6.3.nix b/pkgs/applications/office/ledger/2.6.3.nix index 603c9ea473e8..ca71ceeca66c 100644 --- a/pkgs/applications/office/ledger/2.6.3.nix +++ b/pkgs/applications/office/ledger/2.6.3.nix @@ -1,24 +1,22 @@ -{ stdenv, fetchurl, emacs, gmp, pcre, expat, autoconf, automake, libtool, texinfo }: +{ stdenv, fetchurl, emacs, gmp, pcre, expat }: -stdenv.mkDerivation { +stdenv.mkDerivation rec { name = "ledger-2.6.3"; src = fetchurl { - url = "https://github.com/jwiegley/ledger/archive/v2.6.3.tar.gz"; - sha256 = "0fmawai1fakhvdmjrydxp2pl67vk1c1ff54z28xl2k057ws49hnm"; + url = "https://github.com/downloads/ledger/ledger/${name}.tar.gz"; + sha256 = "05zpnypcwgck7lwk00pbdlcwa347xsqifxh4zsbbn01m98bx1v5k"; }; - buildInputs = [ emacs gmp pcre expat autoconf automake libtool texinfo ]; - - preConfigure = "autoreconf -vi"; + buildInputs = [ emacs gmp pcre expat ]; configureFlags = "CPPFLAGS=-DNDEBUG CFLAGS=-O3 CXXFLAGS=-O3"; doCheck = true; - # Patchelf breaks the hard-coded rpath to ledger's libamounts.so and - # libledger-2.6.3. Fortunately, libtool chooses proper rpaths to begin - # with, so we can just disable patchelf to avoid the issue. + # Patchelf breaks the hard-coded rpath to ledger's libamounts.0.so and + # libledger-2.6.3.so. Fortunately, libtool chooses proper rpaths to + # begin with, so we can just disable patchelf to avoid the issue. dontPatchELF = true; meta = {