3
0
Fork 0
forked from mirrors/nixpkgs

ledger: update 3.x version to the latest Git snapshot

This commit is contained in:
Peter Simons 2013-04-21 20:37:53 +02:00
parent 2340c84a00
commit c9182f112a
2 changed files with 9 additions and 25 deletions
pkgs
applications/office/ledger
top-level

View file

@ -1,36 +1,22 @@
{ stdenv, fetchgit, python, autoconf, automake, libtool, gettext, emacs, gmp { stdenv, fetchgit, cmake, boost, gmp, mpfr, libedit, python, texinfo }:
, pcre, expat, boost, mpfr, git, texinfo }:
let let
rev = "d2915c66"; rev = "2c7ab8be";
in in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "ledger3-2012.01.${rev}"; name = "ledger3-2013.04.${rev}";
src = fetchgit { src = fetchgit {
url = "git://github.com/jwiegley/ledger.git"; url = "git://github.com/jwiegley/ledger.git";
inherit rev; inherit rev;
sha256 = "a489c8b1c48889040d2cebaac1a0019e90acac0b51c9abf7914944dcb4b801e7"; sha256 = "1ng5ymzqzbgdrn2ghhr7jvcjv5y7ikhyck5p1yv5j024s17xdyj5";
}; };
buildInputs = [ buildInputs = [ cmake boost gmp mpfr libedit python texinfo ];
python autoconf automake libtool gettext emacs gmp pcre expat boost mpfr
git texinfo
];
CPPFLAGS = "-I${gmp}/include -I${mpfr}/include"; # Unit tests fail in the current git snapshot. Try enabling them again
# when updating this package!
LDFLAGS = "-L${gmp}/lib -L${mpfr}/lib"; doCheck = false;
buildPhase = ''
sed -i acprep \
-e 's|search_prefixes = .*|search_prefixes = ["${boost}"]|' \
-e 's|/usr/bin/python|${python}/bin/python|'
export MAKEFLAGS="-j$NIX_BUILD_CORES -l$NIX_BUILD_CORES"
python acprep update --no-pch --prefix=$out
'';
doCheck = !stdenv.isDarwin;
enableParallelBuilding = true; enableParallelBuilding = true;

View file

@ -7427,9 +7427,7 @@ let
links = callPackage ../applications/networking/browsers/links { }; links = callPackage ../applications/networking/browsers/links { };
ledger = callPackage ../applications/office/ledger/2.6.3.nix { }; ledger = callPackage ../applications/office/ledger/2.6.3.nix { };
ledger3 = callPackage ../applications/office/ledger/3.0.nix { ledger3 = callPackage ../applications/office/ledger/3.0.nix { };
boost = boost149;
};
links2 = callPackage ../applications/networking/browsers/links2 { }; links2 = callPackage ../applications/networking/browsers/links2 { };