2013-01-28 18:05:54 +01:00
|
|
|
{ stdenv, fetchurl, emacs, gmp, pcre, expat }:
|
2013-01-28 18:00:11 +01:00
|
|
|
|
2013-01-28 18:05:54 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2014-05-01 12:56:45 +02:00
|
|
|
name = "ledger2-2.6.3";
|
2009-11-10 12:02:45 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-01-28 18:05:54 +01:00
|
|
|
url = "https://github.com/downloads/ledger/ledger/${name}.tar.gz";
|
|
|
|
sha256 = "05zpnypcwgck7lwk00pbdlcwa347xsqifxh4zsbbn01m98bx1v5k";
|
2009-11-10 12:02:45 +01:00
|
|
|
};
|
|
|
|
|
2013-01-28 18:05:54 +01:00
|
|
|
buildInputs = [ emacs gmp pcre expat ];
|
2009-11-10 12:02:45 +01:00
|
|
|
|
2011-07-08 00:48:36 +02:00
|
|
|
configureFlags = "CPPFLAGS=-DNDEBUG CFLAGS=-O3 CXXFLAGS=-O3";
|
2013-01-28 18:00:11 +01:00
|
|
|
|
2011-07-08 00:48:44 +02:00
|
|
|
doCheck = true;
|
2009-11-10 12:02:45 +01:00
|
|
|
|
2013-01-28 18:05:54 +01:00
|
|
|
# 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.
|
2013-01-28 18:00:11 +01:00
|
|
|
dontPatchELF = true;
|
|
|
|
|
2009-11-10 12:02:45 +01:00
|
|
|
meta = {
|
2011-07-08 00:48:36 +02:00
|
|
|
homepage = "http://ledger-cli.org/";
|
|
|
|
description = "A double-entry accounting system with a command-line reporting interface";
|
|
|
|
license = "BSD";
|
|
|
|
|
2009-11-10 12:02:45 +01: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-08 00:48:36 +02:00
|
|
|
|
2012-01-06 06:52:21 +01:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2011-07-08 00:48:36 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
2009-11-10 12:02:45 +01:00
|
|
|
};
|
|
|
|
}
|