2013-01-28 17:00:11 +00:00
|
|
|
{ stdenv, fetchurl, emacs, gmp, pcre, expat, autoconf, automake, libtool, texinfo }:
|
|
|
|
|
2009-11-10 11:02:45 +00:00
|
|
|
stdenv.mkDerivation {
|
2013-01-28 17:00:11 +00:00
|
|
|
name = "ledger-2.6.3";
|
2009-11-10 11:02:45 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-01-28 17:00:11 +00:00
|
|
|
url = "https://github.com/jwiegley/ledger/archive/v2.6.3.tar.gz";
|
|
|
|
sha256 = "0fmawai1fakhvdmjrydxp2pl67vk1c1ff54z28xl2k057ws49hnm";
|
2009-11-10 11:02:45 +00:00
|
|
|
};
|
|
|
|
|
2013-01-28 17:00:11 +00:00
|
|
|
buildInputs = [ emacs gmp pcre expat autoconf automake libtool texinfo ];
|
|
|
|
|
|
|
|
preConfigure = "autoreconf -vi";
|
2009-11-10 11:02:45 +00:00
|
|
|
|
2011-07-07 23:48:36 +01:00
|
|
|
configureFlags = "CPPFLAGS=-DNDEBUG CFLAGS=-O3 CXXFLAGS=-O3";
|
2013-01-28 17:00:11 +00:00
|
|
|
|
2011-07-07 23:48:44 +01:00
|
|
|
doCheck = true;
|
2009-11-10 11:02:45 +00:00
|
|
|
|
2013-01-28 17:00:11 +00:00
|
|
|
# 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.
|
|
|
|
dontPatchELF = true;
|
|
|
|
|
2009-11-10 11:02:45 +00:00
|
|
|
meta = {
|
2011-07-07 23:48:36 +01:00
|
|
|
homepage = "http://ledger-cli.org/";
|
|
|
|
description = "A double-entry accounting system with a command-line reporting interface";
|
|
|
|
license = "BSD";
|
|
|
|
|
2009-11-10 11:02:45 +00:00
|
|
|
longDescription = ''
|
|
|
|
Ledger is a powerful, double-entry accounting system that is accessed
|
|
|
|
from the UNIX command-line. This may put off some users, as there is
|
|
|
|
no flashy UI, but for those who want unparalleled reporting access to
|
|
|
|
their data, there really is no alternative.
|
|
|
|
'';
|
2011-07-07 23:48:36 +01:00
|
|
|
|
2012-01-06 05:52:21 +00:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2011-07-07 23:48:36 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
2009-11-10 11:02:45 +00:00
|
|
|
};
|
|
|
|
}
|