2013-01-28 17:05:54 +00:00
|
|
|
{ stdenv, fetchurl, emacs, gmp, pcre, expat }:
|
2013-01-28 17:00:11 +00:00
|
|
|
|
2013-01-28 17:05:54 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2014-05-01 11:56:45 +01:00
|
|
|
name = "ledger2-2.6.3";
|
2009-11-10 11:02:45 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-01-28 17:05:54 +00:00
|
|
|
url = "https://github.com/downloads/ledger/ledger/${name}.tar.gz";
|
|
|
|
sha256 = "05zpnypcwgck7lwk00pbdlcwa347xsqifxh4zsbbn01m98bx1v5k";
|
2009-11-10 11:02:45 +00:00
|
|
|
};
|
|
|
|
|
2013-01-28 17:05:54 +00:00
|
|
|
buildInputs = [ emacs gmp pcre expat ];
|
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:05:54 +00: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 17:00:11 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|