2011-07-21 00:56:39 +02:00
|
|
|
{ stdenv, fetchgit, python, autoconf, automake, libtool, gettext, emacs, gmp
|
|
|
|
, pcre, expat, boost, mpfr, git, texinfo }:
|
|
|
|
|
|
|
|
let
|
2012-01-21 20:25:50 +01:00
|
|
|
rev = "d2915c66";
|
2011-07-21 00:56:39 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2012-01-21 20:25:45 +01:00
|
|
|
name = "ledger3-2012.01.${rev}";
|
2011-07-21 00:56:39 +02:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://github.com/jwiegley/ledger.git";
|
|
|
|
inherit rev;
|
2012-01-21 20:25:50 +01:00
|
|
|
sha256 = "a489c8b1c48889040d2cebaac1a0019e90acac0b51c9abf7914944dcb4b801e7";
|
2011-07-21 00:56:39 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
python autoconf automake libtool gettext emacs gmp pcre expat boost mpfr
|
|
|
|
git texinfo
|
|
|
|
];
|
|
|
|
|
2012-01-06 16:55:24 +01:00
|
|
|
CPPFLAGS = "-I${gmp}/include -I${mpfr}/include";
|
|
|
|
|
|
|
|
LDFLAGS = "-L${gmp}/lib -L${mpfr}/lib";
|
|
|
|
|
2011-07-21 00:56:39 +02:00
|
|
|
buildPhase = ''
|
|
|
|
sed -i acprep \
|
2012-01-21 20:25:50 +01:00
|
|
|
-e 's|search_prefixes = .*|search_prefixes = ["${boost}"]|' \
|
|
|
|
-e 's|/usr/bin/python|${python}/bin/python|'
|
2011-07-21 00:56:39 +02:00
|
|
|
export MAKEFLAGS="-j$NIX_BUILD_CORES -l$NIX_BUILD_CORES"
|
|
|
|
python acprep update --no-pch --prefix=$out
|
|
|
|
'';
|
|
|
|
|
2012-01-06 16:55:24 +01:00
|
|
|
doCheck = !stdenv.isDarwin;
|
2011-07-21 00:56:39 +02:00
|
|
|
|
2012-01-06 16:44:14 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2011-07-21 00:56:39 +02:00
|
|
|
meta = {
|
|
|
|
homepage = "http://ledger-cli.org/";
|
|
|
|
description = "A double-entry accounting system with a command-line reporting interface";
|
|
|
|
license = "BSD";
|
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
|
2012-01-06 16:55:24 +01:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2011-07-21 00:56:39 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
|
|
|
};
|
|
|
|
}
|